前端学习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>
相关推荐
亦世凡华、2 分钟前
Rollup入门与进阶:为现代Web应用构建超小的打包文件
前端·经验分享·rollup·配置项目·前端分享
生命不息战斗不止(王子晗)11 分钟前
mybatis中${}和#{}的区别
java·服务器·tomcat
Bl_a_ck29 分钟前
【React】Craco 简介
开发语言·前端·react.js·typescript·前端框架
Ha-gd38 分钟前
Linux基础开发工具一(yum/apt ,vim)
linux·服务器
为美好的生活献上中指1 小时前
java每日精进 5.11【WebSocket】
java·javascript·css·网络·sql·websocket·网络协议
augenstern4161 小时前
webpack重构优化
前端·webpack·重构
海拥✘2 小时前
CodeBuddy终极测评:中国版Cursor的开发革命(含安装指南+HTML游戏实战)
前端·游戏·html
寧笙(Lycode)2 小时前
React系列——HOC高阶组件的封装与使用
前端·react.js·前端框架
asqq82 小时前
CSS 中的 ::before 和 ::after 伪元素
前端·css
水水沝淼㵘2 小时前
嵌入式开发学习日志(数据结构--顺序结构单链表)Day19
linux·服务器·c语言·数据结构·学习·算法·排序算法