用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>

代码截图

运行效果

相关推荐
狗头大军之江苏分军21 分钟前
前端转行干能干什么?我转行试了下(被迫)
前端·后端
孟陬22 分钟前
Foobar 技术周刊#2:约会已死?用户急剧下滑,约会App大概率会弱化约会属性转向轻陪伴。我有个建议:
前端·后端·rust
kaixin_啊啊1 小时前
【DNA数据学习】从DNA序列到模型预测
学习·生物信息
parade岁月1 小时前
VTable Guild 3.0.0 发布,面向 Vue 3 的 ProTable 式业务表格
前端
xurileidian1 小时前
第 17 篇 · 边玩边学Python · for 遍历 enumerate 与 zip
java·前端·python
掘金安东尼2 小时前
更多审查智能体,更少盲区:GitHub Copilot 代码审查是怎么做的
前端·github copilot
软件技术NINI3 小时前
基于 Spring Boot 中国历史知识学习系统
spring boot·后端·学习
Hilaku5 小时前
2026 年了,jQuery 真的该死了吗?
前端·javascript·程序员
zach5 小时前
吃透 React setState 同步异步之谜:从批量更新、事件循环到版本演进的完整拆解
前端·react.js
不服老的小黑哥5 小时前
02-从 pnpm dev 到 Spring Boot 启动:后端服务到底怎么跑起来?
前端