Each small problem summary

Some small problems covered up, there someday if you forgot to save

1. Percentage / rem adapt layout, unified in their own words, a relatively large difference different phone

  Set different fonts in different phones like

{HTML 
  font - size: 16px;   
} 
@media and Screen (max -height: 359px) {     // small screen mobile 
  HTML { 
     font - size: 12px; 
  }   
}

 

Guess you like

Origin www.cnblogs.com/Idlerblogs/p/12484953.html