案例:CSS3 案例     状态:可编辑再运行    进入横版
x
 
1
<html>
2
<head>
3
<style type="text/css">
4
img 
5
{
6
float:right
7
}
8
</style>
9
</head>
10
11
<body>
12
<p>在下面的段落中,我们添加了一个样式为 <b>float:right</b> 的图像。结果是这个图像会浮动到段落的右侧。</p>
13
<p>
14
<img src="/img/eg_cute.gif" />
15
This is some text. This is some text. This is some text.
16
This is some text. This is some text. This is some text.
17
This is some text. This is some text. This is some text.
18
This is some text. This is some text. This is some text.
19
This is some text. This is some text. This is some text.
20
This is some text. This is some text. This is some text.
21
This is some text. This is some text. This is some text.
22
This is some text. This is some text. This is some text.
23
This is some text. This is some text. This is some text.
24
This is some text. This is some text. This is some text.

 运行结果 
 北美留学生论坛