易截截图软件、单文件、免安装、纯绿色、仅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代码

列举一些网站页面变灰的css代码:
首先确保网站有1.0标准声明:
<!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“>
方法如下:
1.html{filte ......

《精通CSS高级WEB标准解决方案》第八章:招数和过滤器

我在www.c09.com 发表了这个笔记并上传了原著的PDF,今天有空,转到BLOG上来。
招数和过滤器
IE的有条件注释:仅用这一项,就可以解决IE的兼容问题,至于其它浏览器的不同版本,我们完全可以忽略不计。[code]
/*有条件注释仅在IE中支持且IE5以后的所有版本均支持*/
<!--[if IE]
<style type='text/css'>
@im ......

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的一些小技巧1】右对齐的日期。


如图,做网站时经常遇到的情况,将项目名和发布时间左右分开。
方法1:
思路是直接将时间放到一个行内元素里,然后将这个元素右浮动。
   如:<li><span>(2009-01-01)</span>[媒体播放] KMPlayer
2.9.3.1428 中文正式版 </li>
只要将 li span{float:right;},然后 li{width:200 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号