Blogger Information
Blog 9
fans 1
comment 0
visits 9154
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
内联框架和html5标签
jiangxiaobai
Original
1314 people have browsed it

iframe标签案例

实例

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>内联框架标签</title>
</head>
<body>
    <h3>看片平台</h3>
    <ul style="float: left">
        <li><a href="https://www.iqiyi.com/" target="main">爱奇艺</a></li>
        <li><a href="https://www.youku.com/" target="main">优酷</a></li>
        <li><a href="http://www.baofeng.com/" target="main">暴风</a></li>
        <li><a href="https://v.qq.com/" target="main">腾讯视频</a></li>

    </ul>
<iframe  srcdoc="测试" name="main" width="300px" height="500"></iframe>
</body>
</html>

运行实例 »

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

css优先级demo

实例

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" href="style/style.css">
    <title>Title</title>
    <style>
      /*内联样式*/
        span{
            color: red;
        }
    </style>
</head>
<body>
<h1>css优先级设置</h1>
<span style="color: blue;">html小白成功之路</span>
</body>
</html>

运行实例 »

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

实例

span{
    color: green;
}

运行实例 »

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

css选择器的使用案例

实例

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>css选择器的使用</title>
    <style>
        p {
            color: red;
        }

        .test{
            color: blue;
        }
        #main{
            color: green;
        }
    </style>
</head>
<body>
<p id="main" class="test">id选择器的优先级是除了js之外最高的</p>
<p>class选择高于标签选择器</p>
<p>标签选择器的级别是最低的</p>
</body>
</html>

运行实例 »

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

盒子模型

实例

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>盒子模型</title>
    <style>
        .box{
            width: 300px;
            height: 300px;
            background-color: red;
            padding: 30px 30px;

        }
        .box2{
            height: inherit;
            background-color: blue;
        }
    </style>
</head>
<body>
<div class="box">
    <div class="box2"></div>
</div>
</body>
</html>

运行实例 »

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


Correction status:qualified

Teacher's comments:并非所有网站都允许在iframe标签中打开, 你试过了, 有的是打不开的
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!