<html> <head> <style type="text/css"> .class>h2{color:red} </style> </head> <body> <div class='class'> <h2>区域标题</h2> <div> <h2>文章标题</h2> </div> <div> <h2>文章标题</h2> </div> </div> </body> </html>
效果: