实例代码:
<doctype html>
<html>
<head>
<meta charset="utf8">
<style>
a[title][href]{
color:red;
}
</style>
</head>
<body>
<h1>可以应用的样式</h1>
<a title="dwoke home " href="https://dwoke.com">dwoke</a>
<hr />
<h1>无法应用的样式</h1>
<a href="https://dwoke.com">dwoke</a>
</body>
</html>
运行效果:
评论