::-webkit-scrollbar {} //滾動(dòng)條整體部分
::-webkit-scrollbar-track{} //滾動(dòng)條滑軌
::-webkit-scrollbar-track-piece{} //內(nèi)層軌道,滾動(dòng)條中間部分
::-webkit-scrollbar-thumb {} //滾動(dòng)條滑塊
::-webkit-scrollbar-button{} //滑軌兩頭的監(jiān)聽按鈕
::-webkit-scrollbar-button:start {} // 滑軌頂部的監(jiān)聽按鈕
::-webkit-scrollbar-button:end {} //滑軌底部的監(jiān)聽按鈕
::-webkit-scrollbar-corner {} //橫向滾動(dòng)條和縱向滾動(dòng)條相交處的尖角
::-webkit-resizer{} //兩個(gè)滾動(dòng)條的交匯處上用于通過拖動(dòng)調(diào)整元素大小的小控件
//還可設(shè)置鼠標(biāo)移動(dòng)上去時(shí)的變化
::-webkit-scrollbar-track:hover {}
::-webkit-scrollbar-thumb:hover {}
::-webkit-scrollbar-button:start:hover {}
::-webkit-scrollbar-button:end:hover {}
div::after{
content: '';
border-top: 10px solid transparent;
border-right: 10px solid transparent;
border-bottom: 10px solid #333;
border-left: 10px solid #transparent;
}
.tooltips{
display:inline-block;
width:100px;
padding:3px 10px;
border:1px solid #d9d9d9;
position:relative;
}
.tooltips:hover:before,.tooltips:hover:after{
opacity:1;
}
.tooltips:before,.tooltips:after{
-webkit-transition:all .4s;
transition:all .4s;
opacity:0;
}
.tooltip1:before{
position:absolute;
content:'';
top:100%;
left:50%;
border-top: 5px solid transparent;
border-right: 5px solid transparent;
border-bottom: 5px solid rgba(0,0,0,.5);
border-left: 5px solid transparent;
-webkit-transform:translate(-50%,-5px);
transform:translate(-50%,-5px);
}
.tooltip1:after{
content:attr(data-tip); //注意這里
position:absolute;
top:100%;
left:50%;
padding:3px 10px;
background:rgba(0,0,0,.5);
color:#fff;
white-space:nowrap;
-webkit-transform:translate(-50%,5px);
transform:translate(-50%,5px);
}
//div
<div class="tooltip1 tooltips" data-tip="哈哈,我是tooltip">這里!這里!</div>
label{
position:relative;
display:inline-block;
cursor:pointer;
}
label>input{
display:none;
}
label .radio-inner{
position:relative;
padding-left:35px;
}
label .radio-inner:before{
content:'';
position:absolute;
width:20px;
height:20px;
top:0;
left:0;
border:1px solid #d9d9d9;
border-radius:50%;
}
label .radio-inner:after{
content:'';
position:absolute;
width:10px;
height:10px;
top:6px;
left:6px;
background:#fff;
border-radius:50%;
}
label>input:checked+.radio-inner:before{
border-color:#009a61;
}
label>input:checked+.radio-inner:after{
background:#009a61;
}
.wave{
height:10px;
width:100px;
background-image:repeating-radial-gradient(transparent,transparent 5px,#333 6px,#333 15px);
background-image:-webkit-repeating-radial-gradient(transparent,transparent 5px,#333 6px,#333 15px);
background-size: 20px 21px;
background-repeat: repeat-x;
}
.selection::selection{
background:red;
color:#fff;
}
.table tr:nth-child(odd){
background:#333;
color:#fff;
}
.table tr:nth-child(even){
background:#d9d9d9;
}
更多建議: