的所有屬性我有一個CSS規則禁用CSS選擇器
.lp-caption {
-moz-border-bottom-colors: none;
-moz-border-left-colors: none;
-moz-border-right-colors: none;
-moz-border-top-colors: none;
background-attachment: scroll;
background-clip: border-box;
background-color: #FCFCFC;
background-image: none;
background-origin: padding-box;
background-position: 0 0;
background-repeat: repeat;
background-size: auto auto;
border-bottom-color: #EEEEEE;
border-bottom-left-radius: 5px;
border-bottom-right-radius: 5px;
border-bottom-style: solid;
border-bottom-width: 1px;
border-image-outset: 0 0 0 0;
border-image-repeat: stretch stretch;
border-image-slice: 100% 100% 100% 100%;
border-image-source: none;
border-image-width: 1 1 1 1;
border-left-color-ltr-source: physical;
border-left-color-rtl-source: physical;
border-left-color-value: #EEEEEE;
border-left-style-ltr-source: physical;
border-left-style-rtl-source: physical;
border-left-style-value: solid;
border-left-width-ltr-source: physical;
border-left-width-rtl-source: physical;
border-left-width-value: 1px;
border-right-color-ltr-source: physical;
border-right-color-rtl-source: physical;
border-right-color-value: #EEEEEE;
border-right-style-ltr-source: physical;
border-right-style-rtl-source: physical;
border-right-style-value: solid;
border-right-width-ltr-source: physical;
border-right-width-rtl-source: physical;
border-right-width-value: 1px;
border-top-color: #EEEEEE;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
border-top-style: solid;
border-top-width: 1px;
box-shadow: 0 0 3px #EEEEEE;
max-width: 100%;
padding-bottom: 0;
padding-left: 10px;
padding-right: 0;
padding-top: 10px;
}
我不能更改CSS樣式表,但我可以通過其他方式應用CSS的變化。所以我想讓html完成忽略這個選擇器.lp-caption的所有規則。
有什麼辦法,我可以這樣做.lp-caption{none}
你可以顯示:沒有,如果你想隱藏或覆蓋每一個規定,你要更改的LP-標題。 –
唯一的解決方案是重寫它們全部。沒有你問我想的那樣的事情。 –
'jQuery'的removeClass'可能是直接的解決方案。然後你可以使用'addClass'來添加一個空類。 – KunJ