zoukankan      html  css  js  c++  java
  • 吴裕雄 Bootstrap 前端框架开发——Bootstrap 排版:设定文本对齐,段落中超出屏幕部分文字自动换行

    <!DOCTYPE html>
    <html>
        <head>
            <title>菜鸟教程(runoob.com)</title> 
            <meta name="viewport" content="width=device-width, initial-scale=1" charset="utf-8">
            <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">  
            <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
            <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
        </head>
        <body>
    
            <div class="container">
                <h2>排版</h2>
                <p class="text-left">左对齐文本</p>
                <p class="text-right">右对齐文本</p>      
                <p class="text-center">居中对齐文本</p>
                <p class="text-justify">对齐文本。该段落会根据屏幕的大小对超出屏幕的文字进行换行</p>      
                <p class="text-nowrap">该段落不会根据屏幕的大小对超出屏幕的文字进行换行。</p>
                <p><strong>提示:</strong> 尝试重置浏览器大写查看 “text-justify” 和 “text-nowrap” 段落的效果。</p>      
            </div>
    
        </body>
    </html>

  • 相关阅读:
    拉格朗日插值
    文档 所有空格变为Tab
    windows 计算器
    map 结构体
    插入图片 图片地址
    扩展中国剩余定理
    欧拉定理、欧拉函数、a/b%c
    hdu1033Defragment
    Minimum Inversion Number_线段树||树状数组
    hdu1166敌兵布阵_线段树单点更新
  • 原文地址:https://www.cnblogs.com/tszr/p/10888223.html
Copyright © 2011-2022 走看看