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
Html code
[original size] span>
Java code
function showOrigin(){
$('#chart_img').toggleClass("chart");