• 作者:SuperPaxxs扶摇直上九万里,绝云气,负青天,不知图哪了,正在努力搜索中...
    • 请使用 Chrome、Firefox 等现代浏览器浏览本站。有事 点击这里 联系博主
    • 想在魔帆博客投稿? 点击这里 联系博主
    • [ 既然来了就多看两篇文章嘛,你好意思走么? ]
    • 如果您觉得本站非常有看点,那么赶紧使用 Ctrl + D 收藏魔帆博客吧

自定义浏览器滚动条-WordPress美化

技术教程 Super Paxxs 129180次浏览 已收录 20个评论

效果:

自定义浏览器滚动条-WordPress美化
在谷歌浏览器可以看到

代码:

将以下代码copy至style.css即可。

/*—滚动条默认显示样式–*/
::-webkit-scrollbar-thumb{
background-color:#018EE8;
height:50px;
outline-offset:-2px;
outline:2px solid #fff;
-webkit-border-radius:4px;
border: 2px solid #fff;
}

/*—鼠标点击滚动条显示样式–*/
::-webkit-scrollbar-thumb:hover{
background-color:#FB4446;
height:50px;
-webkit-border-radius:4px;
}

/*—滚动条大小–*/
::-webkit-scrollbar{
width:8px;
height:18px;
}

/*—滚动框背景样式–*/
::-webkit-scrollbar-track-piece{
background-color:#fff;
-webkit-border-radius:0;
}

魔帆博客 , 版权所有丨如未注明 , 均为原创丨本网站均采用BY-NC-SA协议进行授权 , 转载请注明自定义浏览器滚动条-WordPress美化
喜欢 (38)
[]
分享 (0)
关于作者:
一只初中狗,对网站建设和编程非常感兴趣。
发表我的评论
取消评论

表情 加粗 删除线 斜体

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
(20)个小伙伴在吐槽
  1. Buyers of Chelsea's win index spread will be hoping that Carlo Ancelotti's side can continue their hot streak against Bolton Wanderers this weekend.
    challenge clothing2015-11-05 12:37 回复
  2. |there is a solution granted within the|there released is a ticket inside everything from contesting your ticket. 
  3. There are also numerous mortgage repayment frameworks to fit various sorts of debtor.
    mortgage2015-11-05 12:11 回复
  4. Obtainable to new BT TV customers that sign up on You may pay £7.50 a month for 12 months, £10 a month from month 13. You will want BT Infinity.
    4k tv deals 20152015-11-05 12:10 回复
  5. |there is a citation granted in |there granted is a solution in
    Katherin2015-11-05 11:53 回复
  6. The memory foam and encourage base are Certipur qualifieded and the latex layer is OEKO-TEX Criterion 100 approved.
    Lida2015-11-05 11:48 回复
  7. |there is a solution issued within the ARC Zone. |there given is a solution in to get
    Myrtis2015-11-05 11:38 回复
  8. To conserve some cash on your computer game, think about subscribing to a solution that you can rent games from.
    Arielle2015-11-05 11:33 回复
  9. In Andrews post he speaks about the 10 things to take care of when you have actually an excepted offer.
    Trisha2015-11-05 10:35 回复
  10. 国外友人..我也来凑凑热闹
    JiaXing_Ni2015-11-01 13:14 回复
12