前端跳槽面试(慕课网笔记)
来源:互联网 发布:网络管理 编辑:程序博客网 时间:2024/05/17 09:00
一面二面
页面布局
https://zhuanlan.zhihu.com/p/25070186?refer=learncoding
- 浮动(margin负值)双飞翼
- 变形,圣杯
- 绝对定位
- 流式布局(浮动)
- BFC
- BFC 区域,不会与浮动元素重叠。
- Flex 布局
- Table 布局
- Grid布局
- http://www.w3cplus.com/css/learncssgrid.html
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Document</title> <style type="text/css"> *{ padding: 0; margin:0; } .layout article div{ min-height: 100px; text-align: center; } </style></head><body> <section class="layout float"> <style meida="screen"> .layout.float .left{ float: left; width:300px; background-color: #5F5F5F; } .layout.float .right{ float: right; width:300px; background-color: #5F5F5F; } .layout.float .center{ background-color: #E0E0E0; } </style> <article class="left-right-center"> <div class="left"></div> <div class="right"></div> <div class="center"> <h1>浮动解决:脱离文档流,兼容比较好,增加高度溢出,无法使用</h1> </div> </article> </section> <section class="layout absolute"> <style type="text/css"> .layout.absolute .left-center-right>div{ position: absolute; } .layout.absolute .left{ left:0; width: 300px; background-color: #FFC3C3; } .layout.absolute .center{ left:300px; right: 300px; background-color: yellow; } .layout.absolute .right{ right: 0px; width: 300px; background-color: #A8F2E2; } </style> <article class="left-center-right"> <div class="left"></div> <div class="center">绝对定位,下面的元素都要脱离文档流,超出</div> <div class="right"></div> </article> </section> <section class="layout flexbox"> <style type="text/css"> .layout.flexbox{ margin-top: 100px; } .layout.flexbox .left-center-right{ display: flex; } .layout.flexbox .left{ width:300px; background-color: #A2EFAA; } .layout.flexbox .center{ flex: 1; background-color: #F8E0A1; } .layout.flexbox .right{ width:300px; background-color: #A2EFAA; } </style> <article class="left-center-right"> <div class="left"></div> <div class="center">flex</div> <div class="right"></div> </article> </section> <section class="layout table"> <style type="text/css"> .layout.table .left-center-right{ width: 100%; display: table; height: 100px; } .layout.table .left-center-right>div{ display: table-cell; } .layout.table .left{ width: 300px; background-color: red; } .layout.table .center{ background-color: blue; } .layout.table .right{ width: 300px; background-color: yellow; } </style> <article class="left-center-right"> <div class="left"></div> <div class="center">表格:需要同时增高</div> <div class="right"></div> </article> </section> <section class="layout grid"> <style type="text/css"> .layout.grid .left-center-right{ display: grid; width: 100%; grid-template-rows:100px; grid-template-columns:300px auto 300px; } .layout.grid .left{ background-color: yellow; } .layout.grid .right{ background-color:blue ; } .layout.grid .center{ background-color: red; } </style> <article class="left-center-right"> <div class="left"></div> <div class="center">网格布局,超出高度无法使用</div> <div class="right"></div> </article> </section></body></html>
延伸:方法的缺点,优点,兼容性,比较,考虑纵向(flex,table支持高度),实用性,为什么
CSS盒模型
谈谈你对CSS盒模型的认识
基本概念:标准模型+IE模型
深入理解BFC
DOM事件
事件分为三个阶段: 事件捕获 –> 事件目标 –> 事件冒泡
http://www.cnblogs.com/zhangmingze/p/4864367.html
阅读全文
0 0
- 前端跳槽面试(慕课网笔记)
- 前端跳槽面试必备
- 前端跳槽面试必备技巧
- 前端面试笔记(七)
- 前端面试笔记
- 前端面试基础笔记
- 前端面试笔记
- 2014的跳槽面试系列(一)
- 前端朋友跳槽必读(前端知识大杂烩)
- 跳槽面试总结
- 前端面试(六)
- 前端面试(简答)
- 前端面试(代码)
- 前端面试(一)
- 前端面试(二)
- 奋斗不止 自强不息:职场话题之跳槽(三)—跳槽中的面试
- 前端面试学习笔记之HTML
- 面试故事:思维也“跳槽”
- mysql ON DUPLICATE KEY UPDATE
- Lock的使用---ReentrantLock
- Eclipse反向编译插件安装
- Android性能优化工具方法总结
- python编码问题
- 前端跳槽面试(慕课网笔记)
- oracle之存储过程,临时表,游标示例
- 尤肖虎,中国3G、4G掌门人
- 数组中的逆序对
- JAVA 字节流和字符流度读写的区别
- 侧滑点击事件
- 笔迹
- sql之left join、right join、inner join的区别
- 【leetcode】查找插入位置(二分)