【web】html+css综合应用

1.完成学校官方网站页面制作

yau.html

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>延安大学教学管理信息服务平台</title>
    <link rel="stylesheet" href="css/yau.css">
</head>

<body>
    <div class="box">
        <div class="box-ele"></div>
        
        <div class="box-ele">

            <div class="div-img1">
                <img class="img2"
                    src="http://jwglxt.yau.edu.cn/jwglxt/xtgl/dlycssz_cxDlycsszZp.html?zplx=1&t=1711267990936"
                    alt="延大校徽">
                延安大学教学管理信息服务平台
            </div>

            <div class="div-main">
                <img class="img1"
                    src="http://jwglxt.yau.edu.cn/jwglxt/xtgl/dlycssz_cxDlycsszZp.html?zplx=3&t=1711267990936"
                    alt="延大校园">
                <div class="div1">
                    <h3>用户登录</h3>
                    <form action="">
                        <div>
                            <p class="p-center">
                                <!-- <div class="div-use"><img src="	http://jwglxt.yau.edu.cn/zftal-ui-v5-1.0.2/assets/images/log_ic01.png" alt="用户名"></div>                                    -->
                                <input class="text" type="text" name="username" placeholder="用户名">
                            </p>
                            <p class="p-center">
                                <!-- <div class="div-use"><img src="http://jwglxt.yau.edu.cn/zftal-ui-v5-1.0.2/assets/images/log_ic02.png" alt="密码"></div> -->
                                <input class="text" type="password" name="password" placeholder="密码">
                            </p>
                            <p class="p-right">
                                <a href="">忘记密码了?</a>
                            </p>
                            <p class="p-center">
                                <button type="submit">登录</button>
                            </p>

                        </div>
                    </form>
                    <div class="div2">
                        “圣地教务”公众号非任何学校官方公众号,请立即取消关注,谨防受骗或个人信息泄露 <br>
                        登录教务管理系统途径:<br>
                        1.访问http://jwglxt.yau.edu.cn/jwglxt <br>
                        2.登录学校网办大厅后选择教务系统登录
                    </div>
                    <div>
                        <img class="last-img"
                            src="	http://jwglxt.yau.edu.cn/jwglxt/xtgl/dlycssz_cxDlycsszZp.html?zplx=4&t=1711267990936"
                            alt="二维码">
                        <div class="last-span">用手机扫一扫, <br>
                            安全、便捷登录</div>
                    </div>
                </div>
            </div>

        </div>

        <div class="box-ele"></div>

    </div>

    <div>
        <p class="p1">版权所有:延安大学教务处 电话:0911-2650135 传真:0911-2650131 电子信箱:ydjwc@yau.edu.cn 版本V8.3.14</p>
    </div>
</body>

</html>

 yau.css

.box{
    display: grid;
    grid-template-columns: 5% 89% 5% ;
    grid-template-rows: 710px;
    margin: 0;
    grid-gap: 10px;
}

.p1{
    text-align: center;
    font-size: 14px;
    color: #8099af;
    margin-top: 35px;
}

.div-main{
    background-color: rgba(240, 240, 240);
    height: 590px;

}

.img1{
    width: 950px;
    height: 550px;
    display: inline-block;
    vertical-align: top;
    margin-top: 5px;
    margin-left: 15px;
}

.div1{
    background-color: rgb(252, 252, 252);
    width: 450px;
    height: 578px;
    display: inline-block;
    vertical-align: top;
    margin-top: 5px;
    margin-left: 25px;
}

h3{
    color: #333333;
    margin-top: 25px;   
    margin-bottom: 25px;
    margin-left: 20px;
}

.div2{
    background-color: rgb(242, 222, 222);
    color: #a94442;
    width: 330px;
    border-radius: 5px;
    margin-left: 46px;
    margin-bottom: 45px;
    padding: 15px;
}

.div-img1{
    height: 50px;
    line-height: 50px;
    font-size: 24px;
    color: #1069a4;
    margin-top: 40px;
    margin-bottom: 40px;
}

.img2{
    height: 50px;
    width: 50px;
    float: left;
}

.p-center{
    text-align: center;
}

.p-right{
    text-align: right;
    margin-right: 45px;
}

a{
    color: rgb(0, 118, 193);
    text-decoration: none;
}

.text{
    width: 350px;
    height: 30px;
}

button{
    color: aliceblue;
    background-color: rgb(0, 118, 193);
    width: 360px;
    height: 40px;
    border: 0;
    border-radius: 5px;
}

.last-img{
    margin-left: 60px;
    float: left;
}

.last-span{
    margin-top: 12px;
    margin-left: 10px;
    float: left;
}

2.使用动画完成过渡+变换效果 

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>使用动画完成变换效果</title>
    <style>
        div {
            width: 150px;
            height: 150px;
            background-color: aquamarine;
            border: 2px solid rebeccapurple;
            text-align: center;
            position: relative;
            animation: move 2s linear infinite
        }


        /* 1.平移 */
        /* @keyframes move {
            0%{
                transform: translateX(0) translateY(0);
            }
            50%{
                transform: translateX(200px) translateY(200px);
            }
            100%{
                transform: translateX(0) translateY(0);
            }
            
        } */
        
        /* 2. 平移旋转*/
        /* @keyframes move {
            0%{
                transform: translateX(0) translateY(0);
            }
            50%{
                transform: translateX(200px) translateY(0) rotate(360deg);
            }
            100%{
                transform: translateX(0) translateY(0);
            }
            
        } */

        /* 3. 旋转缩小*/
        /* @keyframes move {
            0%{
                
            }
            50%{
                transform: scale(0.5) rotate(360deg);
            }
            100%{
                
            }
            
        } */

        /* 4. 3D旋转*/
        @keyframes move {
            0%{
                
            }
            50%{
                transform: skew(30deg,40deg)  rotate(360deg);
            }
            100%{
                
            }
            
        }
        </style>
</head>
<body>
    <div class="a">a</div>
</body>
</html>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值