アプリ版:「スタンプのみでお礼する」機能のリリースについて

PC用のサイトをhtml5(wordpress)で作成しました。
ドコモのXperia acro SO-02Cでサイト見ると、画面に収まりきっておらず
横スクロールをするか縮小しないと画面上に収まりません。

調べると、viewportのmetaタグが必要な様で、headタグを下記のように
してスマホで確認したのですが何も変わっていません。

PCサイトの横幅は960pxで組んでおりリキッドレイアウトではありません。

いくつかのサイトを見てみましたが、スマホ用のサイトとして作成しないPC用の
サイトは画面上に収まった状態で表示され必要であれば自分で拡大して表示
するという感じでした。

※同様にリキッドレイアウトではなくxhtmlで作成されておりviewportのmetaタグもありませんでした。

<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="<?php bloginfo('charset'); ?>">
<title><?php wp_title('', true, ''); ?></title>
<meta name="viewport" content="width=device-width, target-densitydpi=device-dpi, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5. …[endif]-->
<script src="<?php bloginfo('template_directory'); ?>/js/jquery.rollover.js"></script>
<link rel="profile" href="http://gmpg.org/xfn/11">
<link rel="stylesheet" href="<?php bloginfo( 'stylesheet_url' ); ?>">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<link rel="icon" href="<?php bloginfo('template_directory'); ?>/images/common/favicon.ico" type="image/x-icon">
<link rel="Shortcut Icon" href="<?php bloginfo('template_directory'); ?>/images/common/favicon.ico" type="image/x-icon">
<?php wp_head(); ?>
</head>

どうすれば、スマホで開いた際の初期状態を画面に収まるようにできますか?

A 回答 (1件)

<meta name="viewport" content="width=960px, (以下略)



でどうでしょうか。

何も指定しないほうが安定する事もあります。
    • good
    • 0

お探しのQ&Aが見つからない時は、教えて!gooで質問しましょう!