web——百度首页

这个是我第一次写的网页,虽然有点丑,但是还是和你们分享一下啦!这个是仿百度写的,但是点击登录和百度的效果是一样的哦!(图片希望亲们自己去截图哦,改个路径就可以正常使用了哦!)

这是HTML和CSS代码

<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>百度一下,你就知道</title>
        <style>
            body{
                margin: 0;
                padding: 0;
            }
            .tou{
                margin-top: -32px;
            }

            .btn{

            }
            font:hover{
                cursor: pointer;
                color: red;
            }
            .back-img{
                border: 1px solid #000000;
                position: absolute;
                width: 100%;
                height: 100%;
                top: 0px;
                left: 0px;
                background-color: #000000;
                opacity: 0.3;
                z-index: 100;
                display: none;
            }
            .login{
                /*border: 1px solid #000000;*/
                width: 390px;
                height: 500px;
                position: absolute;
                top:26%;
                left: 35%;
                background-color:white;
                z-index: 110;
                display: none;
            }
            .login-top{
                position: absolute;
                width: 100%;
                height: 10%;
                background-color: #F7F7F7;
            }
            .close-login{
                display: block;
                position: absolute;
                right: 10px;
                top: 5px;
                width: 30px;
                height: 30px;
                text-align: center;
                <
  • 0
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值