css文本显示
CSS-Tricks.com's Chris Coyier authored a really cool post titled . In the post, Chris explained:
CSS-Tricks.com的Chris Coyier撰写了一篇非常酷的文章,标题为“ 。 克里斯在帖子中解释说:
One of those cool CSS3 declarations that you can use today is
::selection
, which overrides your browser-level or system-level text highlight color with a color of your choosing. At the time of this writing, only Safari and Firefox are supporting this, and both in slightly different ways. Fortunately, this can be thought of as one of those "forward-enhancement" techniques. It's a nice touch for those using modern browsers, but it just gets ignored in other browsers and it's not a big deal.您今天可以使用的很酷CSS3声明之一是
::selection
,它使用您选择的颜色覆盖浏览器级别或系统级别的文本突出显示颜色。 在撰写本文时,只有Safari和Firefox支持此功能,并且两者的支持方式略有不同。 幸运的是,这可以被认为是这些“前向增强”技术之一。 对于使用现代浏览器的用户来说,这是一个很好的选择,但是在其他浏览器中它只会被忽略,这没什么大不了的。
You can view his example .
您可以查看他的示例。
Even cooler is that CSS-Tricks reader Erik Kastner coded a beautiful hidden logo at his blog.
更酷的是CSS-Tricks读者Erik Kastner在他的博客上编码了一个漂亮的隐藏徽标。
Take some time to visit and Meta-Atem.
花一些时间访问和Meta-Atem。
翻译自:
css文本显示