ok,现在我承认我一米。
What I want to achieve:
there should be a plus sign before utility links that are used to add some elements in our web application.
It would be good if this sign scales according to the font size the user has set.
我尝试的是:
<style type="text/css">
a.addLink:before {
content: url( images/add.png ); height: 1.2em;
}
</style>
<a class="addLink" href="#" onclick="freakyJSFunction">testlink</a>
sadly, the height attribute is ignored.
I know i could just insert a normal <img../>
before every link, but that s not as maintainable as we want it to be.
或者,我可以使用一流密码特征,例如
content: "271a"; font-size:1.4em; color:green;
现在,我赞成统一编码概念(IE8.nope, IE 8 don t show that nature (“greek cross”).-(.ok.),如果我找到在IE8、FF和可能 c子中展示的合适char子,我将接受统一编码的想法。
我仍然想知道,我最初的想法是否有些是可行的。