页面仔玩样式

demo地址:http://codepen.io/tianzi77/pen/pJYQLw

结构html:

    <!--做一名合格的页面仔-->
    <div id="nav">
        <ul>
            <li>hl</li>
            <li>hl</li>
            <li>hl</li>
            <li>hl</li>
            <li>hl</li>
            <li>hl</li>
            <li>hl</li>
            <li>hl</li>
            <li>hl</li>
            <li>hl</li>
            <li>hl</li>
        </ul>
    </div>
    <!--应该从规范代码开始-->

样式:

        *{
            padding: 0;
            margin: 0;
        }
        body{
            font-family:sans-serif;
        }
        div#nav ul{
            width: 852.7px;
            line-height: 40px;
            height: 40px;
            margin: 100px auto;
        }
        div#nav ul li{
            float: left;
            list-style: none;
            width: 75.7px;
            height: 40px;
            background: yellow;
            border-right: 2px dotted lightpink;
            text-align: center;
            cursor: pointer;
            color: #abcdef;
            border-radius: 10px;
            transition: all .8s linear;
            font: 20px;
            transform: rotate(-30deg);
        }
        div#nav ul li:last-child{
            border-right: none;
        }
        div#nav ul li:nth-child(6){
            transform: rotate(0deg);
            background: -webkit-linear-gradient(left top,red,yellow);
        }
        div#nav ul li:nth-child(1),div#nav ul li:nth-child(2),div#nav ul li:nth-child(3),div#nav ul li:nth-child(4),div#nav ul li:nth-child(5){
            background:red;
            color: black;
        }
        div#nav ul li:hover{
            background: #abcdef;
            color: #fff;
            transform: rotate(360deg) scale(1.4);
            border-radius: 50%;
            font-size: 40px;
        }
            div#nav ul li:nth-child(6):hover{
            transform: rotate(3600deg);
        }

ps:好想睡觉

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值