ipad とモバイルで 100% を作成するには、次の 2 つのことが必要です。
<meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=0,minimum-scale=1.0,maximum-scale=1.0">
• 100% 表示の問題が発生した後は、満足しています。たとえば、コンテンツの幅は 100% ですが、ナビゲーション、スライダー、脇は XXEM の幅です。
ipad/mobile などで幅 100% で表示するには、新しい css を追加する必要があります。例 :
/* iPads (landscape) ----------- */
@media only screen
and (min-device-width : 768px)
and (max-device-width : 1024px)
and (orientation : landscape) {
/* Styles */
nav[role="navigation"] {width: 100%;}
}
/* iPads (portrait) ----------- */
@media only screen
and (min-device-width : 768px)
and (max-device-width : 1024px)
and (orientation : portrait) {
/* Styles */
nav[role="navigation"] {width: 100%;}
}
/* iPhone 4 ----------- */
@media
only screen and (-webkit-min-device-pixel-ratio : 1.5),
only screen and (min-device-pixel-ratio : 1.5) {
/* Styles */
nav[role="navigation"] {width: 100%;}
}