Home  >  Article  >  Web Front-end  >  设置div滚动条颜色的css代码

设置div滚动条颜色的css代码

PHP中文网
PHP中文网Original
2017-03-16 16:43:001970browse

这篇文章我们来给大家介绍一下设置p滚动条颜色的css代码

<p style="width:260px;height:120px; overflow-y:scroll; scrollbar-base-color:#ff6600; border:1px solid;"> 这里是你要显示的内容 </p>

图片1.png

SCROLLBAR-FACE-COLOR(立体滚动条凸出部分的颜色)

SCROLLBAR-HIGHLIGHT-COLOR(滚动条空白部分的颜色)滑道

SCROLLBAR-ARROW-COLOR(上下按钮上三角箭头的颜色)

SCROLLBAR-SHADOW-COLOR(立体滚动条阴影的颜色)

SCROLLBAR-BASE-COLOR(滚动条的基本颜色)

SCROLLBAR-DARK-SHADOW-COLOR(立体滚动条强阴影的颜色)

根据onmousemove事件,可以实现点不着的p

function lhs(obj){
  if(obj=="dfdf"){
  document.getElementById("asf") = dfdf2
  }else{
    document.getElementById("asf") = dfdf
  }
}
<p onmousemove="lhs(this.className);"></p>

以上就是设置p滚动条颜色的css代码的详细内容,更多请关注php中文网其它相关文章!

相关文章:

DIV实现自动滚动功能及滚动条颜色修改

如何在样式表中区分不同的IE版本?如何使兼容IE8与IE10的滚动条颜色?

解决IE6下无法设置滚动条颜色

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn