我是 CSS 初学者,我不知道我是否正确理解媒体查询。
要有这样的 css 结构:
general css
fonts, paddings, colors, etc
css for small screens (up to 499px)
specific css for this resolution
css for large screen (more than 500px)
specific css for this resolution
css specific for impression
specific css for this case, for example different text color, etc
正确的媒体查询结构是这样的吗?
/* GENERIC CSS */
/* CSS for small screens */
@media only screen and (max-width: 499px) { ... }
/* CSS for small screens */
@media only screen and (min-width: 500px) { ... }
/* CSS for some specific changes like text color, etc for printing on paper */
@media print {...}
至尊宝的传说
相关分类