Jan 14, 2011
Let the private CSS property of the browser through the W3C validation
We know that, like some of CSS3 border-radius properties that even in the advanced Firefox, Chrome and other browsers are not directly supported, must be added-moz-,-webkit-prefix private property so we can let the browser their support. But unfortunately, in the style sheet with the private property after the W3C validation can not, CSS2.0 that our family did not like border-radius property, CSS3.0 that our family did not-moz-, -webkit-such a freak. Yes more than a cup.
Willin master ways to make private property of the W3C validation is no longer a cup (do not know Willin first master, at least this trick I learned from him.) How a method? Actually very simple, that is the style written Javascript, W3C validation will ignore the script, more than a simple principle, but we have not thought of that.
For example, the following style:
<style type="text/css">
. Box {-moz-border-radius: 5px;}
</ style>
If you want to write Javascript, then it should be:
<script type="text/javascript">
document.write ('<style type="text\/css">. box {-moz-border-radius: 5px;} <\ / style>');
</ Script>
The conversion is as simple as the browser can help you through the W3C validation of private property, of course, with this principle, we can extend the look, for example, IE's filter, expression and so is considered illegal stuff W3C can thrown into the script to bypass authentication.
Maintained by BPOVIA Web Design Team





Recent Comments