六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 15|回复: 0

CSS文集《The CSS Anthology》 第二章 文本格式化及其它基础知识 (2)

[复制链接]

升级  29.33%

26

主题

26

主题

26

主题

秀才

Rank: 2

积分
94
 楼主| 发表于 2013-2-7 16:42:04 | 显示全部楼层 |阅读模式
11. 为段落文本加高亮
<div><h1 class="pg39">Chinese-style Stuffed Peppers</h1>Below, I've created a CSS rule for all te level-one headings in a document. The result is shown in Figure 2.11.hello, world......</div><div class="pg39"><h1 class="pg39">Chinese-style Stuffed Peppers</h1><p>These <span class="pg39_highlight">stuffed peppers</span> are lovely as a starter, or as a side sish for a Chinese meal. They also go down well as part of a buffet, and even children seem to like them.</p></div>
/* 设置文本高亮 */.pg39_highlight {background-color : #FFFFCC;color : #B22222;}

<div style="text-align: center;">
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表