[转][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; width: 20px;height:5px; background: red;line-height: 0;font-size:0;vertical-align: middle;-webkit-transform: rotate(45deg);}
code:after{content:'/';display:block;width: 20px;height:5px; background: red;-webkit-transform: rotate(-90deg);}

 

posted on 2018-01-23 17:39  z5337  阅读(116)  评论(0)    收藏  举报