12.9

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box{
            position: relative;
            width: 310px;
            height: 190px;
            margin: auto;
            border: 1px solid #ccc;
            padding: 10px;
        }
        .top {
            position: absolute;
            top: 0;
            left: 0;
        }
        .bottom{
            position: absolute;
            bottom: 0;
            right: 0;
        }
    </style>
</head>
<body>
    <div class="box">
        <img class="top" src="top_tu.gif" alt="">
        <img src="adv.jpg" alt="">
        <img class="bottom" src="br.gif" alt="">
    </div>
</body>
</html>

 

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box{
            width: 1002px;
            margin: 0 auto;
        }
        .ad-l{
            position: fixed;
            left: 0;
            top: 85px;
        }
        .ad-r{
            position: fixed;
            right: 0;
            top: 85px;
        }
    </style>
</head>
<body>
    <img class="ad-1" src="ad-l.png" alt="">
    <img class="ad-r" src="ad-r.png" alt="">
    <div class="box">
        <img src="box.png" alt="">
    </div>
</body>
</html>

 

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            padding: 0;
            margin: 0;
        }
        a{
            text-decoration: none;
        }
        li{
            list-style: none;
        }
        .taobao{
            position: relative;
            width: 520px;
            height: 280px;
            margin: auto;
        }
        .arrow-l, .arrow-r{
            position: absolute;
            top: 50%;
            margin-top: -15px;
            width: 20px;
            height: 30px;
            line-height: 30px;
            background-color: rgba(0,0,0,0.2);
            border-radius: 15px 0 0 15px;
            color: #fff;
        }
        .arrow-l{
            border-radius: 0 15px 15px 0;
            color: #fff;
        }
        .arrow-r{
            right: 0;
            border-radius: 15px 0 0 15px;
            text-align: right;
        }
        .circle{
            position: absolute;
            left: 50%;
            margin-left: -35px;
            bottom: 15px;
            width: 70px;
            height: 13px;
            background-color: rgba(255,255,255,0.2);
            border-radius: 6px;
        }
        .circle li{
            float: left;
            height: 8px;
            width: 8px;
            background-color: #fff;
            margin: 3px;
            border-radius: 50%;
        }
        .circle .current{
            background-color: #ff5000;
        }
    </style>
</head>
<body>
    <div class="taobao">
        <a href="#" class="arrow-l">&lt;</a>
        <a href="#" class="arrow-r">&gt;</a>
        <img src="taobao.jpg" alt="">
        <ul class="circle">
            <li></li>
            <li></li>
            <li class="current"></li>
            <li></li>
            <li></li>
        </ul>
    </div>
</body>
</html>

 

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值