简体   繁体   English

浏览器兼容性问题(使用jQuery,CSS时)

[英]Browser Compatibility issue (while using jQuery, css)

Following is the url of the site: http://bit.ly/mykwikweb 以下是该网站的网址: http : //bit.ly/mykwikweb

Website loads some components in IE, others not working in Mozilla, Opera, Chrome or safari Even the alignment changes with browser. 网站会在IE中加载某些组件,而其他组件则无法在Mozilla,Opera,Chrome或safari中运行,甚至对齐方式也会随浏览器而改变。
I have used CSS, Jquery and some of the AJAX calls. 我使用过CSS,Jquery和一些AJAX调用。
I was wondering which mode to use? 我想知道使用哪种模式? Strict or Quirks modes? 严格或怪癖模式?

一些CSS属性将取决于浏览器。因此请检查您的CSS属性,使其仅支持IE。

A valid doctype will fix quirks mode issue. 有效的doctype将解决怪癖模式问题。 Remove the comments on the one you have and start from there, pull the scripts to external file, or wrap in CDATA comments to make validation easier and make sure you don't have broken tags in w3c validator after all that. 删除已有的注释,然后从那里开始,将脚本拉到外部文件,或包装CDATA注释以使验证更加容易,并确保在所有这些之后,w3c验证器中没有损坏的标签。 It's a web dev site, assume they will want 100% validation 这是一个Web开发站点,假设他们需要100%验证

jQUery does not support quirks mode. jQUery不支持怪癖模式。 It is perfectly acceptable having script in the page, the only reason I suggested external file is to simplify validation since you seem to be having troubles 在页面中包含脚本是完全可以接受的,我建议外部文件的唯一原因是简化验证,因为您似乎遇到了麻烦

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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