This is Srinivas, I am working on ASP.Net Technology. I developed on web site, that's works fine in IE but the design is changing from Mozilla, Safari. How to fix the problem. How to maintain the browser compatibility. I stuck with this problem from last two days. Please provide a solution for fixing this problem. If Possile provie code also. Thanks in advance.
The best way to maintain compatibility is to follow the standards set by W3C. You should also be testing your layout on as many browsers as you can while developing your layout, so you can immediately see what works and what doesn't work. Without seeing any code, I can't make any further suggestions about how to fix the compatibility of your layout.
Cross-browser compatibility is a touchy subject, but your best bet to alleviate most of your pain is to:
- Use standards-compliant markup.
- Test rigorously.
Ultimately, you'll be making a lot of CSS and Javascript hacks unless you're using a layer that insulates you from the intricacies of each browser's implementations. JQuery is one popular solution, there are many more out there.
Finally, ASP.NET MVC is worlds better than its webforms counterpart for cross-browser development.
Always design for Mozilla/Webkit browsers. When it looks right in standards compliant browsers you can then pander to IE's deficiencies, safe in the knowledge that at least most of your code is standards compliant.
精彩评论