实例代码:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/html1-transitional.dtd">
<html>
<head>
<meta charset="utf-8">
<style type="text/css">
[href]{color:red;}
</style>
</head>
<body>
<h1>可以应用的样式</h1>
<a href="https://www.dwoke.com">你行网</a>
<hr />
<h1>无法应用的样式</h1>
<a name="dwoke">你行网</a>
</body>
</html>
运行效果:
评论