Responsive processing of CSS

Recently, I want to make a responsive layout on a web page. It can be achieved through js, but the effect is not very good. It must be refreshed to change. After querying a wave of data, I found the following method. Write a responsive style directly through CSS, which can overwrite the original The style, set what style to display when the screen size is, no need to refresh the response page, record it here.

@media(max-width: 320px) {
    
    
    /*  你的css代码  */
  }

Guess you like

Origin blog.csdn.net/qq_43511063/article/details/109155267