前端学习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 小时前
vue3 下载图片(标签内容可转图)
前端·javascript·vue
中微子2 小时前
React Router 源码深度剖析解决面试中的深层次问题
前端·react.js
光影少年2 小时前
从前端转go开发的学习路线
前端·学习·golang
中微子2 小时前
React Router 面试指南:从基础到实战
前端·react.js·前端框架
3Katrina2 小时前
深入理解 useLayoutEffect:解决 UI "闪烁"问题的利器
前端·javascript·面试
前端_学习之路3 小时前
React--Fiber 架构
前端·react.js·架构
coderlin_3 小时前
BI布局拖拽 (1) 深入react-gird-layout源码
android·javascript·react.js
伍哥的传说4 小时前
React 实现五子棋人机对战小游戏
前端·javascript·react.js·前端框架·node.js·ecmascript·js
古希腊数通小白(ip在学)4 小时前
stp拓扑变化分类
运维·服务器·网络·智能路由器
qq_424409194 小时前
uniapp的app项目,某个页面长时间无操作,返回首页
前端·vue.js·uni-app