2012-11-30 148 views
0

我使用下面的代码来设置标志的h1标记中的“标志”的背景图像。背景大小问题:100%在黑莓

h1#logo { 
margin: 5px 0 0 0px; 
background: transparent url(../../assets/images/applewood_logo.png) no-repeat; 
height:150px; 
display:block; 
cursor:pointer; 
color: #ccc; 
text-indent:-1900px; 
max-width:145px; 
background-size:100%; 
z-index:500; 

}

它完美地在所有设备上,除了黑莓,其中标志的边缘被切断。这里是一个链接到该网站:http://www.applewoodindependent.co.uk

回答

2

用于CSS3媒体查询

加入这个CSS

@media only screen and (min-width:50px) and (max-width:480px) { 
    h1#logo{ 
     background-size: auto 81px; 
    } 

} 

More info

+0

感谢,送到客户进行测试。 –

+0

我以为黑莓手机不支持背景大小? http://docs.blackberry.com/en/developers/deliverables/27290/Overview_function_1176567_11.jsp – gerl