常见写法:


 

六、使用media实现响应式布局

下面总结常见的响应式布局的分类:


@media screen and (max-width:320px){ 
  #talkFooter .editArea{…… }
}
@media screen and (min-width:321px) and (max-width:375px){ 
    #talkFooter .editArea{…… }
}
@media screen and (min-width:376px) and (max-width:414px){
 #talkFooter .editArea{…… }
}   
@media screen and (min-width:415px) and (max-width:639px){
 #talkFooter .editArea{……}
}  
@media screen and (min-width:640px) and (max-width:719px){
 #talkFooter .editArea{……}
}   
@media screen and (min-width:720px) and (max-width:749px){
 #talkFooter .editArea{……}
}   
@media screen and (min-width:750px) and (max-width:799px){
 #talkFooter .editArea{……}
}   
@media screen(min-width:800px){}

 

相关文章:

  • 2022-01-05
  • 2022-12-23
  • 2022-12-23
  • 2021-06-20
  • 2022-12-23
  • 2021-07-23
猜你喜欢
  • 2021-11-17
  • 2022-01-06
  • 2022-12-23
  • 2021-05-27
  • 2022-12-23
  • 2021-04-15
  • 2022-12-23
相关资源
相似解决方案