Axure優(yōu)化滾動(dòng)條,美化Axure滾動(dòng)條,Axure原型設(shè)計(jì)

1、設(shè)置整個(gè)頁面的滾動(dòng)條


javascript:

$('<style>

::-webkit-scrollbar {width: 10px; height:10px; background:transprent;}

::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.1); border-radius: 8px;}

::-webkit-scrollbar-thumb:hover {background:rgba(0,0,0,0.3);}

::-webkit-scrollbar-track{background:rgba(0,0,0,0.08);}

</style>').appendTo('head');


2、設(shè)置局部滾動(dòng)條


應(yīng)用場(chǎng)景:滾動(dòng)表格、下拉選擇器、彈框、對(duì)話框等。

javascript:

$('<style>

.sgundong::-webkit-scrollbar {width: 20px; height:20px;background:transparent;}

.sgundong::-webkit-scrollbar-thumb {border-radius:10px; background:rgba(0,0,0,0.1);}

.sgundong::-webkit-scrollbar-thumb:hover {background:rgba(0,0,0,0.2);}

.sgundong::-webkit-scrollbar-track {background:rgba(0,0,0,0.06);}

</style>').appendTo('head');

$('[data-label="[[This.name]]"] ')

? .find ("div:eq(0)")

? ? .addClass("sgundong");? ?

3、懸浮顯示滾動(dòng)條

應(yīng)用場(chǎng)景:下拉選擇器


javascript:

$('<style>

.sgundong::-webkit-scrollbar {width: 0px; height:0px;background:transparent;}

.sgundong:hover::-webkit-scrollbar {width: 12px; height:12px;}

.sgundong:hover::-webkit-scrollbar-thumb {border-radius:9px; background:rgba(0,0,0,0.1);}

.sgundong:hover::-webkit-scrollbar-thumb:hover {background:rgba(0,0,0,0.2);}

.sgundong:hover::-webkit-scrollbar-track{background:rgba(0,0,0,0.07);}

</style>').appendTo('head');

$('[data-label="[[This.name]]"] ')

? .find ("div:eq(0)")

? ? .addClass("sgundong");? ?

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容