本来想给V2ex写个皮,发现必须干掉V2ex的Logo,结果在css里怎么该都干不掉,设display:none;也不行。最后发现v2ex原来在html里就定义了Logo,请 @Livid 赶紧去掉在html里的style定义,V2ex的logo有那么重要吗?
1
wctbok Aug 15, 2011
xxx{display:none !important;}
|
2
X_Del OP 功夫不到家,没看懂,好像是定义优先级的吧?
|
3
romoo Aug 15, 2011
</style>
<script type="text/javascript"> $("#TopMain>a>img").attr("src","http://bbs.blueidea.com/images/default/logo.gif"); </script> <style type="text/css"> |
4
smallcolor Aug 15, 2011
貌似我的代码量已经超标了。
#TopMain img{display:none!important;} #TopMain>:first-child{display:block; width:98px; height:32px; float:left; background:url(http://nanrendang.com/projects/v2ex/logo.png) no-repeat 0 0; margin-top:12px;} |
5
terrylin Aug 15, 2011
@smallcolor #TopMain img{display:none!important;}
这样子 小鸟也莫有了... |
7
X_Del OP |
8
fanzeyi Nov 6, 2011
#Top a[href="/"] img {
background-image: url('http://www.v2ex.com/static/img/logo.png'); padding-top:20px; height: 0px; width: 70px; } XD 直接换成白色版LOGO |