首页  编辑  

改变滚动条的颜色

Tags: /超级猛料/OS.操作系统/IE.扩展/TWebBrowser/   Date Created:

  with WebBrowser1 do

  begin

   OleObject . document . body . Style . scrollbarArrowColor := '#0099FF' ;

   OleObject . document . body . Style . scrollbar3DLIGHTCOLOR := '#FFFFFF' ;

   OleObject . document . body . Style . scrollbarDarkShadowColor := '#0099FF' ;

   OleObject . document . body . Style . scrollbarFaceColor := '#99CCFF' ;

   OleObject . document . body . Style . scrollbarHighlightColor := '#0099FF' ;

   OleObject . Document . body . Style . scrollbarShadowColor := '#0099FF' ;

   OleObject . Document . body . Style . scrollbarTrackColor := '#FFFFFF' ;

  end ;