1
我正在處理另一個開發人員的代碼,並想知道是否有方法在存在「疊加」時使用CSS代碼將「不同的不透明度」應用於「滾動條」,而不是「覆蓋 - 非活動「出現在」表格「下面,如下所示。這可能嗎?存在其他類時的CSS不透明度
/*Want scrollbar to have opacity:1 in this table*/
<div class ="table">
<div class = "overlay"></div>
<div class = "scrollbar"></div>
</div>
/*Want scrollbar to have opacity:0 in this table*/
<div class ="table">
<div class = "overlay-inactive"></div>
<div class = "scrollbar"></div>
</div>
/*Class structure is the developer's and cannot be changed to have scrollbar as a subclass of overlay*/