CSS上标注册商标 [英] CSS superscript registration trademark
本文介绍了CSS上标注册商标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我希望网站上的所有®都是上标。我可以用CSS吗?
I would like all "®" on a site to be in superscript. Can I do that with CSS?
推荐答案
我知道你问CSS,但这个jQuery代码为我工作,希望它可以帮助你
I know you asked CSS but this jQuery code worked for me, hope it helps you
<html>
<head>
<script type="text/javascript"
src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js">
</script>
<script type="text/javascript">
$(document).ready(function() {
$("body").html(
$("body").html().replace("®", "<sup>®</sup>")
);
});
</script>
</head>
<body>
Some text here ®
</body>
</html>
这篇关于CSS上标注册商标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文