このウェブサイトは販売用です! html5-css3.jp は、あなたがお探しの情報の全ての最新かつ最適なソースです。一般トピックからここから検索できる内容は、html5-css3.jpが全てとなります。あなたがお探しの内容が見つかることを願っています!
2011年02月11日 Permalink Comments(0) TrackBack(0) web関係 PC 携帯 スマートフォン 同じアドレスで振り分け! ホームページで 同じアドレスで PC・携帯スマートフォンで見せるページを変える為には、どうすればいいのか? 携帯への振り分けは知ってました。 .htaccess が使えるサーバーですが、 RewriteEngine On RewriteCond %{HTTP_USER_AGENT} ^(DoCoMo|KDDI|DDIPOCKET|UP\.Browser|J-PHONE|Vodafone|SoftBank) RewriteRule ^$ /mobile/ [R] を追加するだけで、PCと携帯を振り分けてくれるんですね。 スマートフォンなどの場合は???? .htaccess で いろいろやってみたが、うまくいかない・・・。 JavaS
スマートフォンは、PC用に作られたウェブサイトでも表示できます。しかし画面サイズが小さいため、そのままの状態では読みにくい可能性があります。その場合の対策としては、 レスポンシブWebデザインを採用する スマートフォン専用サイトを作る などの方法があります。 ■更新や管理が楽なのはレスポンシブWebデザインだが…… 更新や管理の労力を考えれば、レスポンシブWebデザインを採用する方が楽でお勧めです。その方が、同じ情報を掲載したページを複数用意する必要がありませんし、新しい端末が登場しても(おそらくは)何もせずに対処可能ですから。 (参考) ブラウザの幅に合わせて表示を自動変更するレスポンシブ技12選 しかし、既存のPC用サイトがレスポンシブ化しにくいデザインな場合や、スマートフォンの特性を活かしたウェブサイトを用意したい場合では、PC版サイトとスマートフォン版サイトを分離する方が望ましいこ
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く