asp.net 第四天 标签+class选择器

来源:互联网 发布:知乎 保险 编辑:程序博客网 时间:2024/05/21 07:04
<!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>
    <title></title>
    <style type="text/css">
        .warning{background:yellow;}
        .highlight{font-size:xx-large;cursor:help;}
        
        input.accountno{background:right;color:Red;}
        label.accountno{font-style:italic;}
        #username
        {
            font-size:xx-large;
        }
        
        
        
        P strong{background-color:Yellow}
        
        H1,H2,input{background-color:Green}
        
        
    
    </style>
</head>
<body>
<!---class选择器--->
<div class="highlight" >你哈</div>
<div  class="highlight warning">海报</div>
<div class="warning">黑河</div>


-----------------------------------------------------


<!---标签+class选择器--->
<input class="accountno" type="text" value="11111111" />
<label class="accountno" >33333333333333</label>
-------------------------------------------------------
<!---id选择器--->
<input id="username" type="text" value="aaaaaa" />




-----------------------------------------------------
<!---关联选择器---->
<br />
<strong>asdfasdfasdfasdf</strong>
<p><strong>dfsfsdfsd</strong></p>




-----------------------------------------------------


<!---组合选择器--->


<h1>好吗</h1>
<input type="text" value="text" />




<!---伪选择器-->






</body>
</html>
原创粉丝点击