font-weight样式导致strong标签失效

 

 因为项目中有一个font-weight:400,让font-weight:bold失效了。
解决方案:
在common.css里加上  font-weight: revert!important; //意思就是font-weight还原
a, abbr, acronym, address, applet, article, aside, audio, b, big, blockquote, body, canvas, caption, center, cite, code, dd, del, details, dfn, div, dl, dt, em, embed, fieldset, figcaption, figure, footer, form, h1, h2, h3, h4, h5, h6, header, html, i, iframe, img, input, ins, kbd, label, legend, li, mark, menu, nav, object, ol, output, p, pre, q, ruby, s, samp, section, small, span, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, time, tr, tt, u, ul, var, video{
  font-weight: revert!important;
}
 


其实就是把font-weight的属性都去掉了

 

おすすめ

転載: blog.csdn.net/weixin_43075758/article/details/119778878