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

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

<html>
<head><title>CSS – Type selectors</title>
<style type="text/css">
.firstp { text-indent: 2em;margin: 1em; color: red; }
p { margin: 1em; color: blue; }
</style><body>
<h1>Test Page</h1>
<p class="firstp">Thanks for visiting.</p>
<p>Hey there.</p>
</body></html>

用户评论

  • 用户名
  • 评论内容