2013-08-17 43 views

回答

0

就是這樣,哥們:DEMO

截圖:

enter image description here

CSS:

li{ 
    list-style:none; 
    display:inline-block; 
    background-color:lightGrey; 
    padding:5px; 
    width:100px; 
    display:table-cell; 
} 
ul{ 
    padding:0px; 
    display:table-row; 
} 

HTML:

<ul> 
    <li> 
     Link 1 
    </li> 
    <li> 
     Link 2 
    </li> 
    <li> 
     Longest Largest Biggest and the Baddest Link 
    </li> 
    <li> 
     Link 3 
    </li> 
    </ul>