当前位置:网站首页>How rem is used
How rem is used
2022-07-05 03:28:00 【Lao Zhang typed the code online】
rem What is it? ?
rem Is the unit of font size relative to the root element
In the daily development process, we usually put the root element (html/body) The font of is set to 10px, Convenient for us to calculate ( At this point, the of the child element 1rem Equivalent to 10px)
rem And em The difference between , Advantages and disadvantages of each ?
em Sub element font size of em Is the font size relative to the parent element
rem Is based on the font size of the root element
em Different elements have different references ( Are all the parent elements of this element ), So it's inconvenient to calculate , by comparison rem There is only one reference (html Elements ), This makes the calculation clearer .
边栏推荐
- 040. (2.9) relieved
- The latest blind box mall, which has been repaired very popular these days, has complete open source operation source code
- Learning notes of raspberry pie 4B - IO communication (I2C)
- ICSI213/IECE213 Data Structures
- C file in keil cannot be compiled
- Performance of calling delegates vs methods
- 2.常见的请求方法
- Kbp206-asemi rectifier bridge kbp206
- Azkaban installation and deployment
- Dart series: collection of best practices
猜你喜欢
Machine learning experiment report 1 - linear model, decision tree, neural network part
Utilisation simple de devtools
Subversive cognition: what does SRE do?
2021 Li Hongyi machine learning (3): what if neural network training fails
College Students' innovation project management system
Zero foundation uses paddlepaddle to build lenet-5 network
Share the newly released web application development framework based on blazor Technology
Azkaban actual combat
Azkaban概述
Bumblebee: build, deliver, and run ebpf programs smoothly like silk
随机推荐
Pat grade a 1119 pre- and post order traversals (30 points)
英语必备词汇3400
Daily question 2 12
Simple use of devtools
The latest blind box mall, which has been repaired very popular these days, has complete open source operation source code
Six stone programming: advantages of automated testing
[Yu Yue education] National Open University autumn 2018 8109-22t (1) monetary and banking reference questions
VM in-depth learning (XXV) -class file overview
Usage scenarios and solutions of ledger sharing
Accuracy problem and solution of BigDecimal
Why do some programmers change careers before they are 30?
Azkaban overview
Anchor free series network yolox source code line by line explanation Part 2 (a total of 10, ensure to explain line by line, after reading, you can change the network at will, not just as a participan
1.五层网络模型
[system security] ten thousand words summary system virtualization container bottom layer principle experiment
SFTP cannot connect to the server # yyds dry goods inventory #
单项框 复选框
v-if VS v-show 2.0
Design and practice of kubernetes cluster and application monitoring scheme
Azkaban actual combat