html 5 tag not supporting on below ie9?

前端 未结 4 1929
名媛妹妹
名媛妹妹 2021-01-27 03:35

i just visited apple.com and they use some html5 tag like nav. it is working in all broswer but i i try to test html5 code it is not working in ie8 and ie7. i am not getting wha

4条回答
  •  北荒
    北荒 (楼主)
    2021-01-27 04:16

    It depends what you mean by “not working in ie8 and ie7”. I see you’ve got HTML5shiv in there — that should make IE recognise your

    element at least. Is the red border showing up at least?

    Bear in mind that IE (just like older versions of Firefox) won’t apply any default styles to these elements, so you’ll need to add those too, e.g.

    header {
        display: block;
    }
    

    Reset stylesheets like Eric Meyer’s add this CSS for you:

    • http://meyerweb.com/eric/tools/css/reset/

提交回复
热议问题