开发者

Media Queries - does it matter if in css file or html?

I want to use media queries to alter my design for phones and other mobile devices.

It seems I can开发者_StackOverflow社区 either have the following within my css file:

@media handheld and (max-width: 480px),  
screen and (max-device-width: 480px) {
}

Or, I can have something similar as part of the link to the CSS file, in my page html. Is their a difference between these two methods or is the result the same? Thanks


They are the same. Check the "Meet the media query" section of this link for even more choices on how to introduce them: http://www.alistapart.com/articles/responsive-web-design/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜