D
D
Dauren S2015-12-05 09:04:25
HTML
Dauren S, 2015-12-05 09:04:25

Can html recognize the device?

Can html itself recognize the device, i.e. I need to make a mobile version, through bootstrap, if I do that, I have to edit and disable too much, it's easier to re-write the html structure for a mobile device. That is, I don’t need to cut or customize something in css, I need to change the html itself for the mobile version, but without a redirect to some m.sait.ru

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexander Zubarev, 2015-12-05
@dauren101

HTML cannot, it is necessary to determine the device on the server side and connect the template necessary for it. Google towards RESS.

E
Evgeny Bukharev, 2015-12-05
@evgenybuckharev

Use media queries in css, and write properties in css for the required screen width

B
bro-dev, 2015-12-05
@xPomaHx

Javascript determine the width of the viewport and load the desired page.
Or even stupidly in html srzau 4 pages, and through css you determine which one to display.
It would seem that in the second case, you will have to load 4 times more in size, but in reality it turns out that this option is faster than a Java script and only loads something specifically.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question