css怎么做某个字高亮
1、新建html文件在本地IIS目录下,使用记事本新建一个html文件,命名为css高亮特效.html。如图:

3、插入文字内容在<body>标签中写入三段文字,用来对比高亮特效:<p id="p1">This paragragh doesn't use ::selection</p> <p id="p2">This paragragh uses ::selection,highlight color is yellow.</p> <p id="p3">This paragragh uses ::selection,highlight color is blue.</p>如图:

5、浏览特效使用浏览器打开文件,按ctrl+a全选页面,查看效果。如图:

7、对比特效打开网页文件,这次不要使用全选功能,查看高亮特效。如图:
