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