Reputation: 3
I add a media query to my html file
<link type="text/css" rel="stylesheet" href="xxx-mobile.css" media="screen and (max-device-width:360px)">
then I adjust the width to find the point the css will have effect.
The browsers I tested in my mobile are:
Results are as follows:
I want to know chrome whether specify mobile max-device-width or not and standard of the max-device-width sepecified.
Upvotes: 0
Views: 1600
Reputation: 350
Firefox provide it you can use
max-width: -moz-available;
Upvotes: 0
Reputation: 3
I thought either chrome or android webkit browser make something wrong, but now I think they both are right. They all do well, the difference they presented is because device-width is deprecated(https://developer.mozilla.org/en-US/docs/Web/CSS/@media/device-width ).So device-width is the device actual width, and because it is deprecated,it will be treated as width(viewport width) which is not actual device width.
Upvotes: 0