如何利用CSS选择器查询和风格化Web元素

开发者在线 Builder.com.cn 更新时间:2007-04-06作者:builder.com.cn 来源:

<html>
<head><title>CSS – Class selectors</title>
<style type="text/css">
.fp { text-indent: 2em;margin: 1em; }
.fpf {color: red; font-face: arial; font-size: 16pt;}
p { margin: 1em; color: blue; }
</style><body>
<h1>Test Page</h1>
<p class="fp fpf">Thanks for visiting.</p>
<p>Hey there.</p>
</body></html>

用户评论

  • 用户名
  • 评论内容