开发者

Horizontal nav bar

Trying to do something similar 开发者_如何学Goto MenuItem in ASP, but in HTML instead - how can I do this without tables?


You can use a structure like:

<ul id="menu">
    <li>Menu Item 1</li>
    <li>Menu Item 2</li>
    <li>Menu Item 3</li>
</ul>

And then using CSS you can float the li tags left:

<style>
    #menu li { float: left;}
</style>

View this link for a simple example: http://jsfiddle.net/4Sag4/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜