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

代码截图

运行效果

相关推荐
G***E3161 小时前
前端GraphQLAPI
前端
lumi.1 小时前
Vue + Element Plus 实现AI文档解析与问答功能(含详细注释+核心逻辑解析)
前端·javascript·vue.js·人工智能
z***I3941 小时前
VueGraphQLAPI
前端
粉末的沉淀3 小时前
css:制作带边框的气泡框
前端·javascript·css
N***73854 小时前
Vue网络编程详解
前端·javascript·vue.js
e***71674 小时前
Spring Boot项目接收前端参数的11种方式
前端·spring boot·后端
程序猿小蒜4 小时前
基于springboot的的学生干部管理系统开发与设计
java·前端·spring boot·后端·spring
银空飞羽4 小时前
让Trae CN SOLO自主发挥,看看能做出一个什么样的项目
前端·人工智能·trae
西游音月5 小时前
(4)pytest+Selenium自动化测试-元素定位之CSS Selector定位
css·selenium·pytest
ndjnddjxn5 小时前
Rust学习
开发语言·学习·rust