Blogger Information
Blog 5
fans 0
comment 1
visits 2812
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
7月5日作业
A5首席的博客
Original
525 people have browsed it

实例

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>帅帅帅帅帅</title>
</head>
<body>

<style>
    .box1 {
        width: 200px;
    <!--height: 200px;
    background-color: #ff3f82;
    <!--text-align: center;
    }
    .box1 a {-->
    <!--line-height: 200px;
    }
</style>
<div class="box1">
    <a href="">我真帅</a>
</div>
<hr>

<style>
    .box2 {
        width: 200px;
        height: 200px;
        background-color: #ff3f82;
        text-align: center;
        display: table-cell;
        vertical-align: middle;
    }
</style>
<div class="box2">
    <span>我真帅</span> <br>
    <span>www.shuai.com</span>
</div>
<hr>

<style>
    .box3 {
        width: 200px;
        height: 200px;
        background-color: #1923ee;
        display: table-cell;
        vertical-align: middle; /
    }
    .box3 .child {
        width: 100px;
        height: 100px;
        background-color: #f00208;
        margin: auto;
    }
</style>
<div class="box3">
    <div class="child"></div>
</div>
<hr>

<style>
    .box4 {
        width: 200px;
        height: 200px;
        background-color: #57e1e6;
        text-align: center;
        display: table-cell;
        vertical-align: bottom;

    }
    ul {
        margin: 0;
        padding-left: 0;
    }
    .box4 li {
        display: inline;
    }

    .box5 {
        width: 50px;
        height: 50px;
        background-color: lightcoral;
        position: absolute;
        top: 130px;
        left: 440px;
    }
    .box6 {
        width: 50px;
        height: 50px;
        background-color: lightgrey;
        position: absolute;
        top: 80px;
        left: 490px;

    }
    .box11{
        position: fixed;
        bottom: 0;
        right: 0;
        height: 300px;
        width: 300px;
    }
    .close {
        position: absolute;
        right: 300px;
        top: 2000px;
    }
</style>

<div class="box4">
    <ul>
        <li><a href="">我</a></li>
        <li><a href="">真</a></li>
        <li><a href="">的</a></li>
        <li><a href="">好</a></li>
        <li><a href="">帅</a></li>
    </ul>


</div>

<hr>

<div class="box">
    <div class="box5"></div>
    <div class="box6"></div>
</div>

<div class="box11">
    <a href="http://baidu.com"><img src="https://pic.qqtn.com/up/2019-7/2019070609555916230.jpg" alt="美女"></a>
    <span class="close">X</span>

</div>

</body>
</html>

运行实例 »

点击 "运行实例" 按钮查看在线实例


Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post