dougu3290 2014-10-14 23:53
浏览 39

单行文本而不是换行

I don't understand why my text is on a single line instead of wrapping inside the container.

Example

My theme is based on foundation 5 and I didn't write any css line for my texts. That's the code I wrote now:

<?php
/*
Template Name: Blog Page
*/

get_header();
?>

<?php
$args = array('post_per_page' => 10);
$posts = get_posts( $args );
?>
<div class="row">
    <div class="small-12 medium-3 columns">
        <?php dynamic_sidebar( 'left-blog-sidebar' ); ?>
    </div>
    <div class="small-12 medium-6 columns">
        <?php
         foreach($posts as $post):
             setup_postdata( $post ); ?>
             <article post-id="<?php the_ID(); ?>">
                <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
                <hr />
                 <p><?php the_excerpt(); ?></p>
             </article>
         <?php

         endforeach;
         wp_reset_postdata();
        ?>
    </div>
    <div class="small-12 medium-3 columns">
        <?php dynamic_sidebar( 'right-blog-sidebar' ); ?>
    </div>
</div>
<div class="row">
    <?php
        get_footer();
    ?>
</div>

link to page: tinyurl.com/ttttt6577

Any ideas? Thanks a lot.

  • 写回答

4条回答 默认 最新

  • drwdvftp423507 2014-10-15 00:06
    关注

    I think you must consider this idea.

    1.) Be sure that the parent element has a width lesser than the window screen width. 2.) Be sure that the text you have added in not continous, I mean the words are separated with space.

    评论

报告相同问题?

悬赏问题

  • ¥15 基于卷积神经网络的声纹识别
  • ¥15 Python中的request,如何使用ssr节点,通过代理requests网页。本人在泰国,需要用大陆ip才能玩网页游戏,合法合规。
  • ¥100 为什么这个恒流源电路不能恒流?
  • ¥15 有偿求跨组件数据流路径图
  • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
  • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
  • ¥15 CSAPPattacklab
  • ¥15 一直显示正在等待HID—ISP
  • ¥15 Python turtle 画图
  • ¥15 stm32开发clion时遇到的编译问题