Get the App
SLTechnology News&Howtos  ›  Development  › 

How to use HTML @ media

Shulou Source: shulou.com Published: 2022-06-01 07:37:20 10月01日 Update

This article mainly introduces the relevant knowledge of how to use HTML @ media, the content is detailed and easy to understand, the operation is simple and quick, and has a certain reference value. I believe you will gain something after reading this article on how to use HTML @ media. Let's take a look at it.

The @ media delineation gives you the means to apply a consistent pattern delineation to a consistent preface in a similar color table.

The format in the above example tells the predator to represent a 14-pixel Verdana font on the float. But assuming that the page needs to be printed, a 10-pixel Times font will be used. Note: font-weight is set to bold, regardless of the display as usual preface:

@ media screen {p.test {font-family:verdana,sans-serif; font-size:14px}} @ media print {p.test {font-family:times,serif; font-size:10px} @ media screen,print {p.test {font-weight:bold}}.... This is the end of the article on "how to use HTML @ media". Thank you for reading! I believe you all have a certain understanding of the knowledge of "HTML @ media". If you want to learn more, you are welcome to follow the industry information channel.

Tags: Knowledge consistency pixels content font article similarity table above value example preface preface means easy to operate article easy to understand more pattern format see Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology MySQL NVidia Microsoft vpn