本文介绍了li:before {content:"■&quot ;; }如何在电子邮件文具中将这个特殊字符编码为bullit?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

,via:

ul{ list-style: none; padding:0;  margin:0;  }
li{ padding-left: 1em; text-indent: -1em;    }
li:before { content: "■"; padding-right:7px; }

...我发现,虽然这些样式表的工作完美下降到圆形边框和其他css3东西,并且电子邮件的收件人(如Eudora OSE 1)正确地呈现所有css样式,就像在浏览器中一样,有一个问题:转换为& #adabacadabra;

... I found that while these stylesheets work perfect down to the rounded borders and other css3 stuff, and while the recipient of the email (like Eudora OSE 1) renders all css styles correctly, just like in a browser, there is one problem: the bullets like or become converted into &#adabacadabra;

如何从这里继续?我非常重视你的想法和脑力,所以:

可以在你的土地上生出最甜的葡萄。 -Sam

How do I proceed from here? I value your idea's and brainwaves greatly, and so:
May fruitfull heavens rain their sweetest grapes on your lands-Sam

推荐答案

从来没有面对过这个问题(没有在电子邮件上工作太多,我避免它像瘟疫),但你可以尝试声明带有unicode代码点的子弹(CSS的不同符号,而不是HTML): content:'\2022'。 (你需要使用十六进制数,而不是8226十进制数)

Never faced this problem before (not worked much on email, I avoid it like the plague) but you could try declaring the bullet with the unicode code point (different notation for CSS than for HTML): content: '\2022'. (you need to use the hex number, not the 8226 decimal one)

然后,如果你使用的东西,拾起这些字符,并将其HTML编码成实体这将不工作的CSS字符串),我想它会忽略这一点。

Then, in case you use something that picks up those characters and HTML-encodes them into entities (which won't work for CSS strings), I guess it will ignore that.

这篇关于li:before {content:"■&quot ;; }如何在电子邮件文具中将这个特殊字符编码为bullit?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-29 14:36