Blogger Information
Blog 8
fans 0
comment 0
visits 4941
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
前端基础之iframe与css基础(1210)
择善而从
Original
533 people have browsed it

前端基础之iframe与css基础(1210)

1. 用iframe写一个简单的小后台

  • 简单后台由头部标题、侧边菜单、内容主体(iframe内联框架)组成。
    1. <body>
    2. <div class="header">欢迎来到后台管理系统</div>
    3. <div class="aside">
    4. <a href="../1208/1.html" target="content">网站信息</a>
    5. <a href="../1209/demo.html" target="content">分栏管理</a>
    6. <a href="../1209/demo1.html" target="content">界面管理</a>
    7. <a href="../1209/demo2.html" target="content">分类管理</a>
    8. <a href="../1210/demo1.html" target="content">文章管理</a>
    9. <a href="../1210/demo2.html" target="content">用户管理</a>
    10. </div>
    11. <div class="main">
    12. <iframe srcdoc="请点击左侧按钮" name="content"></iframe>
    13. </div>
    14. </body>

    2.理解css优先级,并实例图示演示元素样式的四个来源

  • 从选择器的角度看,id选择器(#) > 类选择器(.) > 元素选择器(标签),没有特别指定时,优先级大的样式会覆盖优先级低的;特殊情况可用!important提升优先级;
  • 元素样式的四个来源,分别是行内样式(写在标签style属性上)、自定义样式、用户代理样式、继承样式。
    元素样式的来源
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