我有我自己的最終項目,我在學校做的自定義滾動條和div的邊框半徑爲15px,當我把自定義滾動條的邊框半徑爲15px,滾動越過DIV不使它看起來像你一樣,我希望它CSS/Javascript使滾動條內div
我怎樣才能把它放在DIV中,這樣的邊緣不會出現?
的CSS的一些代碼:
#ruv_results, #stod2_results,#stod2bio_results, #stod3_results{
text-align:center;
}
.ruv_title_css, .stod2_title_css,.stod2bio_title_css, .stod3_title_css{
font-size:20px;
color:#ffffff;
border:1px solid #000000;
border-radius:15px;
margin-top:25px;
width:450px;
height:550px;
display:inline-block;
vertical-align:top;
box-shadow: 0 0 20px #000;
background:#5e5e5e;
box-shadow: inset 0 0 20px #000000;
padding-right:4px;
padding-left:4px;
margin-bottom:10px;
margin-right:6px;
margin-left:6px;
}
::-webkit-scrollbar {
width: 12px;
}
::-webkit-scrollbar-track {
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
border-radius: 15px;
height:90%;
}
::-webkit-scrollbar-thumb {
border-radius: 15px;
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5);
}
嗯,這似乎並沒有爲我工作,我將會編輯併爲您添加一些代碼如果這有助於 – Kobbi
嘗試爲您應用z-index的元素添加位置屬性。 https://www.smashingmagazine.com/2009/09/the-z-index-css-property-a-comprehensive-look/ – Kosch
你能幫我嗎?這裏是代碼,但我不知道如何在jfiddle jsfiddle.net/ohtd6h1j中加載Ajax請求,對於遲到的回覆對不起。 – Kobbi