当前位置:网站首页>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 .
边栏推荐
- How can we truncate the float64 type to a specific precision- How can we truncate float64 type to a particular precision?
- Sqoop installation
- Anchor free series network yolox source code line by line explanation four (a total of ten, ensure line by line explanation, after reading, you can change the network at will, not just as a participan
- Huawei MPLS experiment
- Apache Web page security optimization
- Design and implementation of community hospital information system
- FBO and RBO disappeared in webgpu
- Kubernetes -- cluster expansion principle
- Jd.com 2: how to prevent oversold in the deduction process of commodity inventory?
- Six stone programming: advantages of automated testing
猜你喜欢
Talk about the SQL server version of DTM sub transaction barrier function
Jd.com 2: how to prevent oversold in the deduction process of commodity inventory?
Devtools的簡單使用
Subversive cognition: what does SRE do?
Basic knowledge of tuples
IPv6 experiment
Flume配置4——自定义MYSQLSource
SQL injection exercise -- sqli Labs
The perfect car for successful people: BMW X7! Superior performance, excellent comfort and safety
Ubantu disk expansion (VMware)
随机推荐
Acwing game 58 [End]
Use of kubesphere configuration set (configmap)
The perfect car for successful people: BMW X7! Superior performance, excellent comfort and safety
[groovy] loop control (number injection function implements loop | times function | upto function | downto function | step function | closure can be written outside as the final parameter)
Pytest (4) - test case execution sequence
College Students' innovation project management system
Asp+access campus network goods trading platform
el-select,el-option下拉选择框
VM in-depth learning (XXV) -class file overview
Azkaban actual combat
qrcode:将文本生成二维码
Technology sharing swift defense programming
問下,這個ADB mysql支持sqlserver嗎?
Sqoop command
Vb+access hotel service management system
How to learn to get the embedding matrix e # yyds dry goods inventory #
[105] Baidu brain map - Online mind mapping tool
Anchor free series network yolox source code line by line explanation four (a total of ten, ensure line by line explanation, after reading, you can change the network at will, not just as a participan
Huawei MPLS experiment
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