Blogger Information
Blog 25
fans 0
comment 0
visits 10623
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
em,rem与vw的运用
PHui
Original
683 people have browsed it

1. em与rem的区别

rem单位转为像素值,由html元素的字体大小决定的。

em单位转为像素值,取决于他们使用的字体大小。

2. em与rem的特点

使用rem单位的主要目的应该是确保无论用户如何设置自己的浏览器,我们的布局都能调整到合适大小。

使用em单位的主要目的追求字体大小的可维护性和伸缩性时。

3. vw设计课程表

  1. <style>
  2. table{
  3. width: 75vw;
  4. margin: auto;
  5. text-align: center;
  6. border-collapse: collapse;
  7. }
  8. table td,
  9. table th{
  10. border: 1px solid #000;
  11. }
  12. table thead{
  13. background-color: lightblue ;
  14. }
  15. table tbody:not(tbody:nth-of-type(2)) tr:first-of-type td:first-of-type{
  16. background-color: rgb(193, 242, 193);
  17. }
  18. table tfoot{
  19. background-color: lightblue;
  20. }
  21. </style>

Correcting teacher:PHPzPHPz

Correction status:qualified

Teacher's comments:完成的很好,总结的也不错,继续加油
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post