欢迎来到亿搜云建站平台,全网营销云系统加盟中心!

海量企业网站模板 · 任您选择

美出特色,精出品质,一切为了企业更好的营销

隐藏侧栏
Beta
转载

纯CSS3水平动态导航菜单

       导航     2016-02-16     eycms     44     0    

<!DOCTYPE html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>纯CSS3的水平动态导航菜单</title>


 <style type="text/css">

            body {

                padding: 0;

                margin: 0;

                background: #D3D4C0;

                font-size: 14px;

                font-family: Arial, sans-serif;

                text-align: center;

            }

            img{border:none}

            

            

            #wrap {

                width: 970px;

                margin-left: auto;

                margin-right: auto;

            }

            

            

            

            

            /* Menu Start Here */

            

            #menu li {

                display: inline;

                list-style: none;

                padding: 0;

            }

            

            #menu li a {

                

                border: 1px solid white;

                padding: 15px 20px 15px 20px;

                text-decoration: none;

                color:black;

                margin-left: -5px;

                /* This is the background used for the animation */

                background-image: url('image.jpg');

                /* Align the image position to the left of the a */

                background-position: left;

                -webkit-transition: all 0.8s ease-in-out;

                /* Animation with transition in Firefox (No supported Yet) */

                -moz-transition: all 0.8s ease-in-out;

                /* Animation with transition in Opera (No supported Yet)*/

                -o-transition: all 0.8s ease-in-out;

            }

            

            #menu li a:hover {

                color: white;

                /* Align the image position of the background to the right*/

                background-position:right;

            }

            

        </style>

    </head>

    <body>

        <div id="wrap">

            

            

            

            

            <h1>CSS Menu Demo </h1>

            <ul id="menu">

                <li> <a href="#">Home</a> </li>

                <li> <a href="#">Products</a> </li>

                <li> <a href="#">Services</a> </li>

                <li> <a href="">About</a> </li>

                <li> <a href="#">Contact</a> </li>

            </ul>

            

            

        </div><br />

<div style="text-align:center;clear:both">

<p>适用浏览器:FireFox、Chrome、Safari、Opera、傲游、搜狗. 不支持IE8、360。</p>


</div>

</body>

</html></td>

 </tr>

</table>


--结束END--

本文链接: http://eycms.cn/resources/navigation/1101.html (转载时请注明来源链接)

 
本文标签: 全部

下班PC阅读不方便?

手机也可以随时学习开发

微信关注公众号“亿搜云”
"亿搜云平台前端开发教学"
每日干货技术分享
 

×

成为 亿搜云平台 代理商!

关注

微信
关注

微信扫一扫
获取最新优惠信息

亿搜云平台公众号

客服

联系
客服

很高兴为您服务
尊敬的用户,欢迎您咨询,我们为新用户准备了优惠好礼。 咨询客服

联系客服:

在线QQ: 40819446

客服电话: 15250286283

售前咨询 售后服务
在线交谈 智能小云

工作时间:

周一至周五: 09:00 - 17:00

WAP

手机
访问

移动端访问
手机上也能选模板

亿搜云平台手机端