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>
<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>
相关文章推荐
- asp.net 替换字符串,正则替换字符串,不区分大小写替换字符串,替换html标签,正则匹配
- Asp.net自定义控件开发任我行(2)-TagPrefix标签
- ASP.NET中 HTML标签总结及使用
- asp.net正则表达式提取网页网址、标题、图片实例以及过滤所有HTML标签实例
- asp.net过滤HTML标签的几个函数
- Essential Studio for ASP.NET MVC发布2017 v2,增加日期范围选择器功能
- ASP.NET操作EXCEL时出现的错误 Retrieving the COM class factory for component with CLSID
- ASP.NET Core 中文文档 第四章 MVC(3.6.2 )自定义标签辅助类(Tag Helpers)
- Asp.net设置Meta标签优化好你的页面
- 十天学会ASP.net之第四天
- 如何使div标签变成asp.net控件并在后台控制
- Asp.Net中过滤所有的Html标签
- Html5中新input标签与Asp.net MVC应用程序
- asp.net 正则替换html标签与删除指定字符方法
- ASP.NET:JQuery控制下的标签页效果
- ASP.NET入门(class0612)
- 2强类型DataSet (2011-12-30 23:16:59)转载▼ 标签: 杂谈 分类: Asp.Net练习笔记 http://blog.sina.com.cn/s/blog_9d90c4140101214w.html
- asp.net 过滤图片标签的正则
- 【引用】Caused by: java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit(IILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)-asp.net关注
- ASP.NET中class与struct的区别