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

时间:2024-10-12 04:50:39

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)
© 手抄报圈