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

代码截图

运行效果

相关推荐
秋田君3 分钟前
Vue3+Node.js 实现大文件上传:断点续传、秒传、分片上传完整教程(含源码)
前端
爱隐身的官人3 分钟前
ctfshow - web - nodejs
前端·nodejs·ctf
zhong liu bin4 分钟前
Vue框架技术详解——项目驱动概念理解【前端】【Vue】
前端·javascript·vue.js·vscode·vue
W-GEO4 分钟前
前端安全攻防:XSS, CSRF 等常见威胁的防范与检测指南
前端·安全·xss
2301_803554527 分钟前
实习项目包装--HTTP 协议和 Web API
前端·网络协议·http
lssjzmn8 分钟前
Spring Web 异步响应实战:从 CompletableFuture 到 ResponseBodyEmitter 的全链路优化
java·前端·后端·springboot·异步·接口优化
这里有鱼汤8 分钟前
上班族没时间炒股?不妨试试这个隔夜超短战法(附:Python量化源码)
前端
自强的小白15 分钟前
vlan(局部虚拟网)
网络·学习
n123523515 分钟前
Chrome 插件开发入门指南:从基础到实践
前端·chrome
前端 贾公子22 分钟前
ElementUI 中 validateField 对部分表单字段数组进行校验时多次回调问题
前端·javascript·elementui