• 2018.3.30 边框应用与导航栏设置


    <!DOCTYPE html>
    <html>
        <head>
            <meta charset="utf-8" />
            <title></title>
            <style type="text/css">
                /*制作三角形*/
                #one{
                     0px;
                    height: 0px;
                    border-top: 100px solid blue;
                    border-left: 100px solid transparent;
                    border-right: 100px solid transparent;
                }
                /*制作箭头*/
                #two{
                     100px;
                    height:100px;
                    border-bottom: 10px solid blueviolet;
                    border-left: 10px solid blueviolet;
                    /*rotate:旋转*/
                    transform:rotate(45deg);
                }
                /*制作可变化的导航栏*/
                #three{
                     800px;
                    height: 50px;
                    border: 5px solid #e9e9e9;
                }
                #three li{
                     140px;
                    height: 50px;
                    font-family: "微软雅黑";
                    float: left;
                    line-height: 50px;
                    margin-top: -17px;
                }
                /*当鼠标放上后发生的改变*/
                li:hover{
                     140px;
                    height: 48px;
                    color: white;
                    background-color: #b3b6bb;
                    border-top: 1px solid #F39;
                    line-height: 50px;
                    margin-top:-16px;    
                }
                /*排列去掉排头序号*/
                ul{
                    list-style: none;
                }
            </style>
        </head>
        <body>
            <center>
                <h3>第一题</h3>
                <div id="one"></div>
            </center>
            <br />
            <br />
            <br />
            <center>
                <h3>第二题</h3>
                <br />
                <div id="two"></div>
            </center>
            <center>
            <br />
            <br />
            <br />
                <h3>第三题</h3>
                <br />
                <div id="three">
                    <ul>
                        <li>春节</li>
                        <li>元宵节</li>
                        <li>端午节</li>
                        <li>中秋节</li>
                        <li>国庆节</li>
                    </ul>
                </div>
            </center>
            <br />
            <br />
            <br />
        </body>
    </html>

  • 相关阅读:
    H264源码分析(四)
    矩阵在编程中的一个小应用
    android listview 三种适配器设置
    Android SoundPool 的使用以及原理分析
    poj 2728 Desert King(最优比例生成树)
    MySQL 查询结果以百分比显示
    Android Application
    飘逸的python
    CSS教程:div垂直居中的N种方法[转]
    HQL: Hibernate查询语言
  • 原文地址:https://www.cnblogs.com/0328dongbin/p/8678804.html
Copyright © 2020-2023  润新知