Answer to @media types' question with example (#27)
* Answer to @media types' question with example Referred to question: https://github.com/yangshun/front-end-interview-handbook/blob/master/questions/css-questions.md#can-you-give-an-example-of-an-media-property-other-than-screen * Update reference link
This commit is contained in:
parent
76037a3b33
commit
a9332591d5
|
|
@ -225,7 +225,24 @@ No... Sadly.
|
|||
|
||||
### Can you give an example of an @media property other than screen?
|
||||
|
||||
TODO
|
||||
Yes, there are four types of @media properties (including _screen_):
|
||||
* `all` - for all media type devices
|
||||
* `print` - for printers
|
||||
* `speech` - for screenreaders that "reads" the page out loud
|
||||
* `screen` - for computer screens, tablets, smart-phones etc.
|
||||
|
||||
Here is an example of `print` media type's usage:
|
||||
```css
|
||||
@media print {
|
||||
body {
|
||||
color: black;
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
###### References
|
||||
|
||||
* https://developer.mozilla.org/en-US/docs/Web/CSS/@media#Syntax
|
||||
|
||||
[[↑] Back to top](#css-questions)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue