image won't show up in mobile browser

久未见 提交于 2019-12-11 10:50:51

问题


I have an image in a mobile web page. The image does not appear to show up in the page in a mobile browser. If I access it directly, however, it shows up. If I look at the page in a regular browser, it shows up. We've looked at it with Dolphin for Android, Opera for Android, the native Android browser, and Safari for iPhone. What gives?

the mobile page (contains video) http://bit.ly/L2YA1i

the problematic image http://bit.ly/L3QlU3

The HTML for the image (and it's container)

<div class="logo"><a href="http://m.celebritycruises.com/m/home.do"><img src="http://media.celebritycruises.com/celebrity/content/en_US/images/cel_misc/logo.jpg" alt="Celebrity Mobile"></a></div>

The CSS for the container>

.logo {
    padding:10px 0;
    text-align:center;
}

回答1:


try this :

<div class="logo">
     <a href="http://m.celebritycruises.com/m/home.do">
        <img src="http://media.celebritycruises.com/celebrity/content/en_US/images/cel_misc/logo.jpg" 
            alt="Celebrity Mobile" border="0" width="259" height="55"
        />
     </a>
</div>


来源:https://stackoverflow.com/questions/11003118/image-wont-show-up-in-mobile-browser

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!