Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/python-2.7/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Responsive design 使最小宽度和最小设备宽度同时工作_Responsive Design_Width_Media Queries - Fatal编程技术网

Responsive design 使最小宽度和最小设备宽度同时工作

Responsive design 使最小宽度和最小设备宽度同时工作,responsive-design,width,media-queries,Responsive Design,Width,Media Queries,这在我的iphone上有效 @media only screen and (min-device-width : 320px) and (max-device-width : 480px) { 这在chrome中工作 @media only screen and (min-width : 320px) and (max-width : 480px) { 我可以让它们在同一组规则上工作吗?在查询中只使用最大宽度和最小宽度,除非您需要特定的小型设备样式。确保您正在使用中的标记,以使这些查

这在我的iphone上有效

@media only screen 
and (min-device-width : 320px) 
and (max-device-width : 480px) {
这在chrome中工作

@media only screen 
and (min-width : 320px) 
and (max-width : 480px) {

我可以让它们在同一组规则上工作吗?

在查询中只使用最大宽度和最小宽度,除非您需要特定的小型设备样式。确保您正在使用
中的
标记,以使这些查询应用于小屏幕设备<代码>