[前端] chrome浏览器定义滚动条样式及字体中英对照
来源:互联网 发布:windows redstone 2 编辑:程序博客网 时间:2024/05/16 07:08
一、定义chrome浏览器滚动条样式
<style> .box::-webkit-scrollbar{ box-shadow:inset 0 0 .3em rgba(0,0,0,.4); background:-webkit-linear-gradient(left, transparent 0%, #dce2f3 50%, transparent 100%); border-radius:2em; margin:0 1em; height:1em; } .box::-webkit-scrollbar:hover{ box-shadow:inset 0 0 .6em rgba(0,0,0,.5); } .box::-webkit-scrollbar-thumb{ height:50%; border-radius:2em; cursor:pointer; background:-webkit-linear-gradient(top, #9ac4f8 0%, #5ca3fa 50%, #9ac4f8 100%);} .box::-webkit-scrollbar-button{ /*width:100%; height:8px; border:solid 1px red;*/} /* Custom button */ .box::-webkit-scrollbar-button:start:decrement{} /* Custom start button */ .box::-webkit-scrollbar-button:end:increment{} /* Custom end button */ .box::-webkit-scrollbar-thumb:hover{ -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3); background:-webkit-linear-gradient(top, #9ac4f8 0%, #5ca3fa 50%, #9ac4f8 100%); }</style>
二、字体中英对照
字体名称 英文名称 Unicode 编码
These are the pseudo class selectors. They allow for more specific selection of the parts, like when the scrollbar is in different states.
:horizontal:vertical:decrement:increment:start:end :double-button:single-button:no-button:corner-present:window-inactive
参考链接:https://css-tricks.com/custom-scrollbars-in-webkit/他人博客:http://www.lyblog.net/detail/314.html
谢谢关注~
1 0
- [前端] chrome浏览器定义滚动条样式及字体中英对照
- css去除chrome浏览器输入框默认样式填充及chrome浏览器滚动条样式设置
- chrome滚动条样式
- 自定义chrome 谷歌浏览器 滚动条样式
- 滚动条样式-IE,chrome
- 滚动条样式-IE,chrome
- chrome滚动条样式修改
- 定义页面滚动条样式
- 修改浏览器滚动条样式
- 自定义浏览器滚动条样式
- 改变浏览器滚动条样式
- 修改浏览器滚动条样式
- 自定义浏览器滚动条样式
- 滚动条样式及去掉滚动条
- 滚动条样式及去掉滚动条
- 在css中定义滚动条样式
- CSS定义Scroll滚动条样式。
- 定义页面滚动条样式[--图--]
- Chapter06 对象
- 使用数据库版本同步工具phinx
- Scala开发环境配置
- TPM Software Stack
- 日期及时间选择对话框
- [前端] chrome浏览器定义滚动条样式及字体中英对照
- QPID例子二(DEMO)
- ARM+Linux系统启动流程分析----ARM处理器的启动流程
- JAVA学习_00
- win7中如何解决“该项不适用于在指定状态下使用”
- Junit使用教程(二)
- (转)C语言函数sscanf()的用法
- Java面向对象基础
- jstl中empty