当前位置:网站首页>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 .
边栏推荐
- Watch the online press conference of tdengine community heroes and listen to TD hero talk about the legend of developers
- SFTP cannot connect to the server # yyds dry goods inventory #
- Huawei MPLS experiment
- This + closure + scope interview question
- Yyds dry goods inventory intelligent fan based on CC2530 design
- Use UDP to send a JPEG image, and UPD will convert it into the mat format of OpenCV after receiving it
- 问下,这个ADB mysql支持sqlserver吗?
- Bumblebee: build, deliver, and run ebpf programs smoothly like silk
- Tiny series rendering tutorial
- Six stone programming: advantages of automated testing
猜你喜欢

el-select,el-option下拉选择框

Idea inheritance relationship

Tiny series rendering tutorial

Pat class a 1160 forever (class B 1104 forever)

Why are there fewer and fewer good products produced by big Internet companies such as Tencent and Alibaba?

Learning notes of raspberry pie 4B - IO communication (I2C)

Design and implementation of community hospital information system

Kbp206-asemi rectifier bridge kbp206

2. Common request methods

Flume configuration 4 - customize mysqlsource
随机推荐
Apache Web page security optimization
Is there any way to change the height of the uinavigationbar in the storyboard without using the UINavigationController?
Performance of calling delegates vs methods
[groovy] string (string type variable definition | character type variable definition)
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
Azkaban actual combat
Kubernetes - Multi cluster management
問下,這個ADB mysql支持sqlserver嗎?
Talk about the SQL server version of DTM sub transaction barrier function
Design and implementation of kindergarten management system
Blue Bridge Cup single chip microcomputer -- PWM pulse width modulation
Apache build web host
腾讯云,实现图片上传
The perfect car for successful people: BMW X7! Superior performance, excellent comfort and safety
In MySQL Association query, the foreign key is null. What if the data cannot be found?
Bumblebee: build, deliver, and run ebpf programs smoothly like silk
Ubantu disk expansion (VMware)
Pat class a 1160 forever (class B 1104 forever)
端口,域名,协议。
[2022 repair version] community scanning code into group activity code to drain the complete operation source code / connect the contract free payment interface / promote the normal binding of subordi