您的位置:首页 > Web前端 > CSS

<css 十六>分类属性

2016-04-15 16:59 429 查看

float/clear:css1

none-默认
left
right
both-左右两侧不允许浮动

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"。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: