How do professional web designers create cross-browser CSS? Is it generally done by hand, or are there toolkits that can streamline the process, like YUI does for JavaScript? I'd prefer to stay away from WYSIWYG editors like DreamWeaver. Thanks!
问题:
回答1:
It's generally done by hand.
It typically starts by applying a CSS reset to even the playing field.
And you should aim at standards compliant CSS and then only as a last resort apply hacks for IE (yes I just called it out).
回答2:
For tools & services i tried Browsershot and Spoon:Browsers. Also for tips and tricks, i found this article and this helpful.
回答3:
WYSIWYG editors are very rare in the professional world.
Toolkits like YUI, jQuery, etc... are very popular since they offer a lot of cross-browser Javascript functionality.
However, for CSS, twiddling by hand with lots of swearing to get IE6 to work is common. Websites like quirksmode can help you out by pointing out browser-specific quirks.
回答4:
Most people just design to a common baseline: Firefox and/or Safari and Chrome. under most circumstances, the design will then Just Work with everything except the various versions of IE, for which one simple set of custom rules will fix.
回答5:
I think they pretty much have learned css compatibility across browsers. There are a multitude of charts on the internet that explains whats supported on each browser in detail and how it affects the rendering of the page.