Blogger Information
Blog 29
fans 0
comment 0
visits 18409
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
css-20201215(内联框架标签工作原理与css入门优先级)
CC
Original
542 people have browsed it

html5-03

01内联框架标签工作原理

  • target= name(a herf标签的target属性等于iframe标签的name属性发生交互)
    1. <!DOCTYPE html>
    2. <html lang="en">
    3. <head>
    4. <meta charset="UTF-8">
    5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
    6. <title>内联框架标签工作原理</title>
    7. <style>
    8. iframe {
    9. width: 30em;
    10. height: 16em;
    11. }
    12. </style>
    13. </head>
    14. <body>
    15. <a href="https://j.map.baidu.com/86/VpE", target="yangj">阳江地图</a>
    16. <iframe src="" name = "yangj"></iframe>
    17. </body>
    18. </html>
  • iframe做迷你小后台
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>内联框架标签工作原理</title>
  7. <style>
  8. iframe {
  9. width: 30em;
  10. height: 16em;
  11. }
  12. div {
  13. display: grid;
  14. }
  15. </style>
  16. </head>
  17. <body>
  18. <!-- 标题 -->
  19. <div class="header">网站管理后台</div>
  20. <!-- 侧边栏 -->
  21. <a href="https://docs.qq.com/desktop/mydoc/folder/1IYzC_100000" target="content">实务</a>
  22. <a href="https://docs.qq.com/desktop/mydoc/folder/1IYzC_100000" target="content">体验馆</a>
  23. <div>
  24. <div class='mian'></div>
  25. <iframe srcdoc="请点击右侧按钮" name="content"></iframe>
  26. </div>
  27. </body>
  28. </html>

css01入门

术语:选择器、规则、属性和值声明块
选择器:h1,id,class,style等
声明块:{、、、}
属性和值:键值对,color:blue
规则:选择器+声明块
外部写法:<link rel="stylesheet" href="001.css">推荐多使用,养成习惯

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>Document</title>
  7. </head>
  8. <style>
  9. h1 {
  10. color: #007aff;
  11. font-weight: 200;
  12. }
  13. </style>
  14. <body>
  15. <header class="page-header"></header>
  16. <h1 id="page-title" class="title">web</h1>
  17. </body>
  18. </html>

css优先级与基础语法
01优先级
1.标签选择器(h1)
2.属性选择器(class、id)
3.id>class>tag
02基础语法
1.css中的class写可以#,id可以写成.
2.*代表所有

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>Document</title>
  7. </head>
  8. <style>
  9. h1 {
  10. color: #007aff;
  11. }
  12. .title {
  13. color: #ff1700;
  14. }
  15. #page-title {
  16. color: #cb954f;
  17. }
  18. </style>
  19. <body>
  20. <h1 id="page-title" class="title">哈哈</h1>
  21. </body>
  22. </html>
Correcting teacher:天蓬老师天蓬老师

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