How to make JS and CSS compatible with IE, Firefox, Chrome, Safari?

冷暖自知 提交于 2019-12-10 09:52:53

问题


Our company develops ERP and CRM, and so far our products support IE and Firefox. Now we want to support Chrome, Safari and even Opera. Is there any comprehensive materials that introduce browser compatibility of JS and CSS? thks!


回答1:


theres the mozilla dev-center that has a great CSS- and JavaScript-reference. Every entry has information about browser compatibility.

For a quick overview, you cauld also take a look at caniuse.com (CSS and JavaScript) that provides simple tabular lists for the different features.




回答2:


I've been coding the front-end for over a decade and a half now, and things seem to get better over time in regards to cross-browser compatibility. I've found that if I write and test my code using Firefox, most everything will work flawlessly on Chrome, Opera, Safari and the only thing you'll end up having to debug would be MSIE. 10 years ago I would have told you to code and test using MSIE and debug your code in the end with Netscape.

But yeah, if you follow this, you'll find it easier to make all your scripting and markup fully cross-browser compatible with no bugs at all. Enter IE9, of course, a different monster altogether.




回答3:


Is there any comprehensive materials that introduce browser compatibility of JS and CSS?

http://en.wikipedia.org/wiki/Comparison_of_layout_engines_(Cascading_Style_Sheets) http://html5test.com/
http://caniuse.com/

"Comprehensive" can change overnight, but there is a great deal of information available.

If your products work for the latest version of Firefox, Chrome, Safari, and Opera will work without major flaws most of the time. If your markup is invalid, you are using many vendor-specific extensions, or you are using cutting-edge features, this may not be the case.



来源:https://stackoverflow.com/questions/9680302/how-to-make-js-and-css-compatible-with-ie-firefox-chrome-safari

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!