我把图片告知我的网站正在建设中。这是一张800x600的图片,当您在桌面上访问时,它可以保持原始大小。这是页面中唯一的东西。如何在移动设备上全屏显示图像,但不在桌面上显示?
当人们从手机访问它时,我想使它适合整个屏幕。怎么样?
<style type="text/css">
body { background-color: #6BC5C5; }
</style>
<title>Size is being moved to another server</title>
<div style="margin: 0; padding: 0; left: 0; top: 0; border: 0; position: absolute;">
<img src="movedatacenter.jpg" alt="Under Maintenance" width="595" height="1021" align="left"></div>
是的,这是最好的解决方案,+1 – 2013-02-15 14:23:55
以及如果我的图片需要垂直滚动,我可以使用height:*;而不是100%? – PSyLoCKe 2013-02-15 15:13:09
@EASI如果图像太高,设备将垂直滚动。我不知道什么高度:*是。 – BBagi 2013-02-15 15:16:04