阅读背景:

如何使用CSS让文字环绕图片(最多3面环绕)

来源:互联网 

HTML和CSS代码如下:

<html>
<head>
<style type="text/css">
img 
{
float:right;
clear:both;
}
</style>
</head>

<body>
<p>在下面的段落中,我们添加了一个样式为 <b>float:right</b> 的图像。结果是这个图像会浮动到段落的右侧。</p>

<div style="width:0px;height:20px;float:right"></div>
<img src="/i/eg_cute.gif" />
<p>
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
</p>
</body>

</html>  <html>
<head>
<style type="



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: