我有一個禁用按鈕的css屬性,如下所示。「-webkit-filter」在firefox中不起作用41.0.2
.btn-disabled {
pointer-events: none;
cursor: default;
color:#cecece !Important;
-webkit-filter: opacity(50%)
}
我在chrome中獲得了所需的效果,但在firefox中沒有。有沒有辦法通過相同的CSS屬性在firefox,chrome,saffari中實現相同?
火狐不需要'filter'前綴,只需使用符合標準的它。當然,還有「不透明」作爲獨立財產。 – dakab