我对这个图像的名字板块(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