current position:Home>How to realize that the opening of a website computer is one interface and the opening of a mobile phone is another interface, similar to self adaptation?

How to realize that the opening of a website computer is one interface and the opening of a mobile phone is another interface, similar to self adaptation?

2022-02-02 18:18:23 CSDN Q & A

How to open a website computer is an interface , Opening the phone is another interface , Similar to adaptive ?




Refer to the answer 1:

by the way , What you're talking about is adaptation ;
The other is based on the browser type , Jump to different pages , And the content are the same , Different pages with completely different layouts




Refer to the answer 2:



Refer to the answer 3:

Use css Media query in , Use a set of styles to determine how many pixels are larger than the screen , Use another style when the screen pixels are less than how many
https://www.runoob.com/cssref/css3-pr-mediaquery.html




Refer to the answer 4:



Refer to the answer 5:

General front-end libraries now have this function , It's called adaptive , The layout is determined according to the type of browser




Refer to the answer 6:



Refer to the answer 7:

That depends on your specific needs yes A set of code Or two sets . A set of Namely The adaptive . Two sets You can Judge equipment Information .window There are . according to This Jump to different Address




Refer to the answer 8:

copyright notice
author[CSDN Q & A],Please bring the original link to reprint, thank you.
https://en.primo.wiki/2022/02/202202021818217036.html

Random recommended