{"id":155,"date":"2020-12-27T11:16:02","date_gmt":"2020-12-27T05:16:02","guid":{"rendered":"http:\/\/www.dreamflier.net\/wordpress\/?p=155"},"modified":"2020-12-27T11:16:02","modified_gmt":"2020-12-27T05:16:02","slug":"bootstrap%e6%a1%86%e6%9e%b6%e7%9a%84%e5%9f%ba%e6%9c%ac%e4%bd%bf%e7%94%a8","status":"publish","type":"post","link":"http:\/\/www.jichangqing.net\/wordpress\/?p=155","title":{"rendered":"Bootstrap\u6846\u67b6\u7684\u57fa\u672c\u4f7f\u7528"},"content":{"rendered":"<h1 style=\"font-weight: bold;\">Bootstrap\u662f\u4ec0\u4e48<\/h1>\n<h2 style=\"font-weight: bold;\"><strong>\u7b80\u4ecb<\/strong><\/h2>\n<p>\u5c31\u662f\u5df2\u7ecf\u5199\u597d\u7684\u4e00\u4e2ahtml\u548ccss\u7684\u6837\u5f0f\u7ec4\u5408<\/p>\n<blockquote style=\"color: #555555;\">\n<p style=\"color: #777777;\">Bootstrap\u662fTwitter\u5f00\u6e90\u7684\u57fa\u4e8eHTML\u3001CSS\u3001JavaScript\u7684\u524d\u7aef\u6846\u67b6\u3002<\/p>\n<p style=\"color: #777777;\">\u5b83\u662f\u4e3a\u5b9e\u73b0\u5feb\u901f\u5f00\u53d1Web\u5e94\u7528\u7a0b\u5e8f\u800c\u8bbe\u8ba1\u7684\u4e00\u5957\u524d\u7aef\u5de5\u5177\u5305\u3002<\/p>\n<p style=\"color: #777777;\">\u5b83\u652f\u6301\u54cd\u5e94\u5f0f\u5e03\u5c40\uff0c\u5e76\u4e14\u5728V3\u7248\u672c\u4e4b\u540e\u575a\u6301\u79fb\u52a8\u8bbe\u5907\u4f18\u5148\u3002<\/p>\n<\/blockquote>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/img2018.cnblogs.com\/blog\/1421239\/201810\/1421239-20181023172425095-73599361.png\" alt=\"\" width=\"587\" height=\"156\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><strong>\u4f18\u52bf<\/strong><\/p>\n<p>\u5728Bootstrap\u51fa\u73b0\u4e4b\u524d\uff1a<\/p>\n<p>\u547d\u540d\uff1a\u91cd\u590d\u3001\u590d\u6742\u3001\u65e0\u610f\u4e49\uff08\u60f3\u4e2a\u540d\u5b57\u8d39\u52b2\uff09<\/p>\n<p>\u6837\u5f0f\uff1a\u91cd\u590d\u3001\u5197\u4f59\u3001\u4e0d\u89c4\u8303\u3001\u4e0d\u548c\u8c10<\/p>\n<p>\u9875\u9762\uff1a\u9519\u4e71\u3001\u4e0d\u89c4\u8303\u3001\u4e0d\u548c\u8c10<\/p>\n<p>\u5728\u4f7f\u7528Bootstrap\u4e4b\u540e\uff1a \u5404\u79cd\u547d\u540d\u90fd\u7edf\u4e00\u5e76\u4e14\u89c4\u8303\u5316\u3002 \u9875\u9762\u98ce\u683c\u7edf\u4e00\uff0c\u753b\u9762\u548c\u8c10\u3002<\/p>\n<h2 style=\"font-weight: bold;\"><strong>\u521d\u6b21\u4f7f\u7528<\/strong><\/h2>\n<p>\u4e0b\u8f7d :\u00a0<a style=\"color: #000000;\" href=\"http:\/\/www.bootcss.com\/\" target=\"_blank\">http:\/\/www.bootcss.com\/<\/a><\/p>\n<p>\u6211\u4eec\u4f7f\u7528V3\u7248\u672c\u7684Bootstrap\uff0c\u6211\u4eec\u4e0b\u8f7d\u7684\u662f\u7528\u4e8e\u751f\u4ea7\u73af\u5883\u7684Bootstrap<\/p>\n<p>\u5b98\u65b9\u6587\u6863 :\u00a0<a style=\"color: #000000;\" href=\"https:\/\/v3.bootcss.com\/\" target=\"_blank\">https:\/\/v3.bootcss.com\/<\/a><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/img2018.cnblogs.com\/blog\/1421239\/201810\/1421239-20181023161027451-1426526278.png\" alt=\"\" width=\"606\" height=\"75\" \/><\/p>\n<p>\u5b98\u65b9\u6587\u6863\u91cc\u8fb9\u6709\u8be6\u7ec6\u7684\u4f7f\u7528\u65b9\u6cd5<\/p>\n<p>&nbsp;<\/p>\n<p><strong>\u5f15\u7528:<\/strong><\/p>\n<p><strong>\u901a\u8fc7\u7f51\u7edc\u5f15\u7528:<\/strong><\/p>\n<p>\u5177\u4f53\u7f51\u5740\u53ef\u4ee5\u5728\u5b98\u65b9\u6587\u6863\u91cc\u67e5\u770b<\/p>\n<div class=\"cnblogs_code\" style=\"color: #000000;\">\n<pre>    <span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">link <\/span><span style=\"color: #ff0000;\">rel<\/span><span style=\"color: #0000ff;\">=\"stylesheet\"<\/span><span style=\"color: #ff0000;\"> href<\/span><span style=\"color: #0000ff;\">=\"https:\/\/cdn.jsdelivr.net\/npm\/bootstrap@3.3.7\/dist\/css\/bootstrap.min.css\"<\/span><span style=\"color: #ff0000;\"> integrity<\/span><span style=\"color: #0000ff;\">=\"sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz\/K68vbdEjh4u\"<\/span><span style=\"color: #ff0000;\"> crossorigin<\/span><span style=\"color: #0000ff;\">=\"anonymous\"<\/span><span style=\"color: #0000ff;\">&gt;<\/span><\/pre>\n<\/div>\n<p><strong>\u672c\u5730\u5f15\u7528<\/strong><\/p>\n<p>\u5177\u4f53\u8def\u5f84\u89c6\u60c5\u51b5\u800c\u5b9a<\/p>\n<div class=\"cnblogs_code\" style=\"color: #000000;\">\n<pre>    <span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">link <\/span><span style=\"color: #ff0000;\">rel<\/span><span style=\"color: #0000ff;\">=\"stylesheet\"<\/span><span style=\"color: #ff0000;\"> href<\/span><span style=\"color: #0000ff;\">=\"bootstrap-3.3.7\/css\/bootstrap.css\"<\/span><span style=\"color: #0000ff;\">&gt;<\/span><\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h2 style=\"font-weight: bold;\">\u00a0\u76ee\u5f55\u7ed3\u6784<\/h2>\n<p>\u5904\u7406\u4f9d\u8d56:<\/p>\n<p>\u7531\u4e8eBootstrap\u7684\u67d0\u4e9b\u7ec4\u4ef6\u4f9d\u8d56\u4e8ejQuery\uff0c\u6240\u4ee5\u9700\u8981\u4e0b\u8f7d\u5bf9\u5e94\u7248\u672c\u7684jQuery\u6587\u4ef6\uff0c\u6765\u4fdd\u8bc1Bootstrap\u76f8\u5173\u7ec4\u4ef6\u8fd0\u884c\u6b63\u5e38\u3002<\/p>\n<div class=\"cnblogs_code\" style=\"color: #000000;\">\n<div class=\"cnblogs_code_toolbar\"><span class=\"cnblogs_code_copy\"><a style=\"color: #000000;\" title=\"\u590d\u5236\u4ee3\u7801\"><img decoding=\"async\" src=\"https:\/\/common.cnblogs.com\/images\/copycode.gif\" alt=\"\u590d\u5236\u4ee3\u7801\" \/><\/a><\/span><\/div>\n<pre>bootstrap-<span style=\"color: #800080;\">3.3<\/span>.<span style=\"color: #800080;\">7<\/span>-dist\/<span style=\"color: #000000;\">\r\n\u251c\u2500\u2500 css  <\/span><span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\"> CSS\u6587\u4ef6<\/span>\r\n\u2502   \u251c\u2500\u2500 bootstrap-theme.css  <span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\"> Bootstrap\u4e3b\u9898\u6837\u5f0f\u6587\u4ef6<\/span>\r\n\u2502   \u251c\u2500\u2500 bootstrap-<span style=\"color: #000000;\">theme.css.map\r\n\u2502   \u251c\u2500\u2500 bootstrap<\/span>-theme.min.css  <span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\"> \u4e3b\u9898\u76f8\u5173\u6837\u5f0f\u538b\u7f29\u6587\u4ef6<\/span>\r\n\u2502   \u251c\u2500\u2500 bootstrap-<span style=\"color: #000000;\">theme.min.css.map\r\n\u2502   \u251c\u2500\u2500 bootstrap.css\r\n\u2502   \u251c\u2500\u2500 bootstrap.css.map\r\n\u2502   \u251c\u2500\u2500 bootstrap.min.css  <\/span><span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\"> \u6838\u5fc3CSS\u6837\u5f0f\u538b\u7f29\u6587\u4ef6<\/span>\r\n<span style=\"color: #000000;\">\u2502   \u2514\u2500\u2500 bootstrap.min.css.map\r\n\u251c\u2500\u2500 fonts  <\/span><span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\"> \u5b57\u4f53\u6587\u4ef6<\/span>\r\n\u2502   \u251c\u2500\u2500 glyphicons-halflings-<span style=\"color: #000000;\">regular.eot\r\n\u2502   \u251c\u2500\u2500 glyphicons<\/span>-halflings-<span style=\"color: #000000;\">regular.svg\r\n\u2502   \u251c\u2500\u2500 glyphicons<\/span>-halflings-<span style=\"color: #000000;\">regular.ttf\r\n\u2502   \u251c\u2500\u2500 glyphicons<\/span>-halflings-<span style=\"color: #000000;\">regular.woff\r\n\u2502   \u2514\u2500\u2500 glyphicons<\/span>-halflings-<span style=\"color: #000000;\">regular.woff2\r\n\u2514\u2500\u2500 js  <\/span><span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\"> JS\u6587\u4ef6<\/span>\r\n<span style=\"color: #000000;\">    \u251c\u2500\u2500 bootstrap.js\r\n    \u251c\u2500\u2500 bootstrap.min.js  <\/span><span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\"> \u6838\u5fc3JS\u538b\u7f29\u6587\u4ef6<\/span>\r\n    \u2514\u2500\u2500 npm.js<\/pre>\n<div class=\"cnblogs_code_toolbar\"><span class=\"cnblogs_code_copy\"><a style=\"color: #000000;\" title=\"\u590d\u5236\u4ee3\u7801\"><img decoding=\"async\" src=\"https:\/\/common.cnblogs.com\/images\/copycode.gif\" alt=\"\u590d\u5236\u4ee3\u7801\" \/><\/a><\/span><\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h2 id=\"overview-mobile\" style=\"font-weight: bold;\">\u79fb\u52a8\u8bbe\u5907\u4f18\u5148<\/h2>\n<p>\u5728 Bootstrap 2 \u4e2d\uff0c\u6211\u4eec\u5bf9\u6846\u67b6\u4e2d\u7684\u67d0\u4e9b\u5173\u952e\u90e8\u5206\u589e\u52a0\u4e86\u5bf9\u79fb\u52a8\u8bbe\u5907\u53cb\u597d\u7684\u6837\u5f0f\u3002\u800c\u5728 Bootstrap 3 \u4e2d\uff0c\u6211\u4eec\u91cd\u5199\u4e86\u6574\u4e2a\u6846\u67b6\uff0c\u4f7f\u5176\u4e00\u5f00\u59cb\u5c31\u662f\u5bf9\u79fb\u52a8\u8bbe\u5907\u53cb\u597d\u7684\u3002\u8fd9\u6b21\u4e0d\u662f\u7b80\u5355\u7684\u589e\u52a0\u4e00\u4e9b\u53ef\u9009\u7684\u9488\u5bf9\u79fb\u52a8\u8bbe\u5907\u7684\u6837\u5f0f\uff0c\u800c\u662f\u76f4\u63a5\u878d\u5408\u8fdb\u4e86\u6846\u67b6\u7684\u5185\u6838\u4e2d\u3002\u4e5f\u5c31\u662f\u8bf4\uff0cBootstrap \u662f\u79fb\u52a8\u8bbe\u5907\u4f18\u5148\u7684\u3002\u9488\u5bf9\u79fb\u52a8\u8bbe\u5907\u7684\u6837\u5f0f\u878d\u5408\u8fdb\u4e86\u6846\u67b6\u7684\u6bcf\u4e2a\u89d2\u843d\uff0c\u800c\u4e0d\u662f\u589e\u52a0\u4e00\u4e2a\u989d\u5916\u7684\u6587\u4ef6\u3002<\/p>\n<p>\u4e3a\u4e86\u786e\u4fdd\u9002\u5f53\u7684\u7ed8\u5236\u548c\u89e6\u5c4f\u7f29\u653e\uff0c\u9700\u8981\u5728\u00a0<code>&lt;head&gt;<\/code>\u00a0\u4e4b\u4e2d\u6dfb\u52a0 viewport \u5143\u6570\u636e\u6807\u7b7e\u3002<\/p>\n<div class=\"cnblogs_code\" style=\"color: #000000;\">\n<pre><span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">meta <\/span><span style=\"color: #ff0000;\">name<\/span><span style=\"color: #0000ff;\">=\"viewport\"<\/span><span style=\"color: #ff0000;\"> content<\/span><span style=\"color: #0000ff;\">=\"width=device-width, initial-scale=1\"<\/span><span style=\"color: #0000ff;\">&gt;<\/span><\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n<p>\u5728\u79fb\u52a8\u8bbe\u5907\u6d4f\u89c8\u5668\u4e0a\uff0c\u901a\u8fc7\u4e3a\u89c6\u53e3\uff08viewport\uff09\u8bbe\u7f6e meta \u5c5e\u6027\u4e3a\u00a0<code>user-scalable=no<\/code>\u00a0\u53ef\u4ee5\u7981\u7528\u5176\u7f29\u653e\uff08zooming\uff09\u529f\u80fd\u3002\u8fd9\u6837\u7981\u7528\u7f29\u653e\u529f\u80fd\u540e\uff0c\u7528\u6237\u53ea\u80fd\u6eda\u52a8\u5c4f\u5e55\uff0c\u5c31\u80fd\u8ba9\u4f60\u7684\u7f51\u7ad9\u770b\u4e0a\u53bb\u66f4\u50cf\u539f\u751f\u5e94\u7528\u7684\u611f\u89c9\u3002\u6ce8\u610f\uff0c\u8fd9\u79cd\u65b9\u5f0f\u6211\u4eec\u5e76\u4e0d\u63a8\u8350\u6240\u6709\u7f51\u7ad9\u4f7f\u7528\uff0c\u8fd8\u662f\u8981\u770b\u4f60\u81ea\u5df1\u7684\u60c5\u51b5\u800c\u5b9a\uff01<\/p>\n<div class=\"zero-clipboard\">\n<div class=\"cnblogs_code\" style=\"color: #000000;\">\n<pre><span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">meta <\/span><span style=\"color: #ff0000;\">name<\/span><span style=\"color: #0000ff;\">=\"viewport\"<\/span><span style=\"color: #ff0000;\"> content<\/span><span style=\"color: #0000ff;\">=\"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no\"<\/span><span style=\"color: #0000ff;\">&gt;<\/span>\r\n<\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n<\/div>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h1 id=\"overview-container\" style=\"font-weight: bold;\">\u5e03\u5c40\u5bb9\u5668<\/h1>\n<p>&nbsp;<\/p>\n<p>Bootstrap \u9700\u8981\u4e3a\u9875\u9762\u5185\u5bb9\u548c\u6805\u683c\u7cfb\u7edf\u5305\u88f9\u4e00\u4e2a\u00a0<code>.container<\/code>\u00a0\u5bb9\u5668\u3002\u6211\u4eec\u63d0\u4f9b\u4e86\u4e24\u4e2a\u4f5c\u6b64\u7528\u5904\u7684\u7c7b\u3002\u6ce8\u610f\uff0c\u7531\u4e8e\u00a0<code>padding<\/code>\u00a0\u7b49\u5c5e\u6027\u7684\u539f\u56e0\uff0c\u8fd9\u4e24\u79cd \u5bb9\u5668\u7c7b\u4e0d\u80fd\u4e92\u76f8\u5d4c\u5957\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img2018.cnblogs.com\/blog\/1421239\/201810\/1421239-20181023171517761-1578362105.png\" alt=\"\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><code>.container<\/code>\u00a0\u7c7b\u7528\u4e8e\u56fa\u5b9a\u5bbd\u5ea6\u5e76\u652f\u6301\u54cd\u5e94\u5f0f\u5e03\u5c40\u7684\u5bb9\u5668\u3002<\/p>\n<div class=\"cnblogs_code\" style=\"color: #000000;\">\n<pre><span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">div <\/span><span style=\"color: #ff0000;\">class<\/span><span style=\"color: #0000ff;\">=\"container\"<\/span><span style=\"color: #0000ff;\">&gt;<\/span><span style=\"color: #000000;\">\r\n  ...\r\n<\/span><span style=\"color: #0000ff;\">&lt;\/<\/span><span style=\"color: #800000;\">div<\/span><span style=\"color: #0000ff;\">&gt;<\/span><\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n<p><code>.container-fluid<\/code>\u00a0\u7c7b\u7528\u4e8e 100% \u5bbd\u5ea6\uff0c\u5360\u636e\u5168\u90e8\u89c6\u53e3\uff08viewport\uff09\u7684\u5bb9\u5668\u3002<\/p>\n<div class=\"cnblogs_code\" style=\"color: #000000;\">\n<pre><span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">div <\/span><span style=\"color: #ff0000;\">class<\/span><span style=\"color: #0000ff;\">=\"container-fluid\"<\/span><span style=\"color: #0000ff;\">&gt;<\/span><span style=\"color: #000000;\">\r\n  ...\r\n<\/span><span style=\"color: #0000ff;\">&lt;\/<\/span><span style=\"color: #800000;\">div<\/span><span style=\"color: #0000ff;\">&gt;<\/span><\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n<h1 style=\"font-weight: bold;\">\u00a0\u6805\u683c\u7cfb\u7edf<\/h1>\n<blockquote style=\"color: #555555;\">\n<h2 id=\"grid-intro\" style=\"font-weight: bold;\">\u7b80\u4ecb<\/h2>\n<p style=\"color: #777777;\">\u6805\u683c\u7cfb\u7edf\u7528\u4e8e\u901a\u8fc7\u4e00\u7cfb\u5217\u7684\u884c\uff08row\uff09\u4e0e\u5217\uff08column\uff09\u7684\u7ec4\u5408\u6765\u521b\u5efa\u9875\u9762\u5e03\u5c40\uff0c\u4f60\u7684\u5185\u5bb9\u5c31\u53ef\u4ee5\u653e\u5165\u8fd9\u4e9b\u521b\u5efa\u597d\u7684\u5e03\u5c40\u4e2d\u3002\u4e0b\u9762\u5c31\u4ecb\u7ecd\u4e00\u4e0b Bootstrap \u6805\u683c\u7cfb\u7edf\u7684\u5de5\u4f5c\u539f\u7406\uff1a<\/p>\n<ul>\n<li>\u201c\u884c\uff08row\uff09\u201d\u5fc5\u987b\u5305\u542b\u5728\u00a0<code>.container<\/code>\u00a0\uff08\u56fa\u5b9a\u5bbd\u5ea6\uff09\u6216\u00a0<code>.container-fluid<\/code>\u00a0\uff08100% \u5bbd\u5ea6\uff09\u4e2d\uff0c\u4ee5\u4fbf\u4e3a\u5176\u8d4b\u4e88\u5408\u9002\u7684\u6392\u5217\uff08aligment\uff09\u548c\u5185\u8865\uff08padding\uff09\u3002<\/li>\n<li>\u901a\u8fc7\u201c\u884c\uff08row\uff09\u201d\u5728\u6c34\u5e73\u65b9\u5411\u521b\u5efa\u4e00\u7ec4\u201c\u5217\uff08column\uff09\u201d\u3002<\/li>\n<li>\u4f60\u7684\u5185\u5bb9\u5e94\u5f53\u653e\u7f6e\u4e8e\u201c\u5217\uff08column\uff09\u201d\u5185\uff0c\u5e76\u4e14\uff0c\u53ea\u6709\u201c\u5217\uff08column\uff09\u201d\u53ef\u4ee5\u4f5c\u4e3a\u884c\uff08row\uff09\u201d\u7684\u76f4\u63a5\u5b50\u5143\u7d20\u3002<\/li>\n<li>\u7c7b\u4f3c\u00a0<code>.row<\/code>\u00a0\u548c\u00a0<code>.col-xs-4<\/code>\u00a0\u8fd9\u79cd\u9884\u5b9a\u4e49\u7684\u7c7b\uff0c\u53ef\u4ee5\u7528\u6765\u5feb\u901f\u521b\u5efa\u6805\u683c\u5e03\u5c40\u3002Bootstrap \u6e90\u7801\u4e2d\u5b9a\u4e49\u7684 mixin \u4e5f\u53ef\u4ee5\u7528\u6765\u521b\u5efa\u8bed\u4e49\u5316\u7684\u5e03\u5c40\u3002<\/li>\n<li>\u901a\u8fc7\u4e3a\u201c\u5217\uff08column\uff09\u201d\u8bbe\u7f6e\u00a0<code>padding<\/code>\u00a0\u5c5e\u6027\uff0c\u4ece\u800c\u521b\u5efa\u5217\u4e0e\u5217\u4e4b\u95f4\u7684\u95f4\u9694\uff08gutter\uff09\u3002\u901a\u8fc7\u4e3a\u00a0<code>.row<\/code>\u00a0\u5143\u7d20\u8bbe\u7f6e\u8d1f\u503c\u00a0<code>margin<\/code>\u00a0\u4ece\u800c\u62b5\u6d88\u6389\u4e3a\u00a0<code>.container<\/code>\u00a0\u5143\u7d20\u8bbe\u7f6e\u7684\u00a0<code>padding<\/code>\uff0c\u4e5f\u5c31\u95f4\u63a5\u4e3a\u201c\u884c\uff08row\uff09\u201d\u6240\u5305\u542b\u7684\u201c\u5217\uff08column\uff09\u201d\u62b5\u6d88\u6389\u4e86<code>padding<\/code>\u3002<\/li>\n<li>\u8d1f\u503c\u7684 margin\u5c31\u662f\u4e0b\u9762\u7684\u793a\u4f8b\u4e3a\u4ec0\u4e48\u662f\u5411\u5916\u7a81\u51fa\u7684\u539f\u56e0\u3002\u5728\u6805\u683c\u5217\u4e2d\u7684\u5185\u5bb9\u6392\u6210\u4e00\u884c\u3002<\/li>\n<li>\u6805\u683c\u7cfb\u7edf\u4e2d\u7684\u5217\u662f\u901a\u8fc7\u6307\u5b9a1\u523012\u7684\u503c\u6765\u8868\u793a\u5176\u8de8\u8d8a\u7684\u8303\u56f4\u3002\u4f8b\u5982\uff0c\u4e09\u4e2a\u7b49\u5bbd\u7684\u5217\u53ef\u4ee5\u4f7f\u7528\u4e09\u4e2a\u00a0<code>.col-xs-4<\/code>\u00a0\u6765\u521b\u5efa\u3002<\/li>\n<li>\u5982\u679c\u4e00\u201c\u884c\uff08row\uff09\u201d\u4e2d\u5305\u542b\u4e86\u7684\u201c\u5217\uff08column\uff09\u201d\u5927\u4e8e 12\uff0c\u591a\u4f59\u7684\u201c\u5217\uff08column\uff09\u201d\u6240\u5728\u7684\u5143\u7d20\u5c06\u88ab\u4f5c\u4e3a\u4e00\u4e2a\u6574\u4f53\u53e6\u8d77\u4e00\u884c\u6392\u5217\u3002<\/li>\n<li>\u6805\u683c\u7c7b\u9002\u7528\u4e8e\u4e0e\u5c4f\u5e55\u5bbd\u5ea6\u5927\u4e8e\u6216\u7b49\u4e8e\u5206\u754c\u70b9\u5927\u5c0f\u7684\u8bbe\u5907 \uff0c \u5e76\u4e14\u9488\u5bf9\u5c0f\u5c4f\u5e55\u8bbe\u5907\u8986\u76d6\u6805\u683c\u7c7b\u3002 \u56e0\u6b64\uff0c\u5728\u5143\u7d20\u4e0a\u5e94\u7528\u4efb\u4f55\u00a0<code>.col-md-*<\/code>\u6805\u683c\u7c7b\u9002\u7528\u4e8e\u4e0e\u5c4f\u5e55\u5bbd\u5ea6\u5927\u4e8e\u6216\u7b49\u4e8e\u5206\u754c\u70b9\u5927\u5c0f\u7684\u8bbe\u5907 \uff0c \u5e76\u4e14\u9488\u5bf9\u5c0f\u5c4f\u5e55\u8bbe\u5907\u8986\u76d6\u6805\u683c\u7c7b\u3002 \u56e0\u6b64\uff0c\u5728\u5143\u7d20\u4e0a\u5e94\u7528\u4efb\u4f55\u00a0<code>.col-lg-*<\/code>\u4e0d\u5b58\u5728\uff0c \u4e5f\u5f71\u54cd\u5927\u5c4f\u5e55\u8bbe\u5907\u3002<\/li>\n<\/ul>\n<\/blockquote>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/img2018.cnblogs.com\/blog\/1421239\/201810\/1421239-20181023172419885-1462171439.png\" alt=\"\" width=\"589\" height=\"168\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2 id=\"grid-options\" style=\"font-weight: bold;\">\u6805\u683c\u53c2\u6570<\/h2>\n<p>&nbsp;<\/p>\n<p>\u901a\u8fc7\u4e0b\u8868\u53ef\u4ee5\u8be6\u7ec6\u67e5\u770b Bootstrap \u7684\u6805\u683c\u7cfb\u7edf\u662f\u5982\u4f55\u5728\u591a\u79cd\u5c4f\u5e55\u8bbe\u5907\u4e0a\u5de5\u4f5c\u7684\u3002<\/p>\n<div class=\"table-responsive\">\n<table class=\"table table-bordered table-striped\">\n<thead>\n<tr>\n<th><\/th>\n<th>\u8d85\u5c0f\u5c4f\u5e55\u00a0<small>\u624b\u673a (&lt;768px)<\/small><\/th>\n<th>\u5c0f\u5c4f\u5e55\u00a0<small>\u5e73\u677f (\u2265768px)<\/small><\/th>\n<th>\u4e2d\u7b49\u5c4f\u5e55\u00a0<small>\u684c\u9762\u663e\u793a\u5668 (\u2265992px)<\/small><\/th>\n<th>\u5927\u5c4f\u5e55\u00a0<small>\u5927\u684c\u9762\u663e\u793a\u5668 (\u22651200px)<\/small><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<th class=\"text-nowrap\" scope=\"row\">\u6805\u683c\u7cfb\u7edf\u884c\u4e3a<\/th>\n<td>\u603b\u662f\u6c34\u5e73\u6392\u5217<\/td>\n<td colspan=\"3\">\u5f00\u59cb\u662f\u5806\u53e0\u5728\u4e00\u8d77\u7684\uff0c\u5f53\u5927\u4e8e\u8fd9\u4e9b\u9608\u503c\u65f6\u5c06\u53d8\u4e3a\u6c34\u5e73\u6392\u5217C<\/td>\n<\/tr>\n<tr>\n<th class=\"text-nowrap\" scope=\"row\"><code>.container<\/code>\u00a0\u6700\u5927\u5bbd\u5ea6<\/th>\n<td>None \uff08\u81ea\u52a8\uff09<\/td>\n<td>750px<\/td>\n<td>970px<\/td>\n<td>1170px<\/td>\n<\/tr>\n<tr>\n<th class=\"text-nowrap\" scope=\"row\">\u7c7b\u524d\u7f00<\/th>\n<td><code>.col-xs-<\/code><\/td>\n<td><code>.col-sm-<\/code><\/td>\n<td><code>.col-md-<\/code><\/td>\n<td><code>.col-lg-<\/code><\/td>\n<\/tr>\n<tr>\n<th class=\"text-nowrap\" scope=\"row\">\u5217\uff08column\uff09\u6570<\/th>\n<td colspan=\"4\">12<\/td>\n<\/tr>\n<tr>\n<th class=\"text-nowrap\" scope=\"row\">\u6700\u5927\u5217\uff08column\uff09\u5bbd<\/th>\n<td class=\"text-muted\">\u81ea\u52a8<\/td>\n<td>~62px<\/td>\n<td>~81px<\/td>\n<td>~97px<\/td>\n<\/tr>\n<tr>\n<th class=\"text-nowrap\" scope=\"row\">\u69fd\uff08gutter\uff09\u5bbd<\/th>\n<td colspan=\"4\">30px \uff08\u6bcf\u5217\u5de6\u53f3\u5747\u6709 15px\uff09<\/td>\n<\/tr>\n<tr>\n<th class=\"text-nowrap\" scope=\"row\">\u53ef\u5d4c\u5957<\/th>\n<td colspan=\"4\">\u662f<\/td>\n<\/tr>\n<tr>\n<th class=\"text-nowrap\" scope=\"row\">\u504f\u79fb\uff08Offsets\uff09<\/th>\n<td colspan=\"4\">\u662f<\/td>\n<\/tr>\n<tr>\n<th class=\"text-nowrap\" scope=\"row\">\u5217\u6392\u5e8f<\/th>\n<td colspan=\"4\">\u662f<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>&nbsp;<\/p>\n<h2 id=\"grid-example-basic\" style=\"font-weight: bold;\">\u4ece\u5806\u53e0\u5230\u6c34\u5e73\u6392\u5217<\/h2>\n<p>\u4f7f\u7528\u5355\u4e00\u7684\u4e00\u7ec4\u00a0<code>.col-md-*<\/code>\u00a0\u6805\u683c\u7c7b\uff0c\u5c31\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a\u57fa\u672c\u7684\u6805\u683c\u7cfb\u7edf\uff0c\u5728\u624b\u673a\u548c\u5e73\u677f\u8bbe\u5907\u4e0a\u4e00\u5f00\u59cb\u662f\u5806\u53e0\u5728\u4e00\u8d77\u7684\uff08\u8d85\u5c0f\u5c4f\u5e55\u5230\u5c0f\u5c4f\u5e55\u8fd9\u4e00\u8303\u56f4\uff09\uff0c\u5728\u684c\u9762\uff08\u4e2d\u7b49\uff09\u5c4f\u5e55\u8bbe\u5907\u4e0a\u53d8\u4e3a\u6c34\u5e73\u6392\u5217\u3002<\/p>\n<p><strong>\u6240\u6709\u201c\u5217\uff08column\uff09\u5fc5\u987b\u653e\u5728 \u201d<span style=\"color: #ff6600;\">\u00a0<span style=\"color: #993300;\"><code>.row<\/code><\/span><\/span>\u00a0\u5185\u3002<\/strong><\/p>\n<p><strong>\u5982\u679c\u5728\u4e00\u4e2a\u00a0<code>.row<\/code>\u00a0\u5185\u5305\u542b\u7684\u5217\uff08column\uff09\u5927\u4e8e12\u4e2a\uff0c\u5305\u542b\u591a\u4f59\u5217\uff08column\uff09\u7684\u5143\u7d20\u5c06\u4f5c\u4e3a\u4e00\u4e2a\u6574\u4f53\u5355\u5143\u88ab\u53e6\u8d77\u4e00\u884c\u6392\u5217\u3002<\/strong><\/p>\n<h3 style=\"font-weight: bold;\">\u00a0\u4f7f\u7528\u793a\u4f8b<\/h3>\n<p>&nbsp;<\/p>\n<div class=\"cnblogs_code\" style=\"color: #000000;\">\n<div class=\"cnblogs_code_toolbar\"><span class=\"cnblogs_code_copy\"><a style=\"color: #000000;\" title=\"\u590d\u5236\u4ee3\u7801\"><img decoding=\"async\" src=\"https:\/\/common.cnblogs.com\/images\/copycode.gif\" alt=\"\u590d\u5236\u4ee3\u7801\" \/><\/a><\/span><\/div>\n<pre><span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">div <\/span><span style=\"color: #ff0000;\">class<\/span><span style=\"color: #0000ff;\">=\"container\"<\/span> <span style=\"color: #0000ff;\">&gt;<\/span>  <span style=\"color: #008000;\">&lt;!--<\/span><span style=\"color: #008000;\">\u5b9a\u4e49\u5e03\u5c40\u5bb9\u5668 \u6240\u6709\u4ee3\u7801\u90fd\u5199\u5728\u5bb9\u5668\u91cc <\/span><span style=\"color: #008000;\">--&gt;<\/span>\r\n    <span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">div <\/span><span style=\"color: #ff0000;\">class<\/span><span style=\"color: #0000ff;\">=\"row\"<\/span><span style=\"color: #0000ff;\">&gt;<\/span>  <span style=\"color: #008000;\">&lt;!--<\/span><span style=\"color: #008000;\">\u6c34\u5e73\u6392\u5217 \u4e00\u4e2arow\u5c31\u662f\u4e00\u884c<\/span><span style=\"color: #008000;\">--&gt;<\/span>\r\n        <span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">div <\/span><span style=\"color: #ff0000;\">class<\/span><span style=\"color: #0000ff;\">=\"col-xs-1\"<\/span><span style=\"color: #ff0000;\"> style<\/span><span style=\"color: #0000ff;\">=\"height: 40px; background-color: #5bc0de\"<\/span><span style=\"color: #0000ff;\">&gt;<\/span>1<span style=\"color: #0000ff;\">&lt;\/<\/span><span style=\"color: #800000;\">div<\/span><span style=\"color: #0000ff;\">&gt;<\/span>\r\n        <span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">div <\/span><span style=\"color: #ff0000;\">class<\/span><span style=\"color: #0000ff;\">=\"col-xs-1\"<\/span><span style=\"color: #ff0000;\"> style<\/span><span style=\"color: #0000ff;\">=\"height:40px ;background-color: #c7254e\"<\/span><span style=\"color: #0000ff;\">&gt;<\/span>2<span style=\"color: #0000ff;\">&lt;\/<\/span><span style=\"color: #800000;\">div<\/span><span style=\"color: #0000ff;\">&gt;<\/span>\r\n        <span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">div <\/span><span style=\"color: #ff0000;\">class<\/span><span style=\"color: #0000ff;\">=\"col-xs-1\"<\/span><span style=\"color: #ff0000;\"> style<\/span><span style=\"color: #0000ff;\">=\"height: 40px; background-color: #5bc0de\"<\/span><span style=\"color: #0000ff;\">&gt;<\/span>3<span style=\"color: #0000ff;\">&lt;\/<\/span><span style=\"color: #800000;\">div<\/span><span style=\"color: #0000ff;\">&gt;<\/span>\r\n        <span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">div <\/span><span style=\"color: #ff0000;\">class<\/span><span style=\"color: #0000ff;\">=\"col-xs-1\"<\/span><span style=\"color: #ff0000;\"> style<\/span><span style=\"color: #0000ff;\">=\"height:40px ;background-color: #c7254e\"<\/span><span style=\"color: #0000ff;\">&gt;<\/span>4<span style=\"color: #0000ff;\">&lt;\/<\/span><span style=\"color: #800000;\">div<\/span><span style=\"color: #0000ff;\">&gt;<\/span>\r\n        <span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">div <\/span><span style=\"color: #ff0000;\">class<\/span><span style=\"color: #0000ff;\">=\"col-xs-1\"<\/span><span style=\"color: #ff0000;\"> style<\/span><span style=\"color: #0000ff;\">=\"height: 40px; background-color: #5bc0de\"<\/span><span style=\"color: #0000ff;\">&gt;<\/span>5<span style=\"color: #0000ff;\">&lt;\/<\/span><span style=\"color: #800000;\">div<\/span><span style=\"color: #0000ff;\">&gt;<\/span>\r\n        <span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">div <\/span><span style=\"color: #ff0000;\">class<\/span><span style=\"color: #0000ff;\">=\"col-xs-1\"<\/span><span style=\"color: #ff0000;\"> style<\/span><span style=\"color: #0000ff;\">=\"height:40px ;background-color: #c7254e\"<\/span><span style=\"color: #0000ff;\">&gt;<\/span>6<span style=\"color: #0000ff;\">&lt;\/<\/span><span style=\"color: #800000;\">div<\/span><span style=\"color: #0000ff;\">&gt;<\/span>\r\n        <span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">div <\/span><span style=\"color: #ff0000;\">class<\/span><span style=\"color: #0000ff;\">=\"col-xs-1\"<\/span><span style=\"color: #ff0000;\"> style<\/span><span style=\"color: #0000ff;\">=\"height: 40px; background-color: #5bc0de\"<\/span><span style=\"color: #0000ff;\">&gt;<\/span>7<span style=\"color: #0000ff;\">&lt;\/<\/span><span style=\"color: #800000;\">div<\/span><span style=\"color: #0000ff;\">&gt;<\/span>\r\n        <span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">div <\/span><span style=\"color: #ff0000;\">class<\/span><span style=\"color: #0000ff;\">=\"col-xs-1\"<\/span><span style=\"color: #ff0000;\"> style<\/span><span style=\"color: #0000ff;\">=\"height:40px ;background-color: #c7254e\"<\/span><span style=\"color: #0000ff;\">&gt;<\/span>8<span style=\"color: #0000ff;\">&lt;\/<\/span><span style=\"color: #800000;\">div<\/span><span style=\"color: #0000ff;\">&gt;<\/span>\r\n        <span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">div <\/span><span style=\"color: #ff0000;\">class<\/span><span style=\"color: #0000ff;\">=\"col-xs-1\"<\/span><span style=\"color: #ff0000;\"> style<\/span><span style=\"color: #0000ff;\">=\"height: 40px; background-color: #5bc0de\"<\/span><span style=\"color: #0000ff;\">&gt;<\/span>9<span style=\"color: #0000ff;\">&lt;\/<\/span><span style=\"color: #800000;\">div<\/span><span style=\"color: #0000ff;\">&gt;<\/span>\r\n        <span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">div <\/span><span style=\"color: #ff0000;\">class<\/span><span style=\"color: #0000ff;\">=\"col-xs-1\"<\/span><span style=\"color: #ff0000;\"> style<\/span><span style=\"color: #0000ff;\">=\"height:40px ;background-color: #c7254e\"<\/span><span style=\"color: #0000ff;\">&gt;<\/span>10<span style=\"color: #0000ff;\">&lt;\/<\/span><span style=\"color: #800000;\">div<\/span><span style=\"color: #0000ff;\">&gt;<\/span>\r\n        <span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">div <\/span><span style=\"color: #ff0000;\">class<\/span><span style=\"color: #0000ff;\">=\"col-xs-1\"<\/span><span style=\"color: #ff0000;\"> style<\/span><span style=\"color: #0000ff;\">=\"height: 40px; background-color: #5bc0de\"<\/span><span style=\"color: #0000ff;\">&gt;<\/span>11<span style=\"color: #0000ff;\">&lt;\/<\/span><span style=\"color: #800000;\">div<\/span><span style=\"color: #0000ff;\">&gt;<\/span>\r\n        <span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">div <\/span><span style=\"color: #ff0000;\">class<\/span><span style=\"color: #0000ff;\">=\"col-xs-1\"<\/span><span style=\"color: #ff0000;\"> style<\/span><span style=\"color: #0000ff;\">=\"height:40px ;background-color: #c7254e\"<\/span><span style=\"color: #0000ff;\">&gt;<\/span>12<span style=\"color: #0000ff;\">&lt;\/<\/span><span style=\"color: #800000;\">div<\/span><span style=\"color: #0000ff;\">&gt;<\/span>\r\n    <span style=\"color: #0000ff;\">&lt;\/<\/span><span style=\"color: #800000;\">div<\/span><span style=\"color: #0000ff;\">&gt;<\/span>\r\n<span style=\"color: #0000ff;\">&lt;\/<\/span><span style=\"color: #800000;\">div<\/span><span style=\"color: #0000ff;\">&gt;<\/span><\/pre>\n<div class=\"cnblogs_code_toolbar\"><span class=\"cnblogs_code_copy\"><a style=\"color: #000000;\" title=\"\u590d\u5236\u4ee3\u7801\"><img decoding=\"async\" src=\"https:\/\/common.cnblogs.com\/images\/copycode.gif\" alt=\"\u590d\u5236\u4ee3\u7801\" \/><\/a><\/span><\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h2 id=\"grid-responsive-resets\" style=\"font-weight: bold;\">\u54cd\u5e94\u5f0f\u5217\u91cd\u7f6e<\/h2>\n<p>\u5728\u67d0\u4e9b\u9608\u503c\u65f6\uff0c\u67d0\u4e9b\u5217\u53ef\u80fd\u4f1a\u51fa\u73b0\u6bd4\u522b\u7684\u5217\u9ad8\u7684\u60c5\u51b5\u3002\u4e3a\u4e86\u514b\u670d\u8fd9\u4e00\u95ee\u9898\uff0c\u5efa\u8bae\u8054\u5408\u4f7f\u7528\u00a0<code>.clearfix<\/code>\u00a0\u548c\u00a0<a style=\"color: #000000;\" href=\"https:\/\/v3.bootcss.com\/css\/#responsive-utilities\">\u54cd\u5e94\u5f0f\u5de5\u5177\u7c7b<\/a>\u3002<\/p>\n<div class=\"cnblogs_code\" style=\"color: #000000;\"><img decoding=\"async\" id=\"code_img_closed_c5820a73-e571-40b9-816a-2e204085b40b\" class=\"code_img_closed\" src=\"https:\/\/images.cnblogs.com\/OutliningIndicators\/ContractedBlock.gif\" alt=\"\" \/>\u00a0<span class=\"cnblogs_code_collapse\">View Code<\/span><\/div>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h2 id=\"grid-offsetting\" style=\"font-weight: bold;\">\u5217\u504f\u79fb<\/h2>\n<p>\u4f7f\u7528<strong><span style=\"color: #993300;\">\u00a0<code>.col-md-offset-*<\/code><\/span><\/strong>\u00a0\u7c7b\u53ef\u4ee5\u5c06\u5217\u5411\u53f3\u4fa7\u504f\u79fb\u3002\u8fd9\u4e9b\u7c7b\u5b9e\u9645\u662f\u901a\u8fc7\u4f7f\u7528\u00a0<code>*<\/code>\u00a0\u9009\u62e9\u5668\u4e3a\u5f53\u524d\u5143\u7d20\u589e\u52a0\u4e86\u5de6\u4fa7\u7684\u8fb9\u8ddd\uff08margin\uff09\u3002\u4f8b\u5982\uff0c<code>.col-md-offset-4<\/code>\u00a0\u7c7b\u5c06\u00a0<code>.col-md-4<\/code>\u00a0\u5143\u7d20\u5411\u53f3\u4fa7\u504f\u79fb\u4e864\u4e2a\u5217\uff08column\uff09\u7684\u5bbd\u5ea6\u3002<\/p>\n<p>&nbsp;<\/p>\n<h3 style=\"font-weight: bold;\">\u00a0\u5c45\u4e2d\u793a\u4f8b<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/img2018.cnblogs.com\/blog\/1421239\/201810\/1421239-20181023175537249-589434147.png\" alt=\"\" \/><\/p>\n<p>&nbsp;<\/p>\n<div class=\"cnblogs_code\" style=\"color: #000000;\">\n<pre><span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">div <\/span><span style=\"color: #ff0000;\">class<\/span><span style=\"color: #0000ff;\">=\"row\"<\/span><span style=\"color: #0000ff;\">&gt;<\/span>\r\n    <span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">div <\/span><span style=\"color: #ff0000;\">class<\/span><span style=\"color: #0000ff;\">=\"col-xs-4 col-xs-offset-4\"<\/span><span style=\"color: #ff0000;\"> style<\/span><span style=\"color: #0000ff;\">=\"height: 40px;background-color: #f0ad4e;color: white\"<\/span><span style=\"color: #0000ff;\">&gt;<\/span>\u5c45\u4e2d\u793a\u4f8b<span style=\"color: #0000ff;\">&lt;\/<\/span><span style=\"color: #800000;\">div<\/span><span style=\"color: #0000ff;\">&gt;<\/span>\r\n<span style=\"color: #0000ff;\">&lt;\/<\/span><span style=\"color: #800000;\">div<\/span><span style=\"color: #0000ff;\">&gt;<\/span><\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img2018.cnblogs.com\/blog\/1421239\/201810\/1421239-20181023175545146-1550773440.png\" alt=\"\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h2 id=\"grid-nesting\" style=\"font-weight: bold;\">\u5d4c\u5957\u5217<\/h2>\n<p>\u4e3a\u4e86\u4f7f\u7528\u5185\u7f6e\u7684\u6805\u683c\u7cfb\u7edf\u5c06\u5185\u5bb9\u518d\u6b21\u5d4c\u5957\uff0c\u53ef\u4ee5\u901a\u8fc7\u6dfb\u52a0\u4e00\u4e2a\u65b0\u7684\u00a0<code>.row<\/code>\u00a0\u5143\u7d20\u548c\u4e00\u7cfb\u5217\u00a0<code>.col-sm-*<\/code>\u00a0\u5143\u7d20\u5230\u5df2\u7ecf\u5b58\u5728\u7684\u00a0<code>.col-sm-*<\/code>\u00a0\u5143\u7d20\u5185\u3002\u88ab\u5d4c\u5957\u7684\u884c\uff08row\uff09\u6240\u5305\u542b\u7684\u5217\uff08column\uff09\u7684\u4e2a\u6570\u4e0d\u80fd\u8d85\u8fc712\uff08\u5176\u5b9e\uff0c\u6ca1\u6709\u8981\u6c42\u4f60\u5fc5\u987b\u5360\u6ee112\u5217\uff09\u3002<\/p>\n<p>&nbsp;<\/p>\n<div class=\"cnblogs_code\" style=\"color: #000000;\">\n<div class=\"cnblogs_code_toolbar\"><span class=\"cnblogs_code_copy\"><a style=\"color: #000000;\" title=\"\u590d\u5236\u4ee3\u7801\"><img decoding=\"async\" src=\"https:\/\/common.cnblogs.com\/images\/copycode.gif\" alt=\"\u590d\u5236\u4ee3\u7801\" \/><\/a><\/span><\/div>\n<pre>    <span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">div <\/span><span style=\"color: #ff0000;\">class<\/span><span style=\"color: #0000ff;\">=\"row\"<\/span><span style=\"color: #0000ff;\">&gt;<\/span>\r\n        <span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">div <\/span><span style=\"color: #ff0000;\">class<\/span><span style=\"color: #0000ff;\">=\"col-xs-4 col-xs-offset-4\"<\/span><span style=\"color: #ff0000;\"> style<\/span><span style=\"color: #0000ff;\">=\"height: 40px;background-color: #f0ad4e;color: white\"<\/span><span style=\"color: #0000ff;\">&gt;<\/span>\r\n            <span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">div <\/span><span style=\"color: #ff0000;\">class<\/span><span style=\"color: #0000ff;\">=\"row\"<\/span><span style=\"color: #0000ff;\">&gt;<\/span>\r\n                <span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">div <\/span><span style=\"color: #ff0000;\">class<\/span><span style=\"color: #0000ff;\">=\"col-xs-1\"<\/span><span style=\"color: #ff0000;\"> style<\/span><span style=\"color: #0000ff;\">=\"height: 20px;background-color: #46b8da\"<\/span><span style=\"color: #0000ff;\">&gt;&lt;\/<\/span><span style=\"color: #800000;\">div<\/span><span style=\"color: #0000ff;\">&gt;<\/span>\r\n                <span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">div <\/span><span style=\"color: #ff0000;\">class<\/span><span style=\"color: #0000ff;\">=\"col-xs-1\"<\/span><span style=\"color: #ff0000;\"> style<\/span><span style=\"color: #0000ff;\">=\"height: 20px;background-color: #66fda6\"<\/span><span style=\"color: #0000ff;\">&gt;&lt;\/<\/span><span style=\"color: #800000;\">div<\/span><span style=\"color: #0000ff;\">&gt;<\/span>\r\n                <span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">div <\/span><span style=\"color: #ff0000;\">class<\/span><span style=\"color: #0000ff;\">=\"col-xs-1\"<\/span><span style=\"color: #ff0000;\"> style<\/span><span style=\"color: #0000ff;\">=\"height: 20px;background-color: #46b8da\"<\/span><span style=\"color: #0000ff;\">&gt;&lt;\/<\/span><span style=\"color: #800000;\">div<\/span><span style=\"color: #0000ff;\">&gt;<\/span>\r\n                <span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">div <\/span><span style=\"color: #ff0000;\">class<\/span><span style=\"color: #0000ff;\">=\"col-xs-1\"<\/span><span style=\"color: #ff0000;\"> style<\/span><span style=\"color: #0000ff;\">=\"height: 20px;background-color: #66fda6\"<\/span><span style=\"color: #0000ff;\">&gt;&lt;\/<\/span><span style=\"color: #800000;\">div<\/span><span style=\"color: #0000ff;\">&gt;<\/span>\r\n            <span style=\"color: #0000ff;\">&lt;\/<\/span><span style=\"color: #800000;\">div<\/span><span style=\"color: #0000ff;\">&gt;<\/span>\r\n        <span style=\"color: #0000ff;\">&lt;\/<\/span><span style=\"color: #800000;\">div<\/span><span style=\"color: #0000ff;\">&gt;<\/span>\r\n    <span style=\"color: #0000ff;\">&lt;\/<\/span><span style=\"color: #800000;\">div<\/span><span style=\"color: #0000ff;\">&gt;<\/span><\/pre>\n<div class=\"cnblogs_code_toolbar\"><span class=\"cnblogs_code_copy\"><a style=\"color: #000000;\" title=\"\u590d\u5236\u4ee3\u7801\"><img decoding=\"async\" src=\"https:\/\/common.cnblogs.com\/images\/copycode.gif\" alt=\"\u590d\u5236\u4ee3\u7801\" \/><\/a><\/span><\/div>\n<\/div>\n<p><img decoding=\"async\" src=\"https:\/\/img2018.cnblogs.com\/blog\/1421239\/201810\/1421239-20181023180156345-1860742302.png\" alt=\"\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h2 id=\"grid-column-ordering\" style=\"font-weight: bold;\">\u5217\u6392\u5e8f<\/h2>\n<p>\u901a\u8fc7\u4f7f\u7528\u00a0<code>.col-md-push-*<\/code>\u00a0\u548c\u00a0<code>.col-md-pull-*<\/code>\u00a0\u7c7b\u5c31\u53ef\u4ee5\u5f88\u5bb9\u6613\u7684\u6539\u53d8\u5217\uff08column\uff09\u7684\u987a\u5e8f\u3002<\/p>\n<div class=\"cnblogs_code\" style=\"color: #000000;\">\n<pre>    <span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">div <\/span><span style=\"color: #ff0000;\">class<\/span><span style=\"color: #0000ff;\">=\"row\"<\/span><span style=\"color: #0000ff;\">&gt;<\/span>\r\n        <span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">div <\/span><span style=\"color: #ff0000;\">class<\/span><span style=\"color: #0000ff;\">=\"col-xs-3 col-xs-push-9\"<\/span><span style=\"color: #ff0000;\"> style<\/span><span style=\"color: #0000ff;\">=\"height: 40px;background-color: #f0ad4e\"<\/span><span style=\"color: #0000ff;\">&gt;&lt;\/<\/span><span style=\"color: #800000;\">div<\/span><span style=\"color: #0000ff;\">&gt;<\/span>\r\n        <span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">div <\/span><span style=\"color: #ff0000;\">class<\/span><span style=\"color: #0000ff;\">=\"col-xs-3 col-xs-pull-1\"<\/span><span style=\"color: #ff0000;\"> style<\/span><span style=\"color: #0000ff;\">=\"height: 40px;background-color: #90ddf0\"<\/span><span style=\"color: #0000ff;\">&gt;&lt;\/<\/span><span style=\"color: #800000;\">div<\/span><span style=\"color: #0000ff;\">&gt;<\/span>\r\n    <span style=\"color: #0000ff;\">&lt;\/<\/span><span style=\"color: #800000;\">div<\/span><span style=\"color: #0000ff;\">&gt;<\/span><\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img2018.cnblogs.com\/blog\/1421239\/201810\/1421239-20181023192452390-507863942.png\" alt=\"\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h1 id=\"type-headings\" style=\"font-weight: bold;\">\u6807\u9898<\/h1>\n<p>HTML \u4e2d\u7684\u6240\u6709\u6807\u9898\u6807\u7b7e\uff0c<code>&lt;h1&gt;<\/code>\u00a0\u5230\u00a0<code>&lt;h6&gt;<\/code>\u00a0\u5747\u53ef\u4f7f\u7528\u3002\u53e6\u5916\uff0c\u8fd8\u63d0\u4f9b\u4e86\u00a0<code>.h1<\/code>\u00a0\u5230\u00a0<code>.h6<\/code>\u00a0\u7c7b\uff0c\u4e3a\u7684\u662f\u7ed9\u5185\u8054\uff08inline\uff09\u5c5e\u6027\u7684\u6587\u672c\u8d4b\u4e88\u6807\u9898\u7684\u6837\u5f0f\u3002<\/p>\n<div class=\"bs-example bs-example-type\" data-example-id=\"simple-headings\">\n<div class=\"cnblogs_code\" style=\"color: #000000;\">\n<div class=\"cnblogs_code_toolbar\"><span class=\"cnblogs_code_copy\"><a style=\"color: #000000;\" title=\"\u590d\u5236\u4ee3\u7801\"><img decoding=\"async\" src=\"https:\/\/common.cnblogs.com\/images\/copycode.gif\" alt=\"\u590d\u5236\u4ee3\u7801\" \/><\/a><\/span><\/div>\n<pre><span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">h1<\/span><span style=\"color: #0000ff;\">&gt;<\/span>h1. Bootstrap heading<span style=\"color: #0000ff;\">&lt;\/<\/span><span style=\"color: #800000;\">h1<\/span><span style=\"color: #0000ff;\">&gt;<\/span>\r\n<span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">h2<\/span><span style=\"color: #0000ff;\">&gt;<\/span>h2. Bootstrap heading<span style=\"color: #0000ff;\">&lt;\/<\/span><span style=\"color: #800000;\">h2<\/span><span style=\"color: #0000ff;\">&gt;<\/span>\r\n<span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">h3<\/span><span style=\"color: #0000ff;\">&gt;<\/span>h3. Bootstrap heading<span style=\"color: #0000ff;\">&lt;\/<\/span><span style=\"color: #800000;\">h3<\/span><span style=\"color: #0000ff;\">&gt;<\/span>\r\n<span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">h4<\/span><span style=\"color: #0000ff;\">&gt;<\/span>h4. Bootstrap heading<span style=\"color: #0000ff;\">&lt;\/<\/span><span style=\"color: #800000;\">h4<\/span><span style=\"color: #0000ff;\">&gt;<\/span>\r\n<span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">h5<\/span><span style=\"color: #0000ff;\">&gt;<\/span>h5. Bootstrap heading<span style=\"color: #0000ff;\">&lt;\/<\/span><span style=\"color: #800000;\">h5<\/span><span style=\"color: #0000ff;\">&gt;<\/span>\r\n<span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">h6<\/span><span style=\"color: #0000ff;\">&gt;<\/span>h6. Bootstrap heading<span style=\"color: #0000ff;\">&lt;\/<\/span><span style=\"color: #800000;\">h6<\/span><span style=\"color: #0000ff;\">&gt;<\/span><\/pre>\n<div class=\"cnblogs_code_toolbar\"><span class=\"cnblogs_code_copy\"><a style=\"color: #000000;\" title=\"\u590d\u5236\u4ee3\u7801\"><img decoding=\"async\" src=\"https:\/\/common.cnblogs.com\/images\/copycode.gif\" alt=\"\u590d\u5236\u4ee3\u7801\" \/><\/a><\/span><\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<\/div>\n<p>\u5728\u6807\u9898\u5185\u8fd8\u53ef\u4ee5\u5305\u542b\u00a0<code>&lt;small&gt;<\/code>\u00a0\u6807\u7b7e\u6216\u8d4b\u4e88\u00a0<code>.small<\/code>\u00a0\u7c7b\u7684\u5143\u7d20\uff0c\u53ef\u4ee5\u7528\u6765\u6807\u8bb0\u526f\u6807\u9898\u3002<\/p>\n<div class=\"bs-example bs-example-type\" data-example-id=\"small-headings\"><\/div>\n<div class=\"cnblogs_code\" style=\"color: #000000;\">\n<div class=\"cnblogs_code_toolbar\"><span class=\"cnblogs_code_copy\"><a style=\"color: #000000;\" title=\"\u590d\u5236\u4ee3\u7801\"><img decoding=\"async\" src=\"https:\/\/common.cnblogs.com\/images\/copycode.gif\" alt=\"\u590d\u5236\u4ee3\u7801\" \/><\/a><\/span><\/div>\n<pre><span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">h1<\/span><span style=\"color: #0000ff;\">&gt;<\/span>h1. Bootstrap heading <span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">small<\/span><span style=\"color: #0000ff;\">&gt;<\/span>Secondary text<span style=\"color: #0000ff;\">&lt;\/<\/span><span style=\"color: #800000;\">small<\/span><span style=\"color: #0000ff;\">&gt;&lt;\/<\/span><span style=\"color: #800000;\">h1<\/span><span style=\"color: #0000ff;\">&gt;<\/span>\r\n<span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">h2<\/span><span style=\"color: #0000ff;\">&gt;<\/span>h2. Bootstrap heading <span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">small<\/span><span style=\"color: #0000ff;\">&gt;<\/span>Secondary text<span style=\"color: #0000ff;\">&lt;\/<\/span><span style=\"color: #800000;\">small<\/span><span style=\"color: #0000ff;\">&gt;&lt;\/<\/span><span style=\"color: #800000;\">h2<\/span><span style=\"color: #0000ff;\">&gt;<\/span>\r\n<span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">h3<\/span><span style=\"color: #0000ff;\">&gt;<\/span>h3. Bootstrap heading <span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">small<\/span><span style=\"color: #0000ff;\">&gt;<\/span>Secondary text<span style=\"color: #0000ff;\">&lt;\/<\/span><span style=\"color: #800000;\">small<\/span><span style=\"color: #0000ff;\">&gt;&lt;\/<\/span><span style=\"color: #800000;\">h3<\/span><span style=\"color: #0000ff;\">&gt;<\/span>\r\n<span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">h4<\/span><span style=\"color: #0000ff;\">&gt;<\/span>h4. Bootstrap heading <span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">small<\/span><span style=\"color: #0000ff;\">&gt;<\/span>Secondary text<span style=\"color: #0000ff;\">&lt;\/<\/span><span style=\"color: #800000;\">small<\/span><span style=\"color: #0000ff;\">&gt;&lt;\/<\/span><span style=\"color: #800000;\">h4<\/span><span style=\"color: #0000ff;\">&gt;<\/span>\r\n<span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">h5<\/span><span style=\"color: #0000ff;\">&gt;<\/span>h5. Bootstrap heading <span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">small<\/span><span style=\"color: #0000ff;\">&gt;<\/span>Secondary text<span style=\"color: #0000ff;\">&lt;\/<\/span><span style=\"color: #800000;\">small<\/span><span style=\"color: #0000ff;\">&gt;&lt;\/<\/span><span style=\"color: #800000;\">h5<\/span><span style=\"color: #0000ff;\">&gt;<\/span>\r\n<span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">h6<\/span><span style=\"color: #0000ff;\">&gt;<\/span>h6. Bootstrap heading <span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">small<\/span><span style=\"color: #0000ff;\">&gt;<\/span>Secondary text<span style=\"color: #0000ff;\">&lt;\/<\/span><span style=\"color: #800000;\">small<\/span><span style=\"color: #0000ff;\">&gt;&lt;\/<\/span><span style=\"color: #800000;\">h6<\/span><span style=\"color: #0000ff;\">&gt;<\/span><\/pre>\n<div class=\"cnblogs_code_toolbar\"><span class=\"cnblogs_code_copy\"><a style=\"color: #000000;\" title=\"\u590d\u5236\u4ee3\u7801\"><img decoding=\"async\" src=\"https:\/\/common.cnblogs.com\/images\/copycode.gif\" alt=\"\u590d\u5236\u4ee3\u7801\" \/><\/a><\/span><\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h1 id=\"type-body-copy\" style=\"font-weight: bold;\">\u9875\u9762\u4e3b\u4f53<\/h1>\n<p>Bootstrap \u5c06\u5168\u5c40\u00a0<code>font-size<\/code>\u00a0\u8bbe\u7f6e\u4e3a\u00a014px\uff0c<code>line-height<\/code>\u00a0\u8bbe\u7f6e\u4e3a\u00a01.428\u3002\u8fd9\u4e9b\u5c5e\u6027\u76f4\u63a5\u8d4b\u4e88\u00a0<code>&lt;body&gt;<\/code>\u00a0\u5143\u7d20\u548c\u6240\u6709\u6bb5\u843d\u5143\u7d20\u3002\u53e6\u5916\uff0c<code>&lt;p&gt;<\/code>\u00a0\uff08\u6bb5\u843d\uff09\u5143\u7d20\u8fd8\u88ab\u8bbe\u7f6e\u4e86\u7b49\u4e8e 1\/2 \u884c\u9ad8\uff08\u5373 10px\uff09\u7684\u5e95\u90e8\u5916\u8fb9\u8ddd\uff08margin\uff09\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2 id=\"\u4e2d\u5fc3\u5185\u5bb9\" style=\"font-weight: bold;\">\u4e2d\u5fc3\u5185\u5bb9<\/h2>\n<p>\u901a\u8fc7\u6dfb\u52a0\u00a0<code>.lead<\/code>\u00a0\u7c7b\u53ef\u4ee5\u8ba9\u6bb5\u843d\u7a81\u51fa\u663e\u793a\u3002<\/p>\n<h2 id=\"type-inline-text\" style=\"font-weight: bold;\">\u5185\u8054\u6587\u672c\u5143\u7d20<\/h2>\n<p>\u4e3a\u4e86\u7a81\u51fa\u663e\u793a\u5728\u53e6\u4e00\u4e2a\u4e0a\u4e0b\u6587\u4e2d\u7684\u76f8\u5173\u6587\u672c\uff0c\u4f7f\u7528\u00a0<code>&lt;mark&gt;<\/code>\u6807\u8bb0\u3002<\/p>\n<div class=\"cnblogs_code\" style=\"color: #000000;\">\n<pre><span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">p<\/span><span style=\"color: #0000ff;\">&gt;<\/span>\u5e8a\u524d\u660e<span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">mark<\/span><span style=\"color: #0000ff;\">&gt;<\/span>\u6708\u5149<span style=\"color: #0000ff;\">&lt;\/<\/span><span style=\"color: #800000;\">mark<\/span><span style=\"color: #0000ff;\">&gt;&lt;\/<\/span><span style=\"color: #800000;\">p<\/span><span style=\"color: #0000ff;\">&gt;<\/span><\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img2018.cnblogs.com\/blog\/1421239\/201810\/1421239-20181023193152419-704901298.png\" alt=\"\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h3 id=\"\u88ab\u5220\u9664\u7684\u6587\u672c\" style=\"font-weight: bold;\">\u88ab\u5220\u9664\u7684\u6587\u672c<\/h3>\n<p>\u5bf9\u4e8e\u88ab\u5220\u9664\u7684\u6587\u672c\u4f7f\u7528\u00a0<code>&lt;del&gt;<\/code>\u00a0\u6807\u7b7e\u3002<\/p>\n<div class=\"cnblogs_code\" style=\"color: #000000;\">\n<pre><span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">p<\/span><span style=\"color: #0000ff;\">&gt;<\/span>\u5e8a\u524d\u660e<span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">del<\/span><span style=\"color: #0000ff;\">&gt;<\/span>\u6708\u5149<span style=\"color: #0000ff;\">&lt;\/<\/span><span style=\"color: #800000;\">del<\/span><span style=\"color: #0000ff;\">&gt;&lt;\/<\/span><span style=\"color: #800000;\">p<\/span><span style=\"color: #0000ff;\">&gt;<\/span><\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img2018.cnblogs.com\/blog\/1421239\/201810\/1421239-20181023193337303-892335152.png\" alt=\"\" \/><\/p>\n<h3 id=\"\u65e0\u7528\u6587\u672c\" style=\"font-weight: bold;\">\u65e0\u7528\u6587\u672c<\/h3>\n<p>\u5bf9\u4e8e\u6ca1\u7528\u7684\u6587\u672c\u4f7f\u7528\u00a0<code>&lt;s&gt;<\/code>\u00a0\u6807\u7b7e\u3002<\/p>\n<div class=\"cnblogs_code\" style=\"color: #000000;\">\n<pre><span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">p<\/span><span style=\"color: #0000ff;\">&gt;<\/span>\u5e8a\u524d\u660e<span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">s<\/span><span style=\"color: #0000ff;\">&gt;<\/span>\u6708\u5149<span style=\"color: #0000ff;\">&lt;\/<\/span><span style=\"color: #800000;\">s<\/span><span style=\"color: #0000ff;\">&gt;&lt;\/<\/span><span style=\"color: #800000;\">p<\/span><span style=\"color: #0000ff;\">&gt;<\/span><\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h3 id=\"\u63d2\u5165\u6587\u672c\" style=\"font-weight: bold;\">\u63d2\u5165\u6587\u672c<\/h3>\n<p>\u989d\u5916\u63d2\u5165\u7684\u6587\u672c\u4f7f\u7528\u00a0<code>&lt;ins&gt;<\/code>\u00a0\u6807\u7b7e\u3002<\/p>\n<div class=\"cnblogs_code\" style=\"color: #000000;\">\n<pre><span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">p<\/span><span style=\"color: #0000ff;\">&gt;<\/span>\u5e8a\u524d\u660e<span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">ins<\/span><span style=\"color: #0000ff;\">&gt;<\/span>\u6708\u5149<span style=\"color: #0000ff;\">&lt;\/<\/span><span style=\"color: #800000;\">ins<\/span><span style=\"color: #0000ff;\">&gt;&lt;\/<\/span><span style=\"color: #800000;\">p<\/span><span style=\"color: #0000ff;\">&gt;<\/span><\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img2018.cnblogs.com\/blog\/1421239\/201810\/1421239-20181023193526488-303933250.png\" alt=\"\" \/><\/p>\n<h3 id=\"\u5e26\u4e0b\u5212\u7ebf\u7684\u6587\u672c\" style=\"font-weight: bold;\">\u5e26\u4e0b\u5212\u7ebf\u7684\u6587\u672c<\/h3>\n<p>\u4e3a\u6587\u672c\u6dfb\u52a0\u4e0b\u5212\u7ebf\uff0c\u4f7f\u7528\u00a0<code>&lt;u&gt;<\/code>\u00a0\u6807\u7b7e\u3002<\/p>\n<div class=\"cnblogs_code\" style=\"color: #000000;\">\n<pre> <span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">p<\/span><span style=\"color: #0000ff;\">&gt;<\/span>\u5e8a\u524d\u660e<span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">u<\/span><span style=\"color: #0000ff;\">&gt;<\/span>\u6708\u5149<span style=\"color: #0000ff;\">&lt;\/<\/span><span style=\"color: #800000;\">u<\/span><span style=\"color: #0000ff;\">&gt;&lt;\/<\/span><span style=\"color: #800000;\">p<\/span><span style=\"color: #0000ff;\">&gt;<\/span><\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n<h3 id=\"\u5c0f\u53f7\u6587\u672c\" style=\"font-weight: bold;\">\u5c0f\u53f7\u6587\u672c<\/h3>\n<p>\u5bf9\u4e8e\u4e0d\u9700\u8981\u5f3a\u8c03\u7684inline\u6216block\u7c7b\u578b\u7684\u6587\u672c\uff0c\u4f7f\u7528\u00a0<code>&lt;small&gt;<\/code>\u00a0\u6807\u7b7e\u5305\u88f9\uff0c\u5176\u5185\u7684\u6587\u672c\u5c06\u88ab\u8bbe\u7f6e\u4e3a\u7236\u5bb9\u5668\u5b57\u4f53\u5927\u5c0f\u7684 85%\u3002\u6807\u9898\u5143\u7d20\u4e2d\u5d4c\u5957\u7684\u00a0<code>&lt;small&gt;<\/code>\u00a0\u5143\u7d20\u88ab\u8bbe\u7f6e\u4e0d\u540c\u7684\u00a0<code>font-size<\/code>\u00a0\u3002<\/p>\n<p>\u4f60\u8fd8\u53ef\u4ee5\u4e3a\u884c\u5185\u5143\u7d20\u8d4b\u4e88\u00a0<code>.small<\/code>\u00a0\u7c7b\u4ee5\u4ee3\u66ff\u4efb\u4f55\u00a0<code>&lt;small&gt;<\/code>\u00a0\u5143\u7d20\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img2018.cnblogs.com\/blog\/1421239\/201810\/1421239-20181023193814979-1160190429.png\" alt=\"\" \/><\/p>\n<p>&nbsp;<\/p>\n<h3 id=\"\u7740\u91cd\" style=\"font-weight: bold;\">\u7740\u91cd<\/h3>\n<p>strong \u662f\u901a\u8fc7\u589e\u52a0 font-weight \u503c\u5f3a\u8c03\u4e00\u6bb5\u6587\u672c\u3002<\/p>\n<div class=\"cnblogs_code\" style=\"color: #000000;\">\n<pre><span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">p <\/span><span style=\"color: #ff0000;\">style<\/span><span style=\"color: #0000ff;\">=\"font-size: 22px\"<\/span><span style=\"color: #0000ff;\">&gt;<\/span>\u5e8a\u524d\u660e<span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">strong<\/span><span style=\"color: #0000ff;\">&gt;<\/span>\u6708\u5149<span style=\"color: #0000ff;\">&lt;\/<\/span><span style=\"color: #800000;\">strong<\/span><span style=\"color: #0000ff;\">&gt;&lt;\/<\/span><span style=\"color: #800000;\">p<\/span><span style=\"color: #0000ff;\">&gt;<\/span><\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img2018.cnblogs.com\/blog\/1421239\/201810\/1421239-20181023193959840-1010023812.png\" alt=\"\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h3 id=\"type-alignment\" style=\"font-weight: bold;\">\u5bf9\u9f50<\/h3>\n<p>\u901a\u8fc7\u6587\u672c\u5bf9\u9f50\u7c7b\uff0c\u53ef\u4ee5\u7b80\u5355\u65b9\u4fbf\u7684\u5c06\u6587\u5b57\u91cd\u65b0\u5bf9\u9f50\u3002<\/p>\n<p>&nbsp;<\/p>\n<div class=\"cnblogs_code\" style=\"color: #000000;\">\n<pre><span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">p <\/span><span style=\"color: #ff0000;\">class<\/span><span style=\"color: #0000ff;\">=\"text-left\"<\/span><span style=\"color: #0000ff;\">&gt;<\/span>Left aligned text.<span style=\"color: #0000ff;\">&lt;\/<\/span><span style=\"color: #800000;\">p<\/span><span style=\"color: #0000ff;\">&gt;<\/span>\r\n<span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">p <\/span><span style=\"color: #ff0000;\">class<\/span><span style=\"color: #0000ff;\">=\"text-center\"<\/span><span style=\"color: #0000ff;\">&gt;<\/span>Center aligned text.<span style=\"color: #0000ff;\">&lt;\/<\/span><span style=\"color: #800000;\">p<\/span><span style=\"color: #0000ff;\">&gt;<\/span>\r\n<span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">p <\/span><span style=\"color: #ff0000;\">class<\/span><span style=\"color: #0000ff;\">=\"text-right\"<\/span><span style=\"color: #0000ff;\">&gt;<\/span>Right aligned text.<span style=\"color: #0000ff;\">&lt;\/<\/span><span style=\"color: #800000;\">p<\/span><span style=\"color: #0000ff;\">&gt;<\/span>\r\n<span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">p <\/span><span style=\"color: #ff0000;\">class<\/span><span style=\"color: #0000ff;\">=\"text-justify\"<\/span><span style=\"color: #0000ff;\">&gt;<\/span>Justified text.<span style=\"color: #0000ff;\">&lt;\/<\/span><span style=\"color: #800000;\">p<\/span><span style=\"color: #0000ff;\">&gt;<\/span>\r\n<span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">p <\/span><span style=\"color: #ff0000;\">class<\/span><span style=\"color: #0000ff;\">=\"text-nowrap\"<\/span><span style=\"color: #0000ff;\">&gt;<\/span>No wrap text.<span style=\"color: #0000ff;\">&lt;\/<\/span><span style=\"color: #800000;\">p<\/span><span style=\"color: #0000ff;\">&gt;<\/span><\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n<h3 id=\"type-transformation\" style=\"font-weight: bold;\">\u6539\u53d8\u5927\u5c0f\u5199<\/h3>\n<p>\u901a\u8fc7\u8fd9\u51e0\u4e2a\u7c7b\u53ef\u4ee5\u6539\u53d8\u6587\u672c\u7684\u5927\u5c0f\u5199\u3002<\/p>\n<div class=\"cnblogs_code\" style=\"color: #000000;\">\n<pre><span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">p <\/span><span style=\"color: #ff0000;\">class<\/span><span style=\"color: #0000ff;\">=\"text-lowercase\"<\/span><span style=\"color: #0000ff;\">&gt;<\/span>Lowercased text.<span style=\"color: #0000ff;\">&lt;\/<\/span><span style=\"color: #800000;\">p<\/span><span style=\"color: #0000ff;\">&gt;<\/span>\r\n<span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">p <\/span><span style=\"color: #ff0000;\">class<\/span><span style=\"color: #0000ff;\">=\"text-uppercase\"<\/span><span style=\"color: #0000ff;\">&gt;<\/span>Uppercased text.<span style=\"color: #0000ff;\">&lt;\/<\/span><span style=\"color: #800000;\">p<\/span><span style=\"color: #0000ff;\">&gt;<\/span>\r\n<span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">p <\/span><span style=\"color: #ff0000;\">class<\/span><span style=\"color: #0000ff;\">=\"text-capitalize\"<\/span><span style=\"color: #0000ff;\">&gt;<\/span>Capitalized text.<span style=\"color: #0000ff;\">&lt;\/<\/span><span style=\"color: #800000;\">p<\/span><span style=\"color: #0000ff;\">&gt;<\/span><\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h3 id=\"type-abbreviations\" style=\"font-weight: bold;\">\u7f29\u7565\u8bed<\/h3>\n<p>\u5f53\u9f20\u6807\u60ac\u505c\u5728\u7f29\u5199\u548c\u7f29\u5199\u8bcd\u4e0a\u65f6\u5c31\u4f1a\u663e\u793a\u5b8c\u6574\u5185\u5bb9\uff0cBootstrap \u5b9e\u73b0\u4e86\u5bf9 HTML \u7684\u00a0<code>&lt;abbr&gt;<\/code>\u00a0\u5143\u7d20\u7684\u589e\u5f3a\u6837\u5f0f\u3002\u7f29\u7565\u8bed\u5143\u7d20\u5e26\u6709\u00a0<code>title<\/code>\u00a0\u5c5e\u6027\uff0c\u5916\u89c2\u8868\u73b0\u4e3a\u5e26\u6709\u8f83\u6d45\u7684\u865a\u7ebf\u6846\uff0c\u9f20\u6807\u79fb\u81f3\u4e0a\u9762\u65f6\u4f1a\u53d8\u6210\u5e26\u6709\u201c\u95ee\u53f7\u201d\u7684\u6307\u9488\u3002\u5982\u60f3\u770b\u5b8c\u6574\u7684\u5185\u5bb9\u53ef\u628a\u9f20\u6807\u60ac\u505c\u5728\u7f29\u7565\u8bed\u4e0a\uff08\u5bf9\u4f7f\u7528\u8f85\u52a9\u6280\u672f\u7684\u7528\u6237\u4e5f\u53ef\u89c1\uff09, \u4f46\u9700\u8981\u5305\u542b title \u5c5e\u6027\u3002<\/p>\n<h4 id=\"\u57fa\u672c\u7f29\u7565\u8bed\" style=\"font-weight: bold;\">\u57fa\u672c\u7f29\u7565\u8bed<\/h4>\n<div class=\"cnblogs_code\" style=\"color: #000000;\">\n<pre><span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">abbr <\/span><span style=\"color: #ff0000;\">title<\/span><span style=\"color: #0000ff;\">=\"attribute\"<\/span><span style=\"color: #0000ff;\">&gt;<\/span>attr<span style=\"color: #0000ff;\">&lt;\/<\/span><span style=\"color: #800000;\">abbr<\/span><span style=\"color: #0000ff;\">&gt;<\/span><\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n<h4 style=\"font-weight: bold;\">\u00a0\u9996\u5b57\u6bcd\u7f29\u7565\u8bed<\/h4>\n<p>\u4e3a\u7f29\u7565\u8bed\u6dfb\u52a0\u00a0<code>.initialism<\/code>\u00a0\u7c7b\uff0c\u53ef\u4ee5\u8ba9 font-size \u53d8\u5f97\u7a0d\u5fae\u5c0f\u4e9b\u3002<\/p>\n<div class=\"cnblogs_code\" style=\"color: #000000;\">\n<pre><span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">abbr <\/span><span style=\"color: #ff0000;\">title<\/span><span style=\"color: #0000ff;\">=\"HTML\u662f\u4e00\u4e2a\u8d85\u6587\u672c\u6807\u8bb0\u8bed\u8a00\"<\/span><span style=\"color: #ff0000;\"> class<\/span><span style=\"color: #0000ff;\">=\"initialism\"<\/span><span style=\"color: #0000ff;\">&gt;<\/span>HTML<span style=\"color: #0000ff;\">&lt;\/<\/span><span style=\"color: #800000;\">abbr<\/span><span style=\"color: #0000ff;\">&gt;<\/span><\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n<h3 id=\"type-addresses\" style=\"font-weight: bold;\">\u5730\u5740<\/h3>\n<p>\u8ba9\u8054\u7cfb\u4fe1\u606f\u4ee5\u6700\u63a5\u8fd1\u65e5\u5e38\u4f7f\u7528\u7684\u683c\u5f0f\u5448\u73b0\u3002\u5728\u6bcf\u884c\u7ed3\u5c3e\u6dfb\u52a0\u00a0<code>&lt;br&gt;<\/code>\u00a0\u53ef\u4ee5\u4fdd\u7559\u9700\u8981\u7684\u6837\u5f0f\u3002<\/p>\n<p>\u793a\u4f8b:<\/p>\n<div class=\"cnblogs_code\" style=\"color: #000000;\">\n<div class=\"cnblogs_code_toolbar\"><span class=\"cnblogs_code_copy\"><a style=\"color: #000000;\" title=\"\u590d\u5236\u4ee3\u7801\"><img decoding=\"async\" src=\"https:\/\/common.cnblogs.com\/images\/copycode.gif\" alt=\"\u590d\u5236\u4ee3\u7801\" \/><\/a><\/span><\/div>\n<pre>    <span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">address<\/span><span style=\"color: #0000ff;\">&gt;<\/span>\r\n        <span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">strong<\/span><span style=\"color: #0000ff;\">&gt;<\/span>\u5929\u5b89\u95e8<span style=\"color: #0000ff;\">&lt;\/<\/span><span style=\"color: #800000;\">strong<\/span><span style=\"color: #0000ff;\">&gt;&lt;<\/span><span style=\"color: #800000;\">br<\/span><span style=\"color: #0000ff;\">&gt;<\/span><span style=\"color: #000000;\">\r\n        \u5317\u4eac\u5e02\u957f\u5b89\u8857 <\/span><span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">br<\/span><span style=\"color: #0000ff;\">&gt;<\/span>\r\n        <span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">abbr <\/span><span style=\"color: #ff0000;\">title<\/span><span style=\"color: #0000ff;\">=\"Phone\"<\/span><span style=\"color: #0000ff;\">&gt;<\/span>P:<span style=\"color: #0000ff;\">&lt;\/<\/span><span style=\"color: #800000;\">abbr<\/span><span style=\"color: #0000ff;\">&gt;<\/span><span style=\"color: #000000;\"> 13145005205\r\n    <\/span><span style=\"color: #0000ff;\">&lt;\/<\/span><span style=\"color: #800000;\">address<\/span><span style=\"color: #0000ff;\">&gt;<\/span>\r\n    <span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">address<\/span><span style=\"color: #0000ff;\">&gt;<\/span>\r\n        <span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">strong<\/span><span style=\"color: #0000ff;\">&gt;<\/span>\u90ae\u7bb1<span style=\"color: #0000ff;\">&lt;\/<\/span><span style=\"color: #800000;\">strong<\/span><span style=\"color: #0000ff;\">&gt;&lt;<\/span><span style=\"color: #800000;\">br<\/span><span style=\"color: #0000ff;\">&gt;<\/span>\r\n        <span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">a <\/span><span style=\"color: #ff0000;\">href<\/span><span style=\"color: #0000ff;\">=\"mailto:#\"<\/span><span style=\"color: #0000ff;\">&gt;<\/span>752059037@qq.com<span style=\"color: #0000ff;\">&lt;\/<\/span><span style=\"color: #800000;\">a<\/span><span style=\"color: #0000ff;\">&gt;<\/span>\r\n    <span style=\"color: #0000ff;\">&lt;\/<\/span><span style=\"color: #800000;\">address<\/span><span style=\"color: #0000ff;\">&gt;<\/span><\/pre>\n<div class=\"cnblogs_code_toolbar\"><span class=\"cnblogs_code_copy\"><a style=\"color: #000000;\" title=\"\u590d\u5236\u4ee3\u7801\"><img decoding=\"async\" src=\"https:\/\/common.cnblogs.com\/images\/copycode.gif\" alt=\"\u590d\u5236\u4ee3\u7801\" \/><\/a><\/span><\/div>\n<\/div>\n<p><img decoding=\"async\" src=\"https:\/\/img2018.cnblogs.com\/blog\/1421239\/201810\/1421239-20181023200421380-1716863111.png\" alt=\"\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #800000;\"><span style=\"color: #ff00ff;\"><a style=\"color: #000000;\" href=\"https:\/\/v3.bootcss.com\/css\/\" target=\"_blank\"><span style=\"color: #ff00ff;\">\u66f4\u591a\u4f7f\u7528\u65b9\u5f0f\u731b\u6233<\/span><\/a><\/span>\u00a0<\/span><span style=\"color: #c0c0c0;\">(\u5199\u4e0d\u52a8\u4e86)<\/span><\/p>\n<p>&nbsp;<\/p>\n<p>https:\/\/www.cnblogs.com\/qq752059037\/p\/9838996.html<\/p>\n<p>\u53c2\u8003<\/p>\n<p>https:\/\/www.runoob.com\/bootstrap\/bootstrap-tutorial.html<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Bootstrap\u662f\u4ec0\u4e48 \u7b80\u4ecb \u5c31\u662f\u5df2\u7ecf\u5199\u597d\u7684\u4e00\u4e2ahtml\u548ccss\u7684\u6837\u5f0f\u7ec4\u5408 Bootstrap\u662fTwitter\u5f00\u6e90\u7684\u57fa\u4e8eHTML\u3001CSS\u3001JavaScript\u7684\u524d\u7aef\u6846\u67b6\u3002 \u5b83\u662f\u4e3a\u5b9e\u73b0\u5feb\u901f\u5f00\u53d1Web\u5e94\u7528\u7a0b\u5e8f\u800c\u8bbe\u8ba1\u7684\u4e00\u5957\u524d\u7aef\u5de5\u5177\u5305\u3002 \u5b83\u652f\u6301\u54cd &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[],"class_list":["post-155","post","type-post","status-publish","format-standard","hentry","category-12"],"_links":{"self":[{"href":"http:\/\/www.jichangqing.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/155","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.jichangqing.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.jichangqing.net\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.jichangqing.net\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.jichangqing.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=155"}],"version-history":[{"count":1,"href":"http:\/\/www.jichangqing.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/155\/revisions"}],"predecessor-version":[{"id":156,"href":"http:\/\/www.jichangqing.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/155\/revisions\/156"}],"wp:attachment":[{"href":"http:\/\/www.jichangqing.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=155"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.jichangqing.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=155"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.jichangqing.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=155"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}