引导文本来自跨度

时间:2012-11-01 00:31:10

标签: twitter-bootstrap

我正在使用bootstrap css文件。我有以下代码用于我的网站的描述区域,基本上我希望我的段落在div类中称为well,但是对于一些段而言,该段一直很好地走出了类;这是代码     

   <!--left col-->
       <div class="span8" style="background-color:black;">
    <img src="Hydrangeas.jpg">
        <div class="well" style="color:black;">  
        <p>Description of The Person in theren llllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
        kljjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj jkhl kjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
        skdfkljsdklfjkllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
        skdlfjkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkpacking meeee<p>
    </p>
</div>  

我基本上想保持paragarph留在谢谢你

1 个答案:

答案 0 :(得分:7)

由于该文本是一个非常长的单词,您需要添加CSS以告知浏览器将其包装。

word-wrap: break-word;

您发布的HTML也可能无效。您在第一段结尾处有另一个开始<p>标记,并且您正在关闭'井'但从不'span8'。