Home >Web Front-end >HTML Tutorial >Remove the expression Expression_html/css_WEB-ITnose in CSS
In IE, CSS can embed js expressions and can be defined in CSS classes. However, if the CSS class containing the expression is removed from the DOM object, the style expression will not be invalid. .
After research, I found the answer. You need to use js to call the removeExpression() method of the style object to remove it.
The following is a description of the method:
Syntax
bSuccess = object<strong>.removeExpression(</strong>sPropertyName<strong>)</strong>
Parameters
sPropertyName | Required.
that specifies the name of the property from which to remove an expression. |
true | The expression was successfully removed. |
false | The expression was not removed. |
Css code
.wrap {
border:none;
Html code
5cc63059df99461c78494128a2931fba
Html code
a4af2b3a872e6e2bb0e73efc1711532a[original size]d6d448110e0324953b5d7bc1e2b276ce
Java code
function showOrigin(){
$('#chart_img').toggleClass("chart");