zoukankan      html  css  js  c++  java
  • H5新手快速入门 简单布局


    布局
    *{
    margin: 0;
    padding: 0;
    }
    .quan{
    100%;
    height: 2000px;
    background: black url("../ima/bg.jpg") no-repeat;

    }
    .zhuo{
    margin-top: 90px;
    60%;
    height: 1000px;

    float: left;
    }
    .you{
    margin-top: 90px;
    30%;
    height: 1000px;

    float: right;
    }
    .tou{
    100px;
    height: 80px;
    margin: 60px 150px;
    font-size: 50px;
    color: white;
    transition: all 1s ease;
    }
    .tou:hover {
    transform: scale(1.5);
    color: yellow;
    }
    .z1{

    100px;
    height: 80px;
    margin: 60px 150px;
    font-size: 50px;
    color: white;
    transition: all 1s ease;
    }
    .z1:hover {
    transform: rotate(360deg);
    }
    .z2{
    200px;
    height: 200px;
    margin: 60px 150px;
    font-size: 30px;
    color: white;
    }

    .wei{
    270px;
    height: 60px;
    margin: 60px auto;
    background: black url("../ima/003.png") no-repeat;
    transition: all 1s ease;
    }
    .wei:hover{
    background: black url("../ima/001.png") no-repeat;
    }
    .tu{
    60%;
    margin: 20px auto;
    transition: all 1s ease;
    }
    .tu:hover{
    transform: skew(-25deg);
    }
    @media screen and (max- 1100px) {
    .zhuo{
    100%;

    margin: 0 auto;
    float: none;
    }
    .you{

    100%;
    margin: 0 auto;
    float: none;
    }
    }



    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="css/style.css">
    <meta name="viewport" content="initial-scale=1, maximum-scale=3, minimum-scale=1, user-scalable=no">
    </head>
    <body>
    <!--布局-->
    <div class="quan">
    <div class="zhuo">
    <!--布局-->
    <div class="tou">BlueAppTemplate</div>
    <div class="z1">OnepageResponsiveHTML5parallax businesslandingpage</div>
    <div class="z2">Loremipsumdolorsitamet,consecteturadipisicingelit.Similiqueautem,
    atqueinvoluptatibusrepellatnostrumiustoarchitectovelplaceat
    numquamomnisassumenda.</div>
    <div class="wei"></div>
    <!--布局-->
    </div>
    <!--布局-->
    <div class="you">
    <div class="tu"><img src="ima/phone.png"></div>
    </div>
    </div>
    </body>
    </html>


  • 相关阅读:
    [zz]Ubuntu源签名错误/Ubuntu 更新源签名错误 –BADSIG 40976EAF437D05B5
    [zz]GNU C __attribute__ 机制简介
    [zz]为小米创建虚拟机路由器
    liburcu 库
    多代理集群调度:可伸缩性和灵活性
    automake的使用速查
    automake之简单的例子
    ajax原生
    Cookie 和Session 的原理
    路径问题
  • 原文地址:https://www.cnblogs.com/yangzhewoaini/p/7639534.html
Copyright © 2011-2022 走看看