Is there no difference between No media and media=“all” in css link?

后端 未结 3 1437
一生所求
一生所求 2021-01-04 13:33

Is there no difference between No media and media=\"all\"?


3条回答
  •  渐次进展
    2021-01-04 14:30

    In HTML 4.01, the default value is screen.
    In HTML5, the default value has been changed to all.

    Therefore, it depends on the doctype declaration you use in your page. Never mind, user agents get confused about standards anyway; see Knu's comment. (I bet this is why they changed it to all in HTML5.)

    Then again, this only really matters if you're supporting user agents that don't present pages on digital screens, or display any visual information for that matter.

提交回复
热议问题