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

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
阅读量:45
阅读量:25
阅读量:30
阅读量:43
阅读量:91