SoFunction
Updated on 2025-02-28

Dynamically create differential test codes for style sheets in each browser


<!doctype html>
<head></head>
<body>
<span >xxx</span>
<script>
var css = ('style');
('type', 'text/css');
var cssText = 'span{color:Red;}';
if() { // IE
= cssText
} else {
((cssText));
}
("head")[0].appendChild(css);
</script>