<css 十六>分类属性

来源:互联网 发布:资产抵押债券知乎 编辑:程序博客网 时间:2024/04/30 19:53

float/clear:css1

none-默认leftrightboth-左右两侧不允许浮动

position:css2

absolute - 生成绝对定位的元素,相对于static以外的第一个父级元素进行定位。fixed - 绝对定位的元素,相对于浏览器窗口进行定位。relative - 相对定位的元素,相对于其正常位置进行定位。static - 没有定位


cursor:css2

auto- 默认,跟根据浏览器的光标而定。default- 默认光标<body><span style="cursor:auto">Auto</span><br /><span style="cursor:crosshair">Crosshair</span><br /><span style="cursor:default">Default</span><br /><span style="cursor:pointer">Pointer</span><br /><span style="cursor:move">Move</span><br /><span style="cursor:e-resize">e-resize</span><br /><span style="cursor:ne-resize">ne-resize</span><br /><span style="cursor:nw-resize">nw-resize</span><br /><span style="cursor:n-resize">n-resize</span><br /><span style="cursor:se-resize">se-resize</span><br /><span style="cursor:sw-resize">sw-resize</span><br /><span style="cursor:s-resize">s-resize</span><br /><span style="cursor:w-resize">w-resize</span><br /><span style="cursor:text">text</span><br /><span style="cursor:wait">wait</span><br /><span style="cursor:help">help</span></body>

效果描述:



display:css1



visibility:css2

visible- 默认可见hidden- 元素不可见collapse- 当在表格元素中使用时,此值可删除一行或一列,但是它不会影响表格的布局。被行或列占据的空间会留给其他内容使用。如果此值被用在其他的元素上,会呈现为 "hidden"。

0 0
原创粉丝点击