Padding not working when using
tag in IE

前端 未结 3 2115
一生所求
一生所求 2021-02-04 19:07

I am using HTML5 < section > tag in my application, padding for < section > tag works fine in chrome,ff and safari but its not working in IE..

I tried adding displ

3条回答
  •  别那么骄傲
    2021-02-04 19:55

    As others have mentioned, the

    element is one of the new HTML5 elements that is not supported in IE versions lower than 9.

    I'm not sure how accurate this article is, but they are able to pull of the effect you are after using XHTML5. However, there's a lot of caveats that have to be taken into account of very carefully to get it to work (such as not serving the XML declaration to IE as it will make IE go into quirks mode, but you need to serve it to other browsers, etc.)

    However, the benefits of this approach are that you require no Javascript to get it to work, and therefore can serve to users with Javascript disabled.

提交回复
热议问题