客户只要求他的站点的 /
是红色的......在整个站点中!
我必须在每个/周围添加 span,还是有更简单的方法?
最佳答案
希望此示例对您有所帮助。我在SO中找到了它。您可以将 ®
替换为斜杠 /
$(document).ready(function() {
$('*').each(function() {
var n = $(this).html().replace(
new RegExp('®','g'),
'<sup>®</sup>'
).replace(
new RegExp('®','g'),
'<sup>®</sup>'
);
$(this).html(n);
});
});
关于html - 使单个字符的 css 样式站点变宽?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13028971/