不同的CSS为不同的屏幕尺寸? [英] Different CSS for different screen size?

查看:147
本文介绍了不同的CSS为不同的屏幕尺寸?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在这里搜索arround,发现我可以使用以下方法之一:

I was searching arround here and I found that I can use one of the following:

Adapt.js或媒体查询

Adapt.js or Media Queries

我想知道什么更好使用?我基本上需要调整不同宽度的不同屏幕的一些指定的div。 (800x600和640x480)

I was wondering what is better to use? I Basically need to resize some specified divs with different width for different screens. (800x600 and 640x480)

如果没有提到任何好的,任何其他解决方案?谢谢:)

If none of mentioned is good, any other solution ? Thank you :)

推荐答案

<link rel="stylesheet" media="all" href="css/common.css">
<!--Responsive style sheets -->
<link rel="stylesheet" media="all and (min-width: 600px) and (max-width: 800px)" href="css/name1.css">
<link rel="stylesheet" media="all and (min-width: 480px) and (max-width: 640px)" href="css/name2.css">

这篇关于不同的CSS为不同的屏幕尺寸?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆