Css 长URL不';不要停留在引导列中
我正在开发一个带有引导网格的WordPress主题,我在mobile view中看到了一个问题。所有内容都固定在Bootstrap列中,但references部分中的一些链接不会停留在该列中,会弄乱我的网格并创建一个水平滚动条: 我什么都试过了,什么都没用,我需要帮助 下面是来自Css 长URL不';不要停留在引导列中,css,wordpress,twitter-bootstrap,Css,Wordpress,Twitter Bootstrap,我正在开发一个带有引导网格的WordPress主题,我在mobile view中看到了一个问题。所有内容都固定在Bootstrap列中,但references部分中的一些链接不会停留在该列中,会弄乱我的网格并创建一个水平滚动条: 我什么都试过了,什么都没用,我需要帮助 下面是来自single.php的代码: <div class="c-content-box c-size-md" style="margin-top:4%;"> <div class="container"&
single.php
的代码:
<div class="c-content-box c-size-md" style="margin-top:4%;">
<div class="container">
<div class="row">
<div class="c-content-blog-post-card-1-grid">
<div class="row">
<div class="col-md-12">
<div class="col-md-8 wow animate fadeInLeft">
<div class="c-media 2 img">
<div class="c-overlay-wrapper">
<div class="c-overlay-content">
<?php the_post_thumbnail( '', array( 'style' => 'max-width:100%; height:auto;' ) ); ?>
</div>
</div>
</div>
<?php
while ( have_posts() ) : the_post();
get_template_part( 'template-parts/content', get_post_format() );
?>
<div class="col-md-12 c-margin-b-60">
<?php
the_post_navigation( array(
'prev_text' => '<button type="button" class="col-md-5 col-md-offset-1 col-xs-6 btn btn-md c-btn-red c-btn-square ">Post Anterior</button>',
'next_text' => '<button type="button" class="col-md-5 col-md-offset-1 col-xs-6 btn btn-md c-btn-red c-btn-square ">Próximo Post</button>',
));
?>
</div>
<?php
echo '<div class="col-md-12 c-margin-t-20">';
// If comments are open or we have at least one comment, load up the comment template.
if ( comments_open() || get_comments_number() ) :
comments_template();
endif;
endwhile; // End of the loop.
echo '</div>'
?>
</div>
<div class="col-md-4 ">
<div class="col-md-12 wow animate fadeInRight" >
<?php get_sidebar(); ?>
</div>
</div>
</main><!-- #main -->
</div><!-- #primary -->
</div>
</div>
</div>
</div>
</div>
您需要在文本中添加一些CSS
div{
宽度:100px;
边框:1px纯黑;
保证金:5px;
}
.包裹{
单词包装:打断单词;
}
https://stackoverflow.com/questions/45800283/content-posts-doesnt-stay-inside-the-bootstrap-cols
https://stackoverflow.com/questions/45800283/content-posts-doesnt-stay-inside-the-bootstrap-cols
code-only答案不鼓励使用。请包括您的答案如何解决问题的摘要,以及为什么它可能比提供的其他答案更可取。
.dont-break-out {
overflow-wrap: break-word;
word-wrap: break-word;
-ms-word-break: break-all;
word-break: break-all;
word-break: break-word;
-ms-hyphens: auto;
-moz-hyphens: auto;
-webkit-hyphens: auto;
hyphens: auto;
}