Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/41.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 有哪些脚本可用于修复样式错误&;IE的缺点?_Javascript_Css_Internet Explorer_Css Selectors_Polyfills - Fatal编程技术网

Javascript 有哪些脚本可用于修复样式错误&;IE的缺点?

Javascript 有哪些脚本可用于修复样式错误&;IE的缺点?,javascript,css,internet-explorer,css-selectors,polyfills,Javascript,Css,Internet Explorer,Css Selectors,Polyfills,有几种有用的Javascript和.htc行为可以修补Internet Explorer渲染引擎中的漏洞和缺陷。似乎它们中的大多数都有一些重叠或不完整的功能支持,很难决定使用什么: :边界半径 :边框半径、框阴影、使用VML的文本阴影模拟 :高级选择器支持 :边框半径、框阴影、边框图像、多个背景图像、作为背景图像的线性渐变、rgba :使用AlphaImageLoader支持Alpha透明PNG :使用VML的Alpha透明PNG支持 :高级选择器,alpha透明PNG,位置:固定,最小/最大

有几种有用的Javascript和.htc行为可以修补Internet Explorer渲染引擎中的漏洞和缺陷。似乎它们中的大多数都有一些重叠或不完整的功能支持,很难决定使用什么:

  • :边界半径
  • :边框半径、框阴影、使用VML的文本阴影模拟
  • :高级选择器支持
  • :边框半径、框阴影、边框图像、多个背景图像、作为背景图像的线性渐变、rgba
  • :使用AlphaImageLoader支持Alpha透明PNG
  • :使用VML的Alpha透明PNG支持
  • :高级选择器,alpha透明PNG,位置:固定,最小/最大宽度/高度,框大小
  • :css3选择器
  • :css3选择器
如果您还有更多,请添加到此列表:这是一个社区wiki

你最喜欢的脚本是什么?有哪些好处、限制和问题


更新:这些脚本现在通常称为“Polyfills”

不是脚本,但可能值得一提的是插件:

Google Chrome Frame是一个开源插件,它无缝地将Google Chrome的开放web技术和快速JavaScript引擎引入Internet Explorer。使用Google Chrome框架,您可以:

  • 立即开始使用开放式web技术,比如HTML5画布标签,即使是Internet Explorer 6、7或8中尚不支持的技术

  • 利用JavaScript性能改进,使您的应用程序更快、响应更快

:HTML5 IE启用脚本


但基本上,这些脚本完成了工作,但以性能问题等为代价。有一些可接受的解决方法,例如。这只是一个项目类型的问题。

我也建议使用Blueprint CSS

引用他们的网站

蓝图能提供什么

* A CSS reset that eliminates the discrepancies across browsers.
* A solid grid that can support the most complex of layouts.
* Typography based on expert principles that predate the web.
* Form styles for great looking user interfaces.
* Print styles for making any webpage ready for paper.
* Plugins for buttons, tabs and sprites.
* Tools, editors, and templates for every step in your workflow.

我最喜欢的是一个脚本,它向用户显示以下消息:“下载Firefox。”;)这不是多边形填充。它确实包含一个“重置”样式表,但它没有解决IE中缺少的任何功能。