绝对图片网址未在移动设备上显示

时间:2013-07-22 15:37:21

标签: css url mobile relative absolute

我在本网站上整合了我们的签名:http://www.moteljoanne.com/

使用此代码:

a.logoDSI {
    display: block;
    width: 115px;
    height: 20px;
    background-image: url('http://www.groupedsi.com/images/realise-par/logoDSI_rect-pale.png');
    background-position: 0% 0%;
    text-indent: -999999px;
    margin: 14px 10px 9px 10px;
}

a.logoDSI:hover {
    background-position: 0% -100%;
}

<a id="logoeDream" href="http://www.edreamweb.com" title="eDream | Services d'hébergement - eCommerce - Développement mobile" target="_blank"><span>eDream</span></a>

这在PC和MAC上运行良好但是当我使用iPod或iPad访问它时,徽标根本不显示。这不是由响应式设计引起的定位问题,因为我只需要使用相对路径来显示图像。一旦我更改了服务器上的绝对路径,图像就会在移动设备上消失。

这种行为是正常的吗?有没有办法让我可以获得使用移动设备的绝对路径?

谢谢!

1 个答案:

答案 0 :(得分:0)

这不应该是因为绝对路径 - 在移动设备中显示没有问题。 检查div位置:relative ....你需要那个和css在你的移动版本中。

相关问题