午夜剧场伦理_日本一道高清_国产又黄又硬_91黄色网战_女同久久另类69精品国产_妹妹的朋友在线

您的位置:首頁技術文章
文章詳情頁

css3 - 關于滾動條的CSS如何設置問題

瀏覽:183日期:2023-07-26 14:27:12

問題描述

<p id=’p3’ style=’width:200px;height:200px;overflow:auto;’>This is some text. This is some text. This is some text. This is some text.This is some text. This is some text. This is some text. This is some text.This is some text. This is some text. This is some text. This is some text.This is some text. This is some text. This is some text. This is some text.This is some text. This is some text. This is some text. This is some text.This is some text. This is some text. This is some text. This is some text.This is some text. This is some text. This is some text. This is some text.This is some text. This is some text. This is some text. This is some text. </p>

就像上面代碼 p里面有一段文字,我設置了overflow:auto;也就是超出部分顯示滾動條,那么我如何修改這個滾動條的樣式呢?

問題解答

回答1:

一個針對Webkit內核瀏覽器的滾動條美化的例子,不知道是不是你想要的

/* 滾動條部分 */::-webkit-scrollbar { width:15px;}/* 軌道 */::-webkit-scrollbar-track { -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3); -webkit-border-radius: 15px; border-radius: 15px;}/* 手柄 */::-webkit-scrollbar-thumb { -webkit-border-radius: 15px; border-radius: 15px; background:rgba(200,200,200,0.7); -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5); }/* 手柄激活態 */::-webkit-scrollbar-thumb:window-inactive { background: rgba(200,200,200,0.4); }回答2:

那就定義瀏覽器滾動條樣式即可,兩者是一致的,如果需要不一樣,那就需要模擬滾動條

回答3:

推薦你參考這篇文章:http://www.qianduan.net/css-custom-scroll-bar-style/作者是微信團隊的神飛,寫的文章一直很不錯!

回答4:

話說滾動更改滾動條樣式。為什么pc端可以正常顯示。手機端就不行了呢

標簽: CSS
相關文章:
主站蜘蛛池模板: 国产又黄视频 | 亚欧乱色 | 免费亚洲精品 | 欧美日韩a v | 亚洲一本之道 | 亚洲天堂偷拍 | 国产精品伦 | 日韩精品高清视频 | 国产一区免费 | 国产成人精品777777 | 中文字幕五区 | 精品成人一区二区三区 | 国产婷婷 | 国产精品视频免费看 | 成人免费黄色大片 | 97超碰免费 | 四虎精品久久 | 99成人免费视频 | 日韩av综合 | 一区二区三区日韩在线 | 日日麻批免费视频播放 | 国产女主播喷水高潮网红在线 | 欲望岛av| 精品一级视频 | 成人三级视频在线观看 | 精品久久久久一区二区国产 | 国产精品传媒在线观看 | 色婷婷狠狠干 | 免费在线观看黄色av | 亚洲成年网站 | 国产精品suv一区二区69 | 日韩精品在线视频观看 | 中文av在线播放 | 青青草一区二区三区 | 国产精品a级 | 国产精品乱码久久久久久 | 精品免费久久 | 黄色小视频在线 | 韩国一区二区在线观看 | 成人首页| 天天操夜夜骑 |