sIFR 选定的文本背景

发布于 2024-08-26 03:21:58 字数 171 浏览 2 评论 0原文

在我看来,sIFRed 文本在选择时总是有黑色背景。我的网站设计是深色的(大部分是黑色)。因此,当使用 select sIFRed 文本时,它看起来就像没有发生任何事情,它被选中,但没有人可以看到,因为站点和所选文本背景都是黑色的。正常文本具有白色或某种深绿色,具体取决于字体颜色。

如何更改选定文本背景的颜色?

It seems to me that sIFRed text when selected allways have black background. My site design is dark (mostly black). So when use select sIFRed text it looks like nothing happens, it is selected but no one can see that cause both site and selected text background are black. Normal text have white or some kind of dark-green color depending on font color.

How to change color of selected text background?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

安静 2024-09-02 03:21:58

http://yourpalmark.com/2007/08 /13/changing-selection-color-on-dynamic-textfields/

使用它并再次编译您的字体 .swf。但我会使用 cufon,sifr 太慢了!

http://yourpalmark.com/2007/08/13/changing-selection-color-on-dynamic-textfields/

use this and compile your font .swf again. but i would use cufon, sifr is too laggy!

莫相离 2024-09-02 03:21:58

这么多年过去了,事情已经发生了变化。现在最好的方法是省略 sIFR、cufon 等,只使用 CSS @font-face。最好有后备,例如:

@font-face {
    font-family: 'font-name';
    src: url('fonts/font-name.eot');
    src: url('fonts/font-name.eot?#iefix') format('embedded-opentype'),
         url('fonts/font-name.woff2') format('woff2'),
         url('fonts/font-name.woff') format('woff'),
         url('fonts/font-name.ttf') format('truetype'),
         url('fonts/font-name.svg#fontname') format('svg');
    font-weight: normal;
    font-style: normal;
}

始终可以(并且可能将来)在 http://www 找到有关该内容的新鲜事物.fontsquirrel.com/

After all those years things has changed. Best way to do it now is to omit sIFR, cufon and others and use just CSS @font-face. Best with fallbacks e.g.:

@font-face {
    font-family: 'font-name';
    src: url('fonts/font-name.eot');
    src: url('fonts/font-name.eot?#iefix') format('embedded-opentype'),
         url('fonts/font-name.woff2') format('woff2'),
         url('fonts/font-name.woff') format('woff'),
         url('fonts/font-name.ttf') format('truetype'),
         url('fonts/font-name.svg#fontname') format('svg');
    font-weight: normal;
    font-style: normal;
}

Always fresh things about that can be (and probably will be in a future) found at http://www.fontsquirrel.com/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文