页面文本右上角添加红*(HTML)

时间:2026-02-12 04:27:27

1、直接在文本后面添加红*

2、<h3>销售<span style="color: red;font-weight:bold">*</span></h3>

3、在标签上添加class(调用代码)

例:<h3 class="redStar">销售</h3>

readStar最好改成自己的

4、加上红*主要代码

$(".redStar").each(function() {

var $this  = $(this);

$(this).html($this.html()+"<font color='red'>*</font>");

});

5、上面两种方法的显示效果一样

页面文本右上角添加红*(HTML)

© 2026 五度知识库
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com