css教程:CSS关于显示的分类属性的应用示例

css教程:CSS关于显示的分类属性的应用示例

The CSS classification properties allow you to specify how and where to display an element.

CSS分类属性允许你指定元素怎样显示并在哪显示。

怎样显示一元素 How to display an element

This example demonstrates how to display an element.

Examples 实例:

Source Code to Run [www.fun52.com]

p {display: inline}

div {display: none}

display 属性值为 “inline” 的结果如下:

两个元素间没有间隔

这个层将不显示

   [ 可先修改部分代码 再运行查看效果 ]

一个简单的浮动属性 A simple use of the float property

Let an image float to the right in a paragraph.

Examples 实例:

Source Code to Run [www.fun52.com]

img

{

float:right

}

在先面的段落中,我们为图片添加了个样式 float:right,用于使图片插入到文字的右边。

欢迎来到fun52.com ! 欢迎来到fun52.com !

欢迎来到fun52.com ! 欢迎来到fun52.com !

欢迎来到fun52.com ! 欢迎来到fun52.com !

欢迎来到fun52.com ! 欢迎来到fun52.com !

欢迎来到fun52.com ! 欢迎来到fun52.com !

欢迎来到fun52.com ! 欢迎来到fun52.com !

欢迎来到fun52.com ! 欢迎来到fun52.com !

欢迎来到fun52.com ! 欢迎来到fun52.com !

欢迎来到fun52.com ! 欢迎来到fun52.com !

欢迎来到fun52.com ! 欢迎来到fun52.com !

欢迎来到fun52.com ! 欢迎来到fun52.com !

欢迎来到fun52.com ! 欢迎来到fun52.com !

欢迎来到fun52.com ! 欢迎来到fun52.com !

欢迎来到fun52.com ! 欢迎来到fun52.com !

欢迎来到fun52.com ! 欢迎来到fun52.com !

   [ 可先修改部分代码 再运行查看效果 ]

一个带边框和边距的图片浮动到一个段落的右边 An image with border and margins that floats to the right in a paragraph

Let an image float to the right in a paragraph. Add border and margins to the image.

第 1 2 3 4 5 6 页

css教程:CSS关于显示的分类属性的应用示例

相关文章:

你感兴趣的文章:

标签云: