前端学习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>
相关推荐
CarIise11 分钟前
CSS选择器与样式关联
前端·css·tensorflow
里欧跑得慢1 小时前
CSS 模块化架构的演进:BEM、CSS Modules 到 CSS-in-JS 的反思
前端·css·flutter·web·css-in-js
IT_陈寒2 小时前
Vue的computed属性把我坑惨了,原来我一直用错姿势
前端·人工智能·后端
AuTumn-L2 小时前
使用 SSH 密钥认证实现安全免密登录
服务器·安全·ssh
小灰灰搞电子2 小时前
Rust+Slint 实现温度计源码分享
前端·rust·slint
计算机魔术师2 小时前
面壁智能 OpenBMB 推出 MathForm,面向 Lean 4 数学自动形式化的开源框架、数据集与模型
前端
NeilCarmack3 小时前
Deepseek-harness增加桌面版端序列:第 2 讲 · spawn Electron:当前进程如何“交棒“
前端·javascript·electron
知无不研3 小时前
Linux I/O复用之epoll
linux·服务器·epoll·socket编程
上海魁鲸科技有限公司3 小时前
APS高级排产系统到底有什么用?一文讲清功能、选型与落地建议
前端·microsoft·excel
陈随易3 小时前
Bun v1.4 更新总结:把浏览器、图片、定时任务和工程工具都装进一个运行时
前端·后端·程序员