Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/88.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 背景尺寸问题:黑莓100%_Html_Css_Mobile_Blackberry_Device - Fatal编程技术网

Html 背景尺寸问题:黑莓100%

Html 背景尺寸问题:黑莓100%,html,css,mobile,blackberry,device,Html,Css,Mobile,Blackberry,Device,我使用下面的代码将h1标签中“logo”的背景图像设置为logo 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-

我使用下面的代码将h1标签中“logo”的背景图像设置为logo

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;
}


它在所有设备上都能完美工作,除了黑莓手机,黑莓手机的标志边缘被切掉了。以下是该网站的链接:

用于css3媒体查询

添加到此css中

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

}

我以为黑莓设备不支持背景大小?