java visibility_CSS visibility属性

本章要点:这个属性经常用,但是我们要找出他的特点:visibility 属性设置为 invisible 时,会占页面空间但是 display 属性不会占据空间。

转自: http://www.w3pop.com/learn/view/doc/pr_class_visibility/

The visibility property sets if an element should be visible or invisible.

visibility属性可设置元素为可见还是不可见

Note: Invisible elements takes up space on the page. Use the "display" property to create invisible elements that do not take up space.

注意:不可见的元素会占据页面的空间。可以使用"display"属性来让不可见的元素同时不占据页面的空间

Note: This property is used with scripts to create Dynamic HTML.

注意:这个属性经常在建立动态HTML的时候用到

Inherited: No

继承性:无

Example举例

p

{

visibility: visible

}

Possible Values

可能用到的值

Value

描述

visible

The element is visible

元素可见

hidden

The element is invisible

元素不可见

collapse

When used in table elements, this value removes a row or column, but it does not affect the table layout. The space taken up by the row or column will be available for other content. If this value is used on other elements, it renders as "hidden"

当在表格元素中使用的时候,这个值可以移除一行或是一列,但它不会影响到表格的布局。被行或列所占据的空间对其他内容来说依然是有效的。如果这个值用到别的元素上它所反馈的效果就跟"hidden"一样。

posted on 2008-12-14 20:59 CopyHoo 阅读(292) 评论(0)  编辑  收藏 所属分类: Java Web

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值