热门关键字:
jquery > jquery教程 > jquery教程 > (8) 属性选择器

(8) 属性选择器

678
作者:管理员
发布时间:2020/8/13 12:27:33
评论数:0
转载请自觉注明原文:http://www.jq-school.com/Show.aspx?id=2376

1. E1[attr]

2. E1[attr=value]

3. E1[attr~=value]

4. E1[attr|=value]

<!DOCTYPE html>

<html>

<head>

<meta charset="UTF-8">

<title></title>

<style type="text/css">

input{

width: 80px;

height: 40px;

border: solid 1px red;

}

input[type="submit"]{

color: blue;

}

input[name="button"]{

color: red;

}

</style>

</head>

<body>

<form action="1.demo.html" method="post">

<input type="button" name="button" id="" value="普通按钮" />

<input type="submit" name="" id="" value="普通按钮" />

<input type="reset" name="button" id="" value="普通按钮" />

</form>

</body>

</html>

Css有哪些用法?小白轻松入门




如果您觉得本文的内容对您的学习有所帮助:支付鼓励



关键字:jquery
友荐云推荐