易截截图软件、单文件、免安装、纯绿色、仅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 line height height 属性 ()

定义和用法
line-height 属性设置行间的距离(行高)。
注释:不允许使用负值。
说明
该属性会影响行框的布局。在应用到一个块级元素时,它定义了该元素中基线之间的最小距离而不是最大距离。
line-height 与 font-size 的计算值之差(在 CSS 中成为“行间距”)分为两半,分别加到一个文本行内容的顶部和底 ......

纯CSS实现的背景渐变条特效代码

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>CSS渐变条</ ......

CSS嵌套选择器优先级计算

一组嵌套选择器的实际特性可以计算出来。基本的,使用ID选择器的值是100,使用class选择器的值是10,每个html选择器的值是1。
它们加起来就可以计算出特性的值。
p的特性是1(一个html选择器)
div p的特性是2(两个html选择器)
.tree的特性是10(1个class选择器)
div p.tree的特性是1+1+10=12,(两个html选择器 ......

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

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

css样式引用实例

//css样式的书写
//元素ID
#tb1{width:100%;height:80px;background-color:#FFD700;padding:4px;font-family:verdana,tahoma;font-weight:bold;}
#tb2{width:100%;padding:4px;font-family:verdana,tahoma;margin:12px
0px 0px 0px;background-color:#EEEEEE;font-weight:bold;}
//类
.test{cursor:hand;
 &nb ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号