2017-01-02 75 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