Is okay to implement Modernizr with Twitter Bootstrap?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-03 06:29:25

问题


Is it OK to implement Modernizr with Twitter Bootstrap?

I'm currently using Bootstrap with Google's html5shiv and I wanted to know if I can use Modernizr instead or is it overkill just to get HTML5 elements activated for older IE browsers?

Thanks in advance


回答1:


Modernizr is a test suite that adds feature detection via classes applied to the body tag. It includes HTML5Shi(v|m) to add older browser compatibility. You don't need Modernizr just to style new tags in older browsers.

That said, it is OK to include Modernizr with Twitter Bootstrap. You can even get an auto-generated H5BP template with Bootstrap and Modernizr included at Initializr.



来源:https://stackoverflow.com/questions/11209478/is-okay-to-implement-modernizr-with-twitter-bootstrap

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!