移动设备中的2个页面的宽度不是100%,你可以在这里看到它.
我已经加入了<meta name="viewport" content="width=device-width" />我的代码,我尝试了各种各样的变体.问题可能在我的pages.php文件中,因为其余页面是自定义模板?
这是我的page.php的代码:
<?php
/**
* The template for displaying all pages.
*
* This is the template that displays all pages by default.
* Please note that this is the WordPress construct of pages
* and that other 'pages' on your WordPress site will use a
* different template.
*
*/
get_header(); ?>
<div id="primary" class="content-area">
<div id="content" class="site-content" role="main">
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( …Run Code Online (Sandbox Code Playgroud)