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

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;
   
border-right: white thin inset;
    border-top: black thin inset;
   
border-left: black thin inset;
    border-bottom: white thin
inset;  
    }
.post1
{
 cursor:move; background:red;
color:Navy; border-right: black thin inset;
}
//元素
body
{
 background-color:Gray:
}
//css样式的运用
<html>
<head
runat="server">
    <title>无标题页</title>
    //引入css样式文件
    <link type ="text/css"
rel = "stylesheet"  href = StyleSheet.css />
</head>
//样式元素的应用,元素名字相同自动套用
<body>
   
<form id="form1" runat="server">
    <div>
        //样式元素ID的应用
        <table id = "tb1"
border = 1; type = "font-size;13pt; align;center;">
           
<tr>
               
//自己使用css样式style=样式
                <td style="width:
134px; height: 19px">dsfdf</td>
            </tr>
       
</table>
    </div>
        <table id = "tb2"
style="width: 1


相关文档:

网站整站页面变灰的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 ......

CSS line height height 属性 ()

定义和用法
line-height 属性设置行间的距离(行高)。
注释:不允许使用负值。
说明
该属性会影响行框的布局。在应用到一个块级元素时,它定义了该元素中基线之间的最小距离而不是最大距离。
line-height 与 font-size 的计算值之差(在 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选择器 ......

DIV+CSS之float

test.html:
<html>
<head>
<link rel="stylesheet" type="text/css" media="screen" href="c.css" mce_href="c.css" />
</head>
<body>
<div id="footer2">
this is a footer2 div
</div>
<p id=&qu ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号