BootWiki教程网
源代码:
点击运行
<!DOCTYPE html> <html> <head> <title>BootWiki 教程网</title> <meta charset="utf-8" content="width=device-width, initial-scale=1" name="viewport"> <link href="//cdn.staticfile.net/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"> <script src="//cdn.staticfile.net/jquery/2.1.1/jquery.min.js"></script> <script src="//cdn.staticfile.net/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>
运行结果