我對這個圖像的名字板塊(PAST CHAMPIONS)進行了瘟疫,除了iPhone肖像外,它在所有屏幕上看起來都很不錯,它似乎被切斷了。如何在沒有媒體css的情況下製作圖像縮放比例
無論如何,使這個規模沒有媒體的CSS?
這裏是主頁。 http://www51.myfantasyleague.com/2017/home/61106#0
原始代碼仍然在CSS
#championship_plaque h2 {
background:
rgba(0, 0, 0, 0)
url("http://dagrafixdesigns.com/Images/2008/DA_2017/DA_Pro16/plaquetitle_glass.png")
no-repeat
scroll
center center
!important;
border: 0 none;
margin-left: 25px;
text-indent: -9999px;
}
嘗試這種代碼,沒有運氣
#championship_plaque h2 {
background:
rgba(0, 0, 0, 0)
url("http://dagrafixdesigns.com/Images/2008/DA_2017/DA_Pro16/plaquetitle_glass.png")
no-repeat
scroll
center center
!important;
background-position: 70% 0;
background-repeat: no-repeat;
background-size: cover;
padding-bottom: 20px;
padding-top: 20px;
}
桌面:
手機:
我想我可以用媒體的呼叫切換到一個新的形象爲這個大小的屏幕,如果一切都失敗了,只是想看看它是否可以先做這樣。 thx
有沒有理由反對'@media()'查詢? – Dai