2017-01-02 76 views
0

这是形容它是什么样子的15英寸监测使身体尺寸

enter image description here

&这个图像是有关当我尽量减少我的浏览器屏幕白衣(CTRL +图像 - )

enter image description here

我的网站在20英寸显示器很好的观点,但在15英寸监视它不好看,所以我必须用(CTRL +减少我的屏幕 - ),然后它看起来很棒!

body { 
     background-image: url(../../img/darkbg.png); 
     background-repeat: no-repeat; 
     position: fixed; 
     left: 0px; 
     top: 0px; 
     width: 100%; 
     height: 100%; 
     z-index: 9999; 
} 

html, body, .container-table { 
     height: 100%; 
} 

如果有人能给我任何建议,我会很感激。

+0

背景图像或一切? –

+0

你可以提供网站的网址或快照如何在15英寸的外观显示器? – user7357089

+0

@ Dejan.S每件事...我现在添加了2张图片,描述了我想要的内容 – martin

回答

0

如果您的意思是背景图片请尝试background-size属性。

body{ 
    background-image: url(../../img/darkbg.png); 
    background-repeat: no-repeat; 
    -webkit-background-size: cover; 
    -moz-background-size: cover; 
    -o-background-size: cover; 
    background-size: cover; 
    position: fixed; 
    left: 0px; 
    top: 0px; 
    width: 100%; 
    height: 100%; 
    z-index: 9999; 
} 

这将使背景图像自动调整为浏览器宽度。 欲了解更多详情https://developer.mozilla.org/en-US/docs/Web/CSS/background-size