X_Del
V2EX  ›  V2EX

关于V2ex的Logo,崩溃了

  •  
  •   X_Del · Aug 15, 2011 · 5421 views
    This topic created in 5459 days ago, the information mentioned may be changed or developed.
    本来想给V2ex写个皮,发现必须干掉V2ex的Logo,结果在css里怎么该都干不掉,设display:none;也不行。最后发现v2ex原来在html里就定义了Logo,请 @Livid 赶紧去掉在html里的style定义,V2ex的logo有那么重要吗?
    8 replies    1970-01-01 08:00:00 +08:00
    wctbok
        1
    wctbok  
       Aug 15, 2011
    xxx{display:none !important;}
    X_Del
        2
    X_Del  
    OP
       Aug 15, 2011
    功夫不到家,没看懂,好像是定义优先级的吧?
    romoo
        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">
    smallcolor
        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;}
    terrylin
        5
    terrylin  
       Aug 15, 2011
    @smallcolor #TopMain img{display:none!important;}
    这样子 小鸟也莫有了...
    romoo
        6
    romoo  
       Aug 15, 2011
    @terrylin #TopMain>a>img{display:none!important;}
    X_Del
        7
    X_Del  
    OP
       Aug 15, 2011
    @wctbok @romoo @smallcolor @terrylin 谢谢大家,原来就是用!important提高优先级呀!
    fanzeyi
        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
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2873 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 07:48 · PVG 15:48 · LAX 00:48 · JFK 03:48
    ♥ Do have faith in what you're doing.