day3-作业

完成如下效果图的板块

卧龙控股.jpg

代码如下

<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
        <style type="text/css">
            .div{
                left: 0;
                right: 0;
                margin: auto;
            }
            #div1{
                position: relative;
            }
            #div1-1{
                background-image: url(img/67.jpg);
                width: 130px;
                height: 74px;
                background-color: white;
                position: absolute;
                left: 10px;
                top: 3px;
            }
            #div1-2{
                width: 150px;
                height: 50px;
                background-color: white;
                position: absolute;
                right: 10px;
                top: 15px;
            }
            #div2{
                left: 0;
                right: 0;
                margin: auto;
            }
            #div2 lu li{
                float: left;
                line-height: 30px;
                color: white;
                list-style-type: none;
                margin-left: 7px;
                margin-right: 7px;
                font-size: 3px;
                padding-left: 2px;
                
            }
            #div4 div{
                float: left;
            }
            #div5 div{
                float: left;
                width: 140px;
                height: 150px;
            }
            #div6 div{
                margin-top: 20px;
                float: left;
            }
        </style>
    </head>
    <body>
        <div id="div1" class="div" style="height: 80px;width: 600px;">
            <div id="div1-1">
            </div>
            <div id="div1-2">
                <input type="text" style="padding-left: 5px;margin-top: 30px;width: 125px;height: 10px;background-color: #F1F1F1;" placeholder="SEARCH" />
            </div>
        </div>
        <div class="div" id="div2" style="width: 600px;height: 30px;background-color: black;">
            <lu>
                <li>集团介绍&emsp;&emsp;|</li>
                <li>产品中心&emsp;&emsp;|</li>
                <li>卧龙市场&emsp;&emsp;|</li>
                <li>技术研发&emsp;&emsp;|</li>
                <li>国际合作&emsp;&emsp;|</li>
                <li>投资者关系&emsp;&emsp;|</li>
                <li>新闻资讯&emsp;&emsp;|</li>
                <li>人力资源</li>
            </lu>
        </div>
        <div class="div" id="div3" style="width: 600px;height: 300px;background-color: red;background: url(img/sa.jpg);">
            
        </div>
        <div class="div" id="div4" style="width: 600px;height: 150px;">
            <div style="width: 300px;height: 150px;">
                <h4>新闻资讯</h4>
            </div>
            <div style="width: 150px;height: 150px;background-color: #F1F1F1">
                <h4>卧龙介绍</h4>
            </div>
            <div style="width: 150px;height: 150px;">
                <h4>人工招聘</h4>
            </div>
        </div>
        <div id="div5" class="div" style="width: 600px;height: 150px;">
            <h4>卧龙市场</h4>
            <div id="" style="background-color: brown;">
                
            </div>
            <div id="" style="background-color: black;margin-left: 11px;margin-right: 6px;">
                
            </div>
            <div id="" style="background-color: blue;margin-left: 6px;margin-right: 11px;">
                
            </div>
            <div id="" style="background-color: silver;">
                
            </div>
        </div>
        <div id="div6" class="div" style="width: 600px;height: 300px;background-color: #F1F1F1;margin-top: 75px;margin-bottom: 20px;">
            <h6>&nbsp;</h6>
            <div id="" style="width: 240px;height: 250px;margin-top: -20px;margin-left: 20px;">
                <h4>产品中心</h4>
                <div id="" style="width: 220px;height: 230px;margin-top: -20px;margin-left: -5px;border-top: 1px black solid;">
                    
                </div>
            </div>
            <div id="" style="width: 110px;height: 250px;margin-top: -20px;margin-left: 20px;">
                <h4>研发技术</h4>
                <div id="" style="width: 100px;height: 230px;margin-top: -20px;margin-left: -5px;border-top: 1px black solid;">
                    
                </div>
            </div>
            <div id="" style="width: 190px;height: 250px;margin-top: -20px;margin-left: 20px;">
                <h4>营销网络</h4>
                <div id="" style="width: 180px;height: 230px;margin-top: -20px;margin-left: -5px;border-top: 1px black solid;">
                    
                </div>
            </div>
        </div>
    </body>
</html>

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • Android 自定义View的各种姿势1 Activity的显示之ViewRootImpl详解 Activity...
    passiontim阅读 174,659评论 25 709
  • 用两张图告诉你,为什么你的 App 会卡顿? - Android - 掘金 Cover 有什么料? 从这篇文章中你...
    hw1212阅读 13,134评论 2 59
  • 2-3 个性化消息: 将用户的姓名存到一个变量中,并向该用户显示一条消息。显示的消息应非常简单,如“Hello E...
    C0mpass阅读 309评论 0 1
  • 一、金句: (1)、阅读可以改变人生。这种感觉,就好像行走在黑暗的世界中,突然有一束光射进来,照亮了前行道路。 今...
    杨燕_6b76阅读 366评论 0 0
  • 妈妈,只要你心不老,你就永远不会老。这句话是在一次说话的时候,我感慨自己老了,五岁的儿子跟我说的一句话。在那以后,...
    向着太阳奔跑的石头阅读 1,135评论 0 1