多个设备的CSS屏幕分辨率

问题描述:

刚刚创建了我的企业网站,并进行了调试测试。像往常一样,我假设。我的导航,正文和页脚根据使用的设备进行调整。多个设备的CSS屏幕分辨率

我希望有一个简单的修复方法来创建每个设备的屏幕调整,但我不知道如何去做。我查阅的信息都显示不同的东西。

有人可以帮助我如何实现代码来调整每屏幕分辨率? (不同的电脑屏幕,移动设备 - iPhone和三星,平板电脑等)

网址是:http://www.se7enservice.com

+0

有太多的设备和屏幕尺寸只是挑选一组数字和**希望**设计适合。更改屏幕大小,直到设计中断并使用* that *作为选定的媒体查询中断点。它可能是945px,可能是865px,但它是你的设计......而不是设备。 –

+0

好的,这是我不知道的。谢谢 – blackRob4953

+0

不要引用其他网站,尤其是不是指他们是商业网站。看起来好像你想要垃圾邮件。 – peterh

<style type="text/css"> 
    /* default styles here for older browsers. 
     I tend to go for a 600px - 960px width max but using percentages 
    */ 
    @media only screen and (min-width:960px){ 
     /* styles for browsers larger than 960px; */ 
    } 
    @media only screen and (min-width:1440px){ 
     /* styles for browsers larger than 1440px; */ 
    } 
    @media only screen and (min-width:2000px){ 
     /* for sumo sized (mac) screens */ 
    } 
    @media only screen and (max-device-width:480px){ 
     /* styles for mobile browsers smaller than 480px; (iPhone) */ 
    } 
    @media only screen and (device-width:768px){ 
     /* default iPad screens */ 
    } 
    /* different techniques for iPad screening */ 
    @media only screen and (min-device-width: 481px) and (max-device-width: 1024px) and (orientation:portrait) { 
     /* For portrait layouts only */ 
    } 

    @media only screen and (min-device-width: 481px) and (max-device-width: 1024px) and (orientation:landscape) { 
     /* For landscape layouts only */ 
    } 
</style>