Why isn't Modernizr working for me?

后端 未结 2 1504
自闭症患者
自闭症患者 2020-12-10 08:23

I don\'t think modernizr likes me, can someone please tell me what i\'m doing wrong. I can\'t seem to get modernizr to work on firefox, ie etc... I\'m only using elements li

2条回答
  •  离开以前
    2020-12-10 09:14

    I had the same issue when I was trying to use a CDN and it wasn't working (I might have had the wrong link). The test I found was to put

    .borderradius body {
      background: #c00;
    }
    

    in your main.css and see if the background turns red. If it is modernizr, is working.

    EDIT: I've also found that the script must be inserted at the top of the HTML document. Putting it at the bottom, as suggested for better loading speed of pages, doesn't work.

提交回复
热议问题