[英]Responsive not working on iPhone, width too long using Media 320px doesn't work
[英]Responsive design up to 320px?
我不知道為什么我的自適應設計不能在最大寬度為320px的尺寸下工作。 我正在嘗試在Chrome中為iPad使用不同的尺寸,並且可以正常使用,但對於iPhone卻出了問題。 我的代碼如下:
<link rel="stylesheet" type="text/css" href="css/styles.css" />
<link rel="stylesheet" type="text/css" href="css/iPhonePortrait.css" media="only screen and (max-width : 320px) and (orientation : portrait)" />
<link rel="stylesheet" type="text/css" href="css/iPadLandscape.css" media="only screen and (max-width : 1024px) and (orientation : landscape)" />
<link rel="stylesheet" type="text/css" href="css/iPadPortrait.css" media="only screen and (max-width : 768px) and (orientation : portrait)" />
瀏覽器已更新,知道嗎?
您需要此作為您的元標記<meta name="viewport" content="width=device-width,initial-scale=1.0">
。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.