简体   繁体   中英

Cross-browser CSS

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!

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).

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.

For tools & services i tried Browsershot and Spoon:Browsers . Also for tips and tricks, i found this article and this helpful.

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM