html和css网页制作

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

<head>
    <meta charset="UTF-8">
    <title>百度首页</title>
    <style type="text/css">
        .top {
            width: 100%;
            height: 64px;
        }
        
        .top>.title {
            height: 64px;
            float: right;
        }
        
        .top>.title>span {
            line-height: 64px;
        }
        
        .top>.title>span>a {
            color: black;
            font-size: 15px;
            font-family: "宋体";
            text-decoration: underline;
        }
        
        .top>.title>span>.body {
            font-weight: bold;
        }
        
        .body>.picture {
            text-align: center;
            margin-bottom: 36px;
        }
        
        .body>.search {
            text-align: center;
        }
        
        .body>.search>.abc>.input {
            width: 540px;
            height: 36px;
        }
        
        .body>.search>.abc>.btn {
            width: 100px;
            height: 40px;
            margin-top: 10px;
            background: blue;
            color: white;
            font-size: 13px;
        }
        
        .foot {
            width: 100%;
            position: absolute;
            bottom: 100px;
        }
        
        .foot>.link {
            text-align: center;
            margin-bottom: 5px;
        }
        
        .foot>.link>a {
            font-size: 15px;
            font-family: "宋体";
            text-decoration: underline;
        }
        
        .foot>.footer {
            /*border: 1px solid blue;*/
            text-align: center;
            font-size: 15px;
            font-family: "宋体";
        }
        
        .font>.footer>a {
            text-decoration: underline;
            color: blue;
        }
        
        #btn {
            background-color: blue;
            color: white;
            font-size: 15px;
            width: 50px;
            height: 30px;
        }
    </style>
</head>

<body>
    <div class="top">
        <div class="title">
            <span>
            <a class="body" href="https://www.baidu.com" >新闻</a>&nbsp;&nbsp;&nbsp;&nbsp;
            <a class="body" href="https://www.baidu.com">hao123</a>&nbsp;&nbsp;&nbsp;&nbsp;
            <a class="body" href="https://www.baidu.com">地图</a>&nbsp;&nbsp;&nbsp;&nbsp;
            <a class="body" href="https://www.baidu.com">直播</a>&nbsp;&nbsp;&nbsp;&nbsp;
            <a class="body" href="https://www.baidu.com">视频</a>&nbsp;&nbsp;&nbsp;&nbsp;
            <a class="body" href="https://www.baidu.com">贴吧</a>&nbsp;&nbsp;&nbsp;&nbsp;
            <a class="body" href="https://www.baidu.com">学术</a>&nbsp;&nbsp;&nbsp;&nbsp;
            <a href="https://www.baidu.com">更多</a>&nbsp;&nbsp;&nbsp;&nbsp;
            <button id="btn">设置</button>&nbsp;&nbsp;
            <button id="btn" >登录</button>
          </span>
        </div>
    </div>
    <div class="body">
        <div class="picture">
            <image src="C:\Users\86166\Desktop\前端基础案例\2\baidu.jpg.jpg" "widht="540 " height="258 " />
        </div>
        <div class="search ">
            <from class="abc " action="https://www.baidu.com/?tn=21002492_16_hao_pg ">
                <label for="search "></label>
                <input class="input " type="text " name="search " id="search " value=" " />
                <input class="btn " type="submit " value=" 百度一下 " name="submit " />
            </from>
        </div>
    </div>
    <div class="foot ">
        <div class="link ">
            <a href=" ">把百度设为主页</a>
            <a href=" ">关于百度</a>
            <a href=" ">About Baidu</a>
        </div>
        <div class="footer ">
            ©2015 Baidu
            <a href=" ">使用百度前必读</a>
            <a href=" ">意见反馈</a> 京ICP证030173号
        </div>
    </div>
</body>

</html>

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值