Anchor tag becomes non-working link in a div with float: right;

后端 未结 7 2236
迷失自我
迷失自我 2020-12-25 14:58

I have a link inside a div that floats to the right of the screen. The link does not work in FF or Chrome, but works in IE (have only tested with IE8).

The simplest

7条回答
  •  梦谈多话
    2020-12-25 15:23

    Try this

    HTML

    
        
        
        
            
    ​ ​​​​​​​​​​​​​​​​​​​​​​​

    css

    .clear{
        clear:both;
    }
    #logo {
        float:left;
        margin:10px;
    } 
    
    #feedback {
        float: right;
    }
    
    ul#menu
    {
    }
    ul#menu li
    {
        float:left;
    }
    ul#menu li a{
        display:block;
    }
    ul#menu li.last {
        margin-right: 50px;
    }
    ​
    

    working demo

    • http://jsfiddle.net/C9r7f/

提交回复
热议问题