HTML第6章上机练习3(制作京东快报页面)

代码如下:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>制作京东快报页面</title>
    <style>
        .title{
            height: 186px;
            width: 230px;
            box-sizing: border-box;
            border: 1px solid gainsboro;
        }
        .one{
            background-image: linear-gradient(to bottom, gainsboro, #ffffff);
            color: gray;
            font-size: 16px;
            line-height: 43px;
            vertical-align: center;
            padding: 0px 0px 1px 10px;
        }
        p{
            border:  gainsboro 2px dotted;
            margin: 0px;
            padding: 0px;
        }
        ul{
            margin: 0px;
            padding: 5px 0px ;
        }
        li{
            list-style: none;
            line-height: 26px;
            padding: 0px 26px;
            font-size: 12px;
        }
        ul a{
            text-decoration: none;
            color: gray;
        }
        a:hover{
            color: #640000;
        }
    </style>
</head>
<body>
<div class="title">
    <div class="one">京东快报</div>
    <p></p>
    <div class="two">
        <table>
            <tr>
                <ul>
                    <li><a href="">[特惠]海飞丝去屑又去油 超清爽</a></li>
                    <li><a href="">[公告]京东公益支持鲁甸新动作</a></li>
                    <li><a href="">[特惠]4688元抢iPhone 6</a></li>
                    <li><a href="">[公告]小米电视携豪礼高调入驻京东</a></li>
                </ul>
            </tr>
        </table>
    </div>
</div>
</body>
</html>

效果图如下:
在这里插入图片描述
鼠标移上文字后的效果图如下:
在这里插入图片描述
ps:说一下,近期会把以前作业的代码都完善下,再把以前以图片形式发出来的文章,还有在现在看来不太合格的文章代码修一下,免得误人子弟 我可担不起这罪名,快跑。 哈哈哈哈哈

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

思卿不见

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值