您的位置:首页 > 编程语言 > ASP

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

2013-11-22 08:50 405 查看
<!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>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: