用html编写的小广告板

用html编写的小广告板

相关代码

css 复制代码
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box {
            width: 480px;
            height: 210px;
            border: #d8dad8 solid 2px;
            margin: auto;
            text-align: center;
        }
        .title {
            padding-top: 5px;
            padding-bottom: 5px;
            font-size: 25px;
            border-bottom: 2px dotted #e8ebe8;
        } 
        .item {
            font-size: 16px;
            flood-color: #898b76;
            line-height: 22px;
            padding-top: 10px;
        }
        .finally {
            padding-top: 8px;
            padding-right: 6px;
            text-align: right;
            font-size: 12px;
            font-weight: bolder;
            font-family: '微软雅黑';
        }
    </style>
</head>
<body>
    <div class="box">
        <div class="title">广告板</div>
        <div class="content">
            <div class="item">赔钱清仓甩卖,全场一律八折 --xx服装店</div>
            <div class="item">怕上火,喝王老吉!--王老吉凉茶</div>
            <div class="item">人类失去联想,世界将会怎样?--联想电脑</div>
            <div class="item">我们不生产水,我们只是大自然的搬运工! --农夫山泉</div>
        </div>
        <div class="finally"><b>若有广告需求,联系方式:1982378xxxx</b></div>
    </div>
</body>
</html>

代码截图

运行效果

相关推荐
接着奏乐接着舞几秒前
react redux 分组
前端·javascript·react.js
IT_陈寒4 分钟前
Vue 3.4 性能优化揭秘:这5个Composition API技巧让我的应用提速40%
前端·人工智能·后端
solicitous6 分钟前
第二章 信息技术发展
学习
行走的陀螺仪6 分钟前
实时通信底层原理深度剖析:短轮询、长轮询与WebSocket的本质差异
前端·网络·websocket·网络协议
大猩猩X7 分钟前
vue vxe-gantt 甘特图实现产品进度列表,自定义任务条样式和提示信息
前端·javascript·甘特图·vxe-ui·vxe-gantt
一字白首9 分钟前
Vue 进阶,生命周期 + 工程化开发
前端·javascript·vue.js
沐风。5616 分钟前
css函数
前端·css·css3
tangdou36909865517 分钟前
AI真好玩系列-WebGL爱心粒子手势互动教程 | Interactive Heart Particles with Hand Gestures
前端·人工智能·webgl
whbi19 分钟前
DataX Web 部署方案
前端
im_AMBER19 分钟前
Leetcode 70 好数对的数目 | 与对应负数同时存在的最大正整数
数据结构·笔记·学习·算法·leetcode