I have built a responsive website on an ASP.NET Dotnetnuke installation, using css-media queres and the html5boilerplate web page template.

While the html5boilerplate is supposed to render html5 support for older browsers (IE8), I have found it to be doing the opposite! My site seems to load fine on IE9, chrome, firefox, etc.. but it is littered with javascript errors and the like when loaded in IE8.

I guess my question is fairly simple. Can anyone confirm that I have correctly set up the html5boilerplate on my website? If so, why is IE8 going crazy?

Also, would anyone be willing to inspect my homepage in IE8, and see if they can help point me in the right direction as to where to begin troubleshooting why the site is breaking?

You can view this issue in action at http://www.yandasmusic.com

有帮助吗?

解决方案

At first glance it looks like you modernizr script isn't loading properly. Do you have the following linked properly in your <head>?

<script src="js/vendor/modernizr-2.6.2.min.js"></script>

When you originally downloaded the bootstrap folder from HTML5Boilerplate there should have been a js folder - if you copied the js folder properly into your own website, you should have the following vender folder with the modernizr script, which makes your website more compatible with anything under IE9.

Update
I tried finding the following:
http://www.yandasmusic.com/Portals/_default/Skins/Yandas-Response/js/vendor/modernizr-2.6.2-respond-1.1.0.min.js

But it returned a 404 error - that could be because I am forbidden from accessing those folders, but you should double check and make sure that it works.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top