前端学习DAY26(华为平板页面)

复制代码
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>平板图片</title>
    <style>
.box{
    text-align: center;
}
.box p:first-of-type{
    font-size: 32px;
}
.box p:nth-of-type(1){
    color: #1b1a1a;
    font-size: 40px;
}
/* .box p1:nth-of-type(1){
    color: #ccc;
    font-size: 21px;
}
.box p1:nth-of-type(2){
    color: #ccc;
    font-size: 21px; 
} */
.box p:nth-of-type(2){
    color: #ccc;
    font-size: 26px;
}

.box p:nth-of-type(3){
    color: #eb9d0b;
    font-size: 30px;
}
.box span{
    color: #ccc;
    text-decoration: line-through;
}
    </style>
</head>
<body>
    <div class="box">
        <p>HUAWEI MatePad Pro 13.2"套装(星闪版)</p>
        <p>13.2英寸柔性OLED大屏&nbsp;|&nbsp;PC级专业办公生态&nbsp;|&nbsp;星闪手写笔*</p>
        <img src="./华为图片.jpg" alt="">      <!-- 图片没显示 -->
        <p>8099元&nbsp;&nbsp;<span>9?00元</span></p>
    </div>
复制代码
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>平板图片</title>
    <style>
.div_box{
    text-align: center;/* 文本行内元素 */
}
.bth{                   /* bth块元素 */
    width: 120px;
    height: 50px;
    background-color: #3c71d4;
    line-height: 50px;
    color: #f9f6f6;
    margin: 0 auto;      /* 适用于块元素左右居中 */
    margin-top: 30px;    /* 间距 */
    border-radius: 5px;  /* 圆角 */
}
.bth>span{
    font-weight: bold;       /* 字体加粗 */
}
 <div class="div_box">
        <img src="./华为图片.jpg" alt="">    <!-- 图片没显示 -->
        <div class="bth">
            <span>Harmony OS</span>
        </div>
    </div>
</body>
</html>
相关推荐
用户900463370405 小时前
5MB vs 4KB vs 无限大:浏览器存储谁更强?
前端
小小小小宇5 小时前
Harness Engineering 全解析与应用
前端
牧艺6 小时前
cos-design v3.0:从 15 个 Demo 到 49 个组件的视觉特效库
前端·视觉设计
lichenyang4536 小时前
ASCF 架构升级总览:WebRuntimePage 为什么要变薄
前端
道友可好6 小时前
从今天开始:你的第一个 Harness Engineering 实践
前端·人工智能·后端
Linsk6 小时前
组件 = 模板 + 业务逻辑
java·前端·vue.js
二月龙6 小时前
移动端 H5 页面开发:响应式适配 + 低版本兼容实战指南
前端
小强19886 小时前
HTML5 新表单全解:日期、手机号、颜色选择器
前端
妙码生花6 小时前
从 PHP 到 AI + Golang,程序员自救转型手记(二):目录结构、初始化 GIT、设计并开发配置系统
前端·后端·go
鱼人6 小时前
HTML5 本地存储终极指南
前端