<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<h3 title="a" id="title">1</h3>
<h3>2</h3>
<h3>3</h3>
<h3 title="ddsffd">4</h3>
<h3 title="abfsffd">5</h3>
<script src="lib/jquery-2.2.2.js"></script>
<script>
$('h3[title]').css('color','red');//含有title属性
$('h3[title=d]').css('color','blue');//title属性的值为d
$('h3[title^=a]').css('color','yellow')//title属性值以a开头
$('h3[title][id]').css('background','#ddd');//同时含有title属性和id属性
</script>
</body>
</html>