0

我有一个浮动到左边的图像,可以很好地环绕它的文本,但是,当 Ul 和 Li 发挥作用时,我遇到了问题。我不太清楚如何解释,所以这是一张图片:在此处输入图像描述

代码:

<div style="overflow:auto;">
<center>
<h2>Ultimath V. 1.6.1 Released</h2>
</center>
<img align="left" src="images/ultimath_quadratic_tablet_land.png">
<center>Many new features and updated features, such as:</center><br>
<ul margin-left="15px">
        <li>Changed Search function to no longer bring you to homepage if not activated</li>
        <li>Multiple UI Fixes and upgrades</li>
        <li>Tablet specific layouts! (example to left)</li>
        <li>All inputs now automatically accept numbers (no more fumbling with switching to number keyboard!)</li>
        <li>Major Step by Step revamp! All solvers are now MUCH more specific!</li>
</ul>
</div>
<br>
<hr>

提前致谢!

4

2 回答 2

0

错误的:

<ul margin-left="15px">

正确的语法:

<ul style="margin-left: 15px">

也尝试margin-right: 15px;为您的图像设置。

于 2012-05-27T01:38:41.843 回答
0

而不是float: left,您应该使用display:inline-block.

现场演示

于 2012-05-27T01:42:20.863 回答