sunicani Posted August 3, 2009 Share Posted August 3, 2009 cause different browsers would give various layout even with unique layout code!how can I fulfill the same layout effect via JS to detect browser's version and fit to each of them automatically?thanks, mate Link to comment Share on other sites More sharing options...
Ingolme Posted August 3, 2009 Share Posted August 3, 2009 Professional web developers make layouts that are designed to work on all browsers.Those who don't know enough about HTML and CSS rely on browser switching, which, of course, has its disadvantages.If you really want to do things the easy way, use navigator.appName to detect the browsers; however, the easiest way is not always the best. Link to comment Share on other sites More sharing options...
jeffman Posted August 3, 2009 Share Posted August 3, 2009 I want to support Ingolme's answer on this one. If you use a strict doctype and write 100% standards-compliant HTML you will achieve most of your goal. The rest can be achieved through experience, by comparing the small differences that remain in each browser and tweaking your code in response. You can still end up with compliant code, but there is more than one way to do things correctly. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.