利用CSS3实现现代头部导航



7 27 10



特效描述:利用CSS3实现 现代 头部导航,利用CSS3实现现代头部导航

代码结构

1. 引入CSS

<link href="css/main.css" rel="stylesheet" type="text/css" />

2. HTML代码

        <div id="header">
            <!-- logo -->
            <a href="#" id="logo"><img src="images/logo.png"></a>
            <!-- extra top links -->
            <div id="links">
                <a href="#">About us</a>
                <a href="#">Help</a>
                <a href="#">Contact Us</a>
            </div>
            <!-- navigation menu -->
            <div id="navmenu">
                <nav id="menu">
                    <ul>
                        <li class="active"><a href="index.php">Home</a>
                            <ul>
                                <li><a href="#"><span class="icon elem1"></span>
								Facebook</a></li>
                                <li><a href="#"><span class="icon elem2"></span>
								Google</a></li>
                                <li><a href="#"><span class="icon elem3"></span>
								RSS</a></li>
                                <li><a href="#"><span class="icon elem4"></span>
								Skype</a></li>
                                <li><a href="#"><span class="icon elem5"></span>
								Stumbleupon</a></li>
                            </ul>
                        </li>
                        <li><a href="#">Faces</a>
                            <ul>
                                <li><a href="#"><span class="icon elem0"></span>
								menu element 1</a></li>
                                <li><a href="#"><span class="icon elem0"></span>
								menu element 2</a></li>
                                <li><a href="#"><span class="icon elem0"></span>
								menu element 3</a></li>
                                <li><a href="#"><span class="icon elem0"></span>
								menu element 4</a></li>
                                <li><a href="#"><span class="icon elem0"></span>
								menu element 5</a></li>
                            </ul>
                        </li>
                        <li><a href="#">Clubs</a>
                            <ul>
                                <li><a href="#"><span class="icon elem0"></span>
								menu element 1</a></li>
                                <li><a href="#"><span class="icon elem0"></span>
								menu element 2</a></li>
                                <li><a href="#"><span class="icon elem0"></span>
								menu element 3</a></li>
                                <li><a href="#"><span class="icon elem0"></span>
								menu element 4</a></li>
                                <li><a href="#"><span class="icon elem0"></span>
								menu element 5</a></li>
                            </ul>
                        </li>
                        <li><a href="#">Photos</a>
                            <ul>
                                <li><a href="#"><span class="icon elem0"></span>
								menu element 1</a></li>
                                <li><a href="#"><span class="icon elem0"></span>
								menu element 2</a></li>
                                <li><a href="#"><span class="icon elem0"></span>
								menu element 3</a></li>
                                <li><a href="#"><span class="icon elem0"></span>
								menu element 4</a></li>
                                <li><a href="#"><span class="icon elem0"></span>
								menu element 5</a></li>
                            </ul>
                        </li>
                        <li><a href="#">Videos</a></li>
                        <li><a href="#">Games</a></li>
                        <li><a href="#">Blog</a>
                            <ul>
                                <li><a href="#"><span class="icon elem0"></span>
								menu element 1</a></li>
                                <li><a href="#"><span class="icon elem0"></span>
								menu element 2</a></li>
                                <li><a href="#"><span class="icon elem0"></span>
								menu element 3</a></li>
                                <li><a href="#"><span class="icon elem0"></span>
								menu element 4</a></li>
                                <li><a href="#"><span class="icon elem0"></span>
								menu element 5</a></li>
                            </ul>
                        </li>
                        <li><a href="#">Classifieds</a></li>
                    </ul>
                </nav>
                <!-- search form -->
                <div id="search">
                    <form role="search" method="get">
                        <input type="text" placeholder="search..." name="s" value="" autocomplete="off" />
                    </form>
                </div>
            </div>
        </div>
<br><br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br><br>
<div style="text-align:center;clear:both">
<font color="#444444"><br>
</font>
</div>



用户评论
大牛,别默默的看了,快登录帮我点评一下吧!:)      登录 | 注册


热门标签: flash导航菜单 flash导航条 flash导航 flash菜单 flash下拉菜单 flash下拉导航菜单 h5动画导航 h5动画菜单 html5动画导航 html5动画菜单 收缩菜单 收缩导航 右键菜单 导航切换 菜单切换 浮动菜单 浮动导航 滑动导航菜单 滑动导航 滑动菜单 滚动导航菜单 滚动菜单 滚动导航 切换按钮 表单 表单美化 表单插件 表单美化插件 导航菜单 导航条 菜单栏 导航栏 分类导航 响应式导航条 响应式导航 下拉列表 下拉菜单 下拉导航 下拉导航菜单 下拉菜单导航 响应式下拉菜单 文本框 text文本框 搜索框

×
×

注册

官方QQ群

扫描上面二维码加微信群

官方QQ群

jQuery/js讨论群
群号:642649996
Css3+Html5讨论群
群号:322131262

加群请备注:从官网了解到