当前位置:网站首页>Interview review nth time
Interview review nth time
2022-07-19 06:11:00 【Culvert.】
1 Html5 New characteristics
- Semantic tags :footer、nav、aside、header
- New multimedia tags :<audio>、<video>
- canvas( canvas )、Geolocation( Geographical location )
- input New properties for tags :placeholder、autocomplete、autofocus、requierd
2 ES6 New characteristics
- Extension operator
- Block level scope
- promise Asynchronous operations
- Arrow function
- set and map
- Template string
- Deconstruction expression
3 HTML The rendering process of the page
- Browser parsing HTML label , establish DOM Trees
- Browser parsing CSS style , establish CSSOM Trees
- from DOM Trees and CSSOM Trees make up rendering trees , It and DOM Trees are like , however DOM One to one correspondence between tree and label , The rendering tree ignores elements that do not need rendering
- Once the rendering tree is created , The browser renders the page to the screen according to the rendering tree
Repaint : When the style of an element changes , Redrawing will occur , Redrawing does not necessarily rearrange
rearrangement : The change of element style causes the change of page layout , Rearrangement will occur
How to reduce redrawing and rearrangement ?
- Merge the attributes of multiple style changes into one operation
- If you need to perform complex operations on an element , Then you can set it first
display:none, Finally, setdisplay:blockLet it show , This will only trigger two rearrangements - Elements that require multiple rearrangements , It can be separated from the document flow , Setting the
position:fixed or absolute
4 BFC What is it? ?
BFC Format context for block level , It is a separate rendering area , The elements in the area will not interact with the external elements
How to form BFC?
- float Exist and not be none
- overflow Exist and not be visible
- display by inline-block、block、flex
- position by absolute or fixed
characteristic :
- Elements inside the container do not affect the outside
- The boxes are arranged vertically , The vertical spacing is determined by margin decision
- The outer margin of adjacent block level boxes is folded
- BFC The area can recognize floating elements , When calculating the height of its area , Floating elements also participate in the calculation
5 Horizontal and vertical center style
(1) Unknown width and height element div{
position:absolute;
left:50%;
top:50%;
transform:translate(-50%,-50%);
}
(2)flex Layout ( Parent element Settings ) div{
display:flex;
justify-content:center;
align-items:center;
}
(3)grid Layout ( Parent element Settings ) div{
display:grid;
place-items:center; //justify-content and align-items Co writing of
}
6 CSS The weight
- id Selectors
- Attribute selector 、 Class selectors 、 Pseudo class selector
- tag chooser 、 Pseudo element selector
Inline styles and !import With a higher weight
7 + and ~ What's the difference
+ Match the nearest sibling element
~ All sibling elements after matching
8 new What does the operator do

9 Handwriting new The operator

10 What's the difference between arrow function and ordinary function
边栏推荐
- Complete scheme diagram of lth7 five pin chip fs4054 charging circuit principle
- 2021-09-15
- Make config analysis of configuration commands before uboot compilation
- 你的企业最适合哪种深度学习?
- [simple and fast] after startup, the desktop is normal, and the taskbar below is unresponsive / the mouse keeps turning
- 2022/07/12 学习笔记 (day05)循环
- Qtss callback routine
- 【力扣】环形链表 II
- Baby Ehab Partitions Again(dp,构造,位运算)
- vscode 使用技巧1
猜你喜欢

【力扣】另一棵树的子树

3.7V lithium battery boost to 5v1a, fs2114 boost conversion chip design layout

4-channel encoder pulse counter, 8-Channel do, Modbus TCP module

RestAPI实现自动补全 & 案例实现(搜索框输入进行自动补全)

ES聚合分析报错:“reason“ : “Text fields are not optimised for operations

浅谈跨域的几种解决方案

简单Chrome脚本 自动跳过b站视频播放结束后的的充电鸣谢页面

Fs5383a lithium battery 3.7V input power supply solar lawn lamp drive IC

有线电视网(树上分组)

你的企业最适合哪种深度学习?
随机推荐
Unity2d learning Fox game production process 1: basic game character control, animation effects, lens control, item collection, bug optimization
BusyBox 1.21.1 有udpsvd功能 可以编译成功 不干涉本机busybox方法
5-17陕西科技大学的隐藏学生服务
DSL实现自动补全查询
busybox date 时间的加减
Knapsack with dependency, narrow sense (binary enumeration), broad sense (tree DP)
Boost dc/dc converter
[usaco06dec]the fewest coins g (hybrid backpack)
Make config analysis of configuration commands before uboot compilation
Low power LDO linear regulator IC
mapping索引属性 & 创建索的操作
Digital signal isolation module adum1401arwz yadeno in stock
MySQL workbench basically uses [create a database]
2022/07/12 学习笔记 (day05)JS内置函数
QT creator flashback solution
vscode one dark和c扩展变量颜色冲突 设置settings.json如下即可
2022/07/12 学习笔记 (day05)循环
2022/07/09 第五小组 丁帅 学习笔记 day02
Ehab the xorcist (XOR property, construction)
Acwing第57场周赛(AK)