【发布时间】:2013-07-28 19:00:42
【问题描述】:
我有一个我想在右上角对齐的 img。如果窗口太小,我不希望图像与文本重叠,而是使窗口可滚动。所以我做了一个 div width max-width: 1000px;.
这就是我现在拥有的
<div style="z-index: -1; width:100%; position: absolute;">
<div style="width: auto; min-width: 1000px; display:inline-block;"></div>
<div style="display:inline-block; float: right;">
<a href="#" id="a_logo_hoek">
<img src="xx.jpg" style="float: right; margin-top:-30px;" />
</a>
</div>
</div>
【问题讨论】:
-
标记中有很多
html错误。看来您在每个html标签 EDITED 上都错过了<,我看到您现在已经编辑了它