易截截图软件、单文件、免安装、纯绿色、仅160KB

css中 display属性和visibility的区别

display Property Values
ValueDescription
none
The element will generate no box at all
block
The element will generate a block box (a line break before and after the element)
inline
The element will generate an inline box (no line break before or after the element). This is default
inline-block
The element will generate a block box, laid out as an inline box
inline-table
The element will generate an inline box (like <table>, with no line break before or after)
list-item
The element will generate a block box, and an inline box for the list marker
run-in
The element will generate a block or inline box, depending on context
table
The element will behave like a table (like <table>, with a line break before and after)
table-caption
The element will behave like a table caption (like <caption>)
table-cell
The element will behave like a table cell
table-column
The element will behave like a table column
table-column-group
The element will behave like a table column group (like <colgroup>)
table-footer-group
The element will behave like a table footer row group
table-header-group
The element will behave like a table header row group
table-row
The element will behave like a table row
table-row-group
The element will behave like a table row group
inherit
Specifies that the value of the display property should be inherited from the parent element
visibility Property Values
ValueDescription
visible
The element is visible. This is default
hidden
The element is invisible (but still takes up space)
collapse
Only for table elements. collapse 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 collapse is used on other elements, it renders as "hidden"
inherit
Specifies that the value of the visibility property should be inherited from the parent element
We can know from above:
visibility: hidden hides the element, but it


相关文档:

《精通CSS高级WEB标准解决方案》第九章、bug和bug修复

我在www.c09.com 发表了这个笔记并上传了原著的PDF,今天有空,转到BLOG上来。
第九章、bug和bug修复
9.1 常见CSS问题[code]
/*以下代码视图让所有.intro的段落显示橙色的背景*/
#content p{
    background-color:transparent;
}
.intro{
    background-color:#FEECA9;
}
/*以上代码失败的 ......

Web标准 css简写规则

1. css 字体简写规则
当使用css定义字体时你可能会这样做:
font-size: 1em;
line-height: 1.5em;
font-weight: bold;
font-style: italic;
font-variant: small-caps;
font-family: verdana,serif;
事实上你可以简写这些属性:
font: 1em/1.5em bold italic small-caps verdana,serif
font: bold ital ......

css float问题

     最近作规范,得到公司高手的赐教,在制作静态页面中,经常遇到几个div的浮动问题,因为IE不同版本处理浮动会现两倍差距的问题(IE6,IE7),以前都是通过hack技术处理,(如 margin-left:10px,[*margin-left:5px;],_margin-left:5px;这是IE的问题),现在有一个方法:在第一个div的class加上(disp ......

你现在的CSS水平处于什么等级?

CSS(层叠样式表),可能看过网站制作教程网基础教程的人都知道大概是什么回事.本文来测一下,你学习CSS现在处于怎么一个阶段或者说处在一个什么等级.
       本文总共将CSS学习者从低到高分为六个等级.快来看看你是在哪个等级.
  第0级:CSS?什么CSS,是不是CS啊.那游戏我玩过呀.是个多人游 ......

css伪类hover ie6bug,揭开IE6下hover不显示原因

:hover是我们在CSS设计中最常运用的伪类之一,许多绚丽效果的实现离不开伪类:hover,比如我们常见的纯CSS菜单、相册效果等等。
或许用了这么久的伪类:hover,还有部分朋友还不完全了解hover的规则:
在CSS1中此伪类仅可用于a对象。且对于无href属性(特性)的a对象,此伪类不发生作用。
在CSS2中此伪类可以应用于任何对� ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号