校内涂鸦板伪装星级用户和紫豆的CSS修改方法

校内上面,无聊,伪装了一个星级用户。以前提供的代码只能够在自己的页面显示出自己是星级的。现在的代码换了个容器来显示星星和紫豆。不过,这段代码使用了负边距,可能在IE6下面显示不正常。那个就不在我的考虑范围内了。

只需要在涂鸦板里面加上后文的极端代码就可以了。没有星星的或者想装有钱的,可以试试这些代码。

  1. .profile-tabs-holder .count { 
  2. background:transparent url(http://xnimg.cn/imgpro/icons/star.gif) no-repeat scroll left center
  3. font-size:12px
  4. margin:0 2px
  5. padding-left:38px
  6. .profile-tabs-holder .count .count { 
  7. background:transparent url(http://xnimg.cn/imgpro/icons/vip_l.gif) no-repeat scroll 0 0
  8. margin-left:-35px !important
  9. padding-left:35px
  10. text-indent:35px;
  11. .profile-tabs-holder img { 
  12. display:none
  13. }

PS:12月28日修正了一下,针对IE7,效果修改了一下,把padding-left换成了text-indent,因为IE7好像background是从padding里面开始算的。不过IE6的负边距问题还是没有想到解决方法。不知有没有高手指导。


更多



发表评论

电子邮件地址不会被公开。 必填项已用 * 标注

*

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>