基金会5不与IE8合作

Rat*_*ore 1 css internet-explorer media-queries zurb-foundation

我正在使用Foundation 5,除了IE8以外,所有浏览器都能正常工作.我也尝试使用polyfill,但IE8上仍存在css问题.任何其他解决方案.

Cor*_*ius 10

对于某些企业来说,放弃对IE8的支持并不是一个可行的选择.我必须得到一个在IE8中工作的Foundation 5网站,这是我为使其工作所采取的步骤.

分解:

  1. 使用jQuery v1.x而不是v2.x
  2. 包括IE8网格支持CSS
  3. 在CSS之后在HEAD中包含填充程序
    • cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6.2/html5shiv.js
    • s3.amazonaws.com/nwapi/nwmatcher/nwmatcher-1.2.5-min.js
    • html5base.googlecode.com/svn-history/r38/trunk/js/selectivizr-1.0.3b.js
    • cdnjs.cloudflare.com/ajax/libs/respond.js/1.1.0/respond.min.js
    • github.com/es-shims/es5-shim - shim.js
  4. 在启动基础之前包括Foundation js fix
  5. 在页面底部包含REM垫片

有关如何执行此操作的更多信息,请查看以下链接:

http://www.kycosoftware.com/blog/article/getting-foundation-5-to-work-in-ie8