![](/img/trans.png)
[英]Background Image wont repeat vertically beyond the ContentPlaceHolder and Child Page
[英]Image wont repeat on Mobile
后台重復在移動瀏覽器中不起作用。 至少,當我嘗試在移動瀏覽器中瀏覽內容時,它什么也沒做。 是否有尺寸差異?
這是CSS
#header {
background: url(images/header_bg.png);
background-repeat: repeat;
overflow:hidden;
box-shadow: 0 1px 0 rgba(255,255,255,0.2);
-moz-box-shadow: 0 1px 0 rgba(255,255,255,0.2);
-webkit-box-shadow: 0 1px 0 rgba(255,255,255,0.2);
ms-box-shadow: 0 1px 0 rgba(255,255,255,0.2);
}
我認為這將起作用:
#header {
background: url("images/header_bg.png") repeat;
box-shadow: 0 1px 0 rgba(255,255,255,0.2);
/* Give a height and width*/
height: 100px;
width: 100px;
}
編輯:此外,您無需再指定moz,webkit,ms(框陰影)。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.