css总结

1.html标记
body {
    margin
: 0px;
}
应用:
<html><body><form><div></div></form></body></html>
2.class
.Search {
width
:100%;
margin
:0px;
padding
:1px;
font-family
:Arial, Helvetica, sans-serif;
text-align
:center;
}
应用:
<div class="Search">    
    
<table width="100%" border="0" cellspacing="0" cellpadding="0">
      
<tr>
        
<th width="80" nowrap><img src="http://www.cnblogs.com/images/list_10.gif" width="24" height="24" align="absmiddle" /><%=GetResourceString("M_SSF_Search_Tag")%> :</th>
        
<th width="200"><asp:TextBox ID="txtQueryText" runat="server" Width="200px" /></th>
        
<th align="left"><asp:ImageButton ID="btnSearch" runat="server" OnClick="btnSearch_Click" /></th>
      
</tr>
    
</table> 
</div>
3.id
#mainCanvas {
    margin
: 0 auto;
    padding
: 0;
    text-align
: left;
    width
:964px;
}
应用:
 <div id="mainCanvas">
        
<div id="dBW" class="dialogBoxWrapper" onmousemove="myMouseMove()" onmouseup="myMouseUp()">
        
</div>
        
<div id="dBW2" class="dialogBoxWrapper" onmousemove="myMouseMove()" onmouseup="myMouseUp()">
        
</div>
        
<div id="dBW3" class="dialogBoxWrapper" onmousemove="myMouseMove()" onmouseup="myMouseUp()">
        
</div>
</div>
4.合并(以逗号分割,标识逗号分割的拥有相同的属性)
body, form, ul, h1, h2, h3, h4, div, h5, h6, p, a, td, button, select {
    font-family
: 宋体, tahoma, verdana, arial;
    margin
: 0;
    padding
: 0;
    z-index
: 1;
}
应用:
<html><body><form><div></div></form></body></html>
5.层级(以空格隔开,标识某和层级下的某某)
.Search th input[type="text"]{
margin
:0px;
padding
:2px;
background-color
:#ffffff;
color
: #0033CC;
text-align
:left;
border
:1px solid #0099CC;
width
:98%;
}
应用:
<div class="Search">
    
<form id="form1" runat="server">    
    
<table width="100%" border="0" cellspacing="0" cellpadding="0">
      
<tr>
        
<th width="80" nowrap><img src="http://www.cnblogs.com/images/list_10.gif" width="24" height="24" align="absmiddle" /><%=GetResourceString("M_SSF_Search_Tag")%> :</th>
        
<th width="200"><asp:TextBox ID="txtQueryText" runat="server" Width="200px" /></th>
        
<th align="left"><asp:ImageButton ID="btnSearch" runat="server" OnClick="btnSearch_Click" /></th>
      
</tr>
    
</table> 
</form>
</div>

转载于:https://www.cnblogs.com/Elong/archive/2008/07/11/1240818.html

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符  | 博主筛选后可见
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值