• flex布局与float布局


    1、flex布局

    1. class="container">
    2. <div class="column">
    3. <p>This is the left column.p>
    4. div>
    5. <div class="column">
    6. <p>This is the right column.p>
    7. div>
    8. div>
    9. body>
    10. html>

     

    2、float布局 

    1. "width: 800px;height: 200px;">
    2. "float: left;background: red;width: 200px;height: 100%;">
    3.    左
  • "background: blue;margin-left: 200px;height: 100%;padding-left: 10px;">
  •    右
  •  

     

    1. "utf-8">
    2. <span class="hljs-keyword">float</span>
    3. "width:800px;height:200px;">
    4. "float:left;background:red;width:200px;height:100%;">
  • "float:right;background:blue;width:200px;height:100%;">
  • "background:yellow;width:400px;margin-left: 200px;height:100%;">
  • 相关阅读:
    (三)推断的逼近方法-通过加权重采样的贝叶斯定理
    archlinux解决fcitx5光标不跟随
    利用FastAPI和OpenAI-Whisper打造高效的语音转录服务
    day02-实现01
    Vue2项目练手——通用后台管理项目第二节
    麒麟系统开发笔记(十二):在国产麒麟系统上编译GDAL库、搭建基础开发环境和基础Demo
    专利:一种基于深度强化学习的机器人工件抓取方法
    数字化工厂建设方案探讨
    温故知新,signalR、RSA加密、ConcurrentQueue队列
    LiDAR 完整指南介绍:激光探测和测距
  • 原文地址:https://blog.csdn.net/weixin_63781898/article/details/133305482