DW后代选择器案例
作者:互联网
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style type="text/css">
p strong{color:red;} /*后代选择器*/
strong{color:blue;}
</style>
</head>
<body>
<p>普通<strong>段落</strong></p>
<strong>指定了,.special类的段落文本(红色)</strong>
</body>
</html>
效果图:
标签:段落,color,后代,无标题,案例,DW,strong,选择器 来源: https://blog.csdn.net/Argonaut_/article/details/121512965