CSS中的文本选择? [英] text-selection in CSS?

查看:133
本文介绍了CSS中的文本选择?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试更改HTML页面上的文本选择。我想改变所选文本的css中的十六进制值,每当我从para选择一些文本。我怎么能在CSS中这样做?

I'm trying to change text-selection on my HTML page. I want to change the hex value in css for the selected text whenever i select some text from para. How can i do that in CSS ?

例如,如下图所示,它将颜色改为青色。

For example as shown in this image below it is changing color to cyan.

有可能吗?如果那么如何? CSS中的任何字段?

Is it possible to do ? if So How ? any field in CSS ?

推荐答案

作为补充Reinies写的和未来的问题:你可以得到FireBug和右键单击并选择检查元素。这将为您提供所需的确切代码。

As a supplement to what Reinies wrote and for future issues: You could get FireBug and right-click on the element and select "Inspect Element". That will provide you with the exact code you need.

这篇关于CSS中的文本选择?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆