[转][html][jquery]

<!-- 强行修改 CSS -->
$('a').css("cssText","background:#fff !important;color:#2d6dcc !important;")
<!-- 常用的背景图居中 -->
$('b').css({"background":"url(pic.png) no-repeat center center"})

<!-- CSS 划 X 符号 -->
code{ display: inline-block;  20px;height:5px; background: red;line-height: 0;font-size:0;vertical-align: middle;-webkit-transform: rotate(45deg);}
code:after{content:'/';display:block; 20px;height:5px; background: red;-webkit-transform: rotate(-90deg);}
原文地址:https://www.cnblogs.com/z5337/p/8337024.html