The CSS classification properties allow you to specify how and where to display an element.
CSS分类属性答应你指定元素怎样显示并在哪显示。怎样显示一元素 How to display an elementThis example demonstrates how to display an element.
Examples 实例:
Source Code to Run
[www.21shipin.com] 一个简单的浮动属性 A simple use of the float propertyLet an image float to the right in a paragraph.
Examples 实例:
Source Code to Run
[www.21shipin.com] 一个带边框和边距的图片浮动到一个段落的右边 An image with border and margins that floats to the right in a paragraphLet an image float to the right in a paragraph. Add border and margins to the image.
Examples 实例:
Source Code to Run
[www.21shipin.com] 带说明的图片浮动到右边 An image with a caption that floats to the rightLet an image with a caption float to the right.
Examples 实例:
Source Code to Run
[www.21shipin.com] 让一段落的第一个字符浮动到左边 Let the first letter of a paragraph float to the leftLet the first letter of a paragraph float to the left and style the letter.
Examples 实例:
Source Code to Run
[www.21shipin.com] 建立一水平菜单 Creating a horizontal menuUse float with a list of hyperlinks to create a horizontal menu.
Examples 实例:
Source Code to Run
[www.21shipin.com] 使用float来建立一个带有标题,脚标,左内容和主内容的首页 Creating a homepage without tablesUse float to create a homepage with a header, footer, left content and main content.
Examples 实例:
Source Code to Run
[www.21shipin.com] 样式让元素相对于它的原始位置来进行相对定位 Position:relativeThis example demonstrates how to position an element relative to its normal position.
Examples 实例:
Source Code to Run
[www.21shipin.com] 如何使用绝对值来定位一个元素 Position:absoluteThis example demonstrates how to position an element using an absolute value.
Examples 实例:
Source Code to Run
[www.21shipin.com] 怎样使一元素不可见 How to make an element invisibleThis example demonstrates how to make an element invisible. Do you want the element to show or not?
Examples 实例:
如何改变游标的样子 Change the cursorThis example demonstrates how to change the cursor.
Examples 实例:
Source Code to Run
[www.21shipin.com] The CSS classification properties allow you to control how to display an element, set where an image will appear in another element, position an element relative to its normal position, position an element using an absolute value, and how to control the visibility of an element.
CSS类别属性答应你控制元素的显示效果,设置图象将在显示在另一元素的哪个位置,相对于元素正常位置的定位,以绝对值来定位一元素,并控制元素的可见性。