最美情侣中文字幕电影,在线麻豆精品传媒,在线网站高清黄,久久黄色视频

歡迎光臨散文網(wǎng) 會員登陸 & 注冊

CSS Flex和響應(yīng)式移動端適配:現(xiàn)代主流網(wǎng)站APP小程序的界面布局方式【實(shí)踐

2023-07-14 22:52 作者:學(xué)習(xí)與生活分享  | 我要投稿

<!DOCTYPE html>

<html lang="en">


<head>

? ? <meta charset="UTF-8">

? ? <meta name="viewport" content="width=fle, initial-scale=1.0">

? ? <title>flex 布局</title>

? ? <style>

? ? ? ? body {

? ? ? ? ? ? margin: 0;

? ? ? ? ? ? height: 100vh;

? ? ? ? ? ? background-color: rgb(172, 169, 169);

? ? ? ? }


? ? ? ? /* * {

? ? ? ? ? ? border: 1px solid black;

? ? ? ? } */


? ? ? ? .yinYing {

? ? ? ? ? ? box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);

? ? ? ? ? ? z-index: 999;

? ? ? ? }


? ? ? ? .baiSe {

? ? ? ? ? ? background-color: rgb(255, 255, 255);

? ? ? ? }


? ? ? ? .flex {

? ? ? ? ? ? display: flex;

? ? ? ? }


? ? ? ? .flex1 {

? ? ? ? ? ? flex: 1;

? ? ? ? }


? ? ? ? .column {

? ? ? ? ? ? flex-direction: column;

? ? ? ? }


? ? ? ? .mg8 {

? ? ? ? ? ? margin: 8px;

? ? ? ? }


? ? ? ? .mgr8 {

? ? ? ? ? ? margin-right: 8px;

? ? ? ? }


? ? ? ? .mgt8 {

? ? ? ? ? ? margin-top: 8px;

? ? ? ? }


? ? ? ? .daoHang {

? ? ? ? ? ? padding: 10px 20px;

? ? ? ? ? ? border-bottom: 1px solid gray;

? ? ? ? ? ? font-size: 14px;

? ? ? ? ? ? color: #666;

? ? ? ? }


? ? ? ? /* < !--當(dāng)屏幕小于600px時,要改變的css*--> */

? ? ? ? @media(max-width: 600px) {

? ? ? ? ? ? .ceBian {

? ? ? ? ? ? ? ? display: none;

? ? ? ? ? ? }


? ? ? ? ? ? .neiRong {

? ? ? ? ? ? ? ? flex-direction: column;

? ? ? ? ? ? }


? ? ? ? ? ? .shujuQv {

? ? ? ? ? ? ? ? flex-direction: column;

? ? ? ? ? ? }


? ? ? ? ? ? .youQV {

? ? ? ? ? ? ? ? margin-left: 8px;

? ? ? ? ? ? }


? ? ? ? ? ? .shuJu {

? ? ? ? ? ? ? ? margin: 0 0 8px;

? ? ? ? ? ? ? ? flex: auto

? ? ? ? ? ? }


? ? ? ? }


? ? ? ? .neiRong::--webkit-scrollbar {

? ? ? ? ? ? display: none;

? ? ? ? }

? ? </style>

</head>


<body class="flex">

? ? <!--側(cè)邊框-->

? ? <div style="width: 200px;z-index: 2;" class="ceBian baiSe yinYing">

? ? ? ? <!--頭像欄-->

? ? ? ? <div style="padding: 10px;align-items: center;justify-content: center;" class="flex">

? ? ? ? ? ? <img src="https://i.imgloc.com/2023/06/29/V3XZJy.png" width="40px" height="40px" alt="jackzhu">

? ? ? ? ? ? <div style="margin-left: 10px;">學(xué)習(xí)與生活分享</div>

? ? ? ? </div>


? ? ? ? <!--導(dǎo)航欄-->

? ? ? ? <div class="flex1">

? ? ? ? ? ? <div class="daoHang">導(dǎo)航</div>

? ? ? ? ? ? <div class="daoHang">導(dǎo)航</div>

? ? ? ? ? ? <div class="daoHang">導(dǎo)航</div>

? ? ? ? ? ? <div class="daoHang">導(dǎo)航</div>

? ? ? ? </div>

? ? </div>

? ? <!--主區(qū)域-->

? ? <div class="flex1 flex column ">

? ? ? ? <!--頭部欄-->

? ? ? ? <div style="height: 60px;z-index: 1;" class="baiSe yinYing"></div>

? ? ? ? <!--內(nèi)容區(qū)-->

? ? ? ? <div style="overflow:auto;" class="neiRong flex1 flex ">

? ? ? ? ? ? <!--左區(qū)-->

? ? ? ? ? ? <div style="flex: 3;" class="flex column mg8">

? ? ? ? ? ? ? ? <!--數(shù)據(jù)區(qū)-->

? ? ? ? ? ? ? ? <div class="shujuQv flex">

? ? ? ? ? ? ? ? ? ? <!--數(shù)據(jù)塊-->

? ? ? ? ? ? ? ? ? ? <div style="height: 100px;" class="shuJu flex1 baiSe mgr8"></div>

? ? ? ? ? ? ? ? ? ? <!--數(shù)據(jù)塊-->

? ? ? ? ? ? ? ? ? ? <div style="height: 100px;" class="shuJu flex1 baiSe mgr8"></div>

? ? ? ? ? ? ? ? ? ? <!--數(shù)據(jù)塊-->

? ? ? ? ? ? ? ? ? ? <div style="height: 100px;" class="shuJu flex1 baiSe mgr8"></div>

? ? ? ? ? ? ? ? ? ? <!--數(shù)據(jù)塊-->

? ? ? ? ? ? ? ? ? ? <div style="height: 100px;" class="shuJu flex1 baiSe "></div>

? ? ? ? ? ? ? ? </div>

? ? ? ? ? ? ? ? <!--列表區(qū)-->

? ? ? ? ? ? ? ? <div class="flex column">

? ? ? ? ? ? ? ? ? ? <!--列表項(xiàng)-->

? ? ? ? ? ? ? ? ? ? <div style="height: 160px;" class="baiSe yinYing mgt8"></div>

? ? ? ? ? ? ? ? ? ? <!--列表項(xiàng)-->

? ? ? ? ? ? ? ? ? ? <div style="height: 160px;" class="baiSe yinYing mgt8"></div>

? ? ? ? ? ? ? ? ? ? <!--列表項(xiàng)-->

? ? ? ? ? ? ? ? ? ? <div style="height: 160px;" class="baiSe yinYing mgt8"></div>

? ? ? ? ? ? ? ? ? ? <!--列表項(xiàng)-->

? ? ? ? ? ? ? ? ? ? <div style="height: 160px;" class="baiSe yinYing mgt8"></div>

? ? ? ? ? ? ? ? ? ? <!--列表項(xiàng)-->

? ? ? ? ? ? ? ? ? ? <div style="height: 160px;" class="baiSe yinYing mgt8"></div>

? ? ? ? ? ? ? ? ? ? <!--列表項(xiàng)-->

? ? ? ? ? ? ? ? ? ? <div style="height: 160px;" class="baiSe yinYing mgt8"></div>

? ? ? ? ? ? ? ? </div>

? ? ? ? ? ? </div>

? ? ? ? ? ? <!--右區(qū)-->

? ? ? ? ? ? <div style="flex: 1;" class="youQV flex column mgr8 mgt8">

? ? ? ? ? ? ? ? <!--提示區(qū)-->

? ? ? ? ? ? ? ? <div style="height: 150px;" class="baiSe yinYing ">


? ? ? ? ? ? ? ? </div>

? ? ? ? ? ? ? ? <!--消息區(qū)-->

? ? ? ? ? ? ? ? <div style="height: 300px;" class="baiSe yinYing mgt8 ">


? ? ? ? ? ? ? ? </div>

? ? ? ? ? ? </div>


? ? ? ? </div>


</body>


</html>

CSS Flex和響應(yīng)式移動端適配:現(xiàn)代主流網(wǎng)站APP小程序的界面布局方式【實(shí)踐的評論 (共 條)

分享到微博請遵守國家法律
丘北县| 盐池县| 连平县| 兖州市| 嘉义县| 金华市| 辽宁省| 铜陵市| 顺平县| 襄城县| 莎车县| 依兰县| 离岛区| 普陀区| 天津市| 福清市| 福建省| 南乐县| 游戏| 昌江| 常德市| 沐川县| 平南县| 金寨县| 孟村| 桓仁| 伽师县| 浮梁县| 佛冈县| 武宁县| 揭阳市| 定南县| 林口县| 渝北区| 合水县| 宕昌县| 瑞丽市| 永安市| 武威市| 榕江县| 怀集县|