I would like to set a fixed for mobile devices at 320 pixels - I would like my site to always look the same as on a screen for 320 pixels .
I tried to set a fixed width to 320 pixels, for example:
@media (max-width: 320px) { body { width: 320px; } }
But this code does not work. Is there any way to do this?
You can use the meta tag in your html.
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=320, height=device-height, target-densitydpi=medium-dpi" />
Source: https://habr.com/ru/post/1469082/More articles:Using a 64-bit DLL in a 32-bit application - c #First is the EF code. Model compatibility cannot be verified because the database does not contain model metadata - migrationsmtpClient does not read Web.config - c #Runtime data source reassignment - delphiCould not open h2.jar on mac - javacan I determine the minimum pixel width at which bootstrap should switch to a flexible mobile version? - cssAzure WebRole pre-compilation on Visual Studio 2012 publishes (not via WebDeploy) - asp.netcan i debug other apps in iphone jailbreak using gdb in xcode? remote debugging? - iosIs there a way to create a high-level language interpreter implemented in hardware? - compiler-constructionSorry, we are unable to access the page you requested:https://fooobar.com/questions/1469087/index.htmlAll Articles
https://fooobar.com/questions/1469087/index.html