html练习-必应封面图片摘要

完成后的图片
H5exercise

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

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>bing模块</title>
    <link rel="stylesheet" href="./css/reset.css">
    <style>
        body {
            background-color: #e9e9e9;
        }

        a{
            text-decoration: none;
        }

        .bing-wrapper {
            background-color: whitesmoke;
            margin: 10px auto;
            width: 300px;
            height: 340px;
            overflow: hidden;
        }

        .title {
            height: 20px;
            margin-left: 15px;
            margin-right: 18px;
            padding-top: 10px;
            padding-bottom: 2px;
            border-bottom: solid #d0d5e4 1px;
        }

        .lined {
            padding-bottom: 4px;
            border-bottom: solid rgb(30, 33, 75) 1px;
        }

        .title a {
            font-size: 14px;
            font-weight: 600;
            text-decoration: none;
            color: rgb(16, 67, 124);
        }

        .title a:hover {
            color: rgb(57, 42, 194);
        }

        .bing-img{
            padding-top: 15px;
            padding-left: 15px;
            width:265px;
            height: 140px;
            overflow: hidden; 
        }

        .bing-img img{
            height: 140px;
        }

        .bing-img .img-title{
            color: white;
            font-size: 18px;
            font-weight: 600;
            margin-top: -35px;
            margin-left: 16px;
        }


        div .bing-list {
            font-size: 11px;
            padding-left: 15px;
            padding-top: 15px;
        }

        .bing-list li{
            margin-top: 8px;
        }

        .bing-list a{
            color: rgb(36, 33, 43);
        }

        .bing-list li a::before{
            content: '■  ';
            color: #d8d8d8;
        }
        
        .bing-list a:hover{
            color: cornflowerblue;
        }

    </style>
</head>

<body>
    <div class="bing-wrapper">
        <h2 class="title"><a href="http://www.bing.com/" target="framename"><span class="lined"> Microsoft Bing</span></a></h2>

        <!-- 创建图片容器 -->
        <div class="bing-img">
            <a href="https://acmnp.com/wp-content/uploads/crater-lake-national-park-hero.jpg" target="framename">
                <img src="./pic/OIP.jpg">
                <h3 class="img-title">Crater Lake National Park</h3>
            </a>
        </div>


        <ul class="bing-list">
            <li><a href="#">&nbsp;Can you swim in Crater Lake National Park</a></li><br>
            <li><a href="#">&nbsp;Is Crater Lake National Park closed</a></li><br>
            <li><a href="#">&nbsp;When should I visit Crater Lake</a></li><br>
            <li><a href="#">&nbsp;How far is Portland Oregon from Crater Lake</a></li>
        </ul>
    </div>
</body>

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值