我宣佈我的錨的風格是這樣的:jQuery的刪除僞元素的樣式 - 禁用錨錨unstyle
.disabledanchor a,
.disabledanchor a:hover,
.disabledanchor a:focus {
color: inherit;
cursor: inherit;
text-decoration: inherit
}
我應該通過什麼jQuery的addclass運用這種風格?
謝謝, 克里斯。
我宣佈我的錨的風格是這樣的:jQuery的刪除僞元素的樣式 - 禁用錨錨unstyle
.disabledanchor a,
.disabledanchor a:hover,
.disabledanchor a:focus {
color: inherit;
cursor: inherit;
text-decoration: inherit
}
我應該通過什麼jQuery的addclass運用這種風格?
謝謝, 克里斯。
$(document).ready(function(){
// replace element with Selector/dom element/object/array
$(element).addClass('disabledanchor');
});
這不起作用,我已經在那裏。 – ChrisOdney
以及你應該發佈更多的HTML – adripop
我已經做了$(元素).addClass( 'disabledAnchor'),但它不工作。我認爲這是因爲僞元素。 – ChrisOdney