公告
财富商城
积分规则
提问
发文
2019-04-07 11:38发布
放荡不羁爱自由
What does media="screen" mean in the below css code?
<style type="text/css" media="screen">
The goal of the media attribute is to allow you to specify different styles for different methods of display.
Most commonly I use this to have 2 sets of styles, 1 for display (screen) and 1 for printing (print)
Normally on the "print" css I'll do things like hide buttons, strip out extraneous images, ads, etc etc. Basically, make it 8.5x11 friendly.
There are two types, screen is the default browser view. print is for print view.
In addition to Brook's answer, the media="foo" attribute of the is equivilant to the @media foo in your CSS file
media="foo"
@media foo
最多设置5个标签!
The goal of the media attribute is to allow you to specify different styles for different methods of display.
Most commonly I use this to have 2 sets of styles, 1 for display (screen) and 1 for printing (print)
Normally on the "print" css I'll do things like hide buttons, strip out extraneous images, ads, etc etc. Basically, make it 8.5x11 friendly.
There are two types, screen is the default browser view. print is for print view.
In addition to Brook's answer, the
media="foo"
attribute of the is equivilant to the@media foo
in your CSS file