Blogger Information
Blog 27
fans 0
comment 0
visits 43530
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
内联框架以及盒模型的基础使用_201909032239
xingzhi的博客
Original
646 people have browsed it

内联框架以及盒模型的基础使用

实例

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>内联框架以及盒模型的基础使用</title>
</head>
<style>
    * {
        margin: 0;
        padding: 0;
    }
    
    .box {
        width: 300px;
        margin: 0 auto;
    }
    
    .box1 {
        width: 300px;
        background: #bfbcb9;
        padding: 50px 100px;
        margin: 50px auto;
        border: 1px solid #000;
    }
    
    .box1 a {
        line-height: 100px;
        display: block;
        background: #6a6a6a;
        text-align: center;
        border: 22px solid #949494;
    }
</style>

<body>
    <h2>内联框架iframe的使用演示</h2>
    <!-- 
            内联框架,在当前页面中加载另一个页面
            src="" 打开的地址
            frameborder 规定是否显示框架周围的边框 
        -->
    <iframe src="https://www.baidu.com/" frameborder="0"></iframe>

    <a href="https://www.baidu.com/" target="baidu">点击后再内联框架中显示</a>
    <iframe frameborder="0" name='baidu'></iframe>

    <h2>盒模型</h2>
    <div class="box1">
        <a href="">内容</a>
    </div>

</body>

</html>

运行实例 »

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


Correction status:qualified

Teacher's comments:总结的不是很到位
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