鹤戾223 2023-03-01 16:48 采纳率: 42.9%
浏览 83
已结题

使用前端css该如何打出此图

初学,初学前端
使用前端,html5,css该如何打出此图内容,

img

  • 写回答

4条回答 默认 最新

  • 全栈小5 全栈领域优质创作者 2023-03-01 17:20
    关注

    若有帮助,望给个采纳,谢谢!

    img

    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="viewport" content="width=device-width,initial-sca">
        <title>Document</title>
        <style>
            body, html { margin: 0; padding: 0; }
        </style>
    </head>
    <body>
    
        <!--第一行-->
        <div style="width: 966px; height: 103px;">
            <!--左浮动-红色块-->
            <div style="float: left; width: 277px; height: 103px; background: #EA3223; "></div>
            <!--右浮动-绿色区域-->
            <div style="float: left; width: 679px; height: 103px; margin-left: 10px; ">
                <div style="float: right; width: 137px; height: 49px; background: #75F94C;"></div>
                <div style="float: right; width: 679px; height: 49px; background: #75F94C; margin-top: 8px;"></div>
            </div>
        </div>
    
        <!--第二行-->
        <div style="width: 970px; height: 435px;margin-top:10px;">
            <!--左浮动-黄色块-->
            <div style="float: left; width: 310px; height: 435px; background: #F8CD46;"></div>
            <!--右浮动区域--->
            <div style="float: left; width: 650px; height: 435px; margin-left: 10px; ">
                <!--上区域-->
                <div style="float: left; width: 650px; height: 400px;">
                    <!--左边蓝色区域-->
                    <div style="float:left;width:450px;height:400px;">
                        <!--第一个蓝色块-->
                        <div style="width: 450px; height: 240px; background: #4F99F7;"></div>
                        <!--第二个蓝色块-->
                        <div style="width: 450px; height: 110px; background: #4F99F7;margin-top:10px;"></div>
                        <!--第三个蓝色块-->
                        <div style="width: 450px; height: 30px; background: #4F99F7;margin-top:10px;"></div>
                    </div>
                    <!--右边紫色区域-->
                    <div style="float: left; width: 190px; height: 400px; margin-left: 10px; background: #BB4295;"></div>
                </div>
                <!--下区域-->
                <div style="float: left; width: 650px; height: 25px; margin-top: 10px; background: #509C2C; "></div>
            </div>
        </div>
    
        <!--第三行-->
        <div style="width: 970px; height: 35px; margin-top: 10px; background: #000F91;"></div>
    
    </body>
    </html>
    
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(3条)

报告相同问题?

问题事件

  • 系统已结题 3月11日
  • 已采纳回答 3月3日
  • 创建了问题 3月1日

悬赏问题

  • ¥20 机器学习能否像多层线性模型一样处理嵌套数据
  • ¥20 西门子S7-Graph,S7-300,梯形图
  • ¥50 用易语言http 访问不了网页
  • ¥50 safari浏览器fetch提交数据后数据丢失问题
  • ¥15 matlab不知道怎么改,求解答!!
  • ¥15 永磁直线电机的电流环pi调不出来
  • ¥15 用stata实现聚类的代码
  • ¥15 请问paddlehub能支持移动端开发吗?在Android studio上该如何部署?
  • ¥20 docker里部署springboot项目,访问不到扬声器
  • ¥15 netty整合springboot之后自动重连失效