{"id":3639,"date":"2024-11-10T09:56:04","date_gmt":"2024-11-10T01:56:04","guid":{"rendered":"https:\/\/fwq.ai\/blog\/3639\/"},"modified":"2024-11-10T09:56:04","modified_gmt":"2024-11-10T01:56:04","slug":"css-%e6%96%87%e6%9c%ac%e6%8d%a2%e8%a1%8c%ef%bc%9a%e5%a6%82%e4%bd%95%e9%98%b2%e6%ad%a2%e8%bf%9e%e5%ad%97%e7%ac%a6%e5%af%bc%e8%87%b4%e7%9a%84%e8%87%aa%e5%8a%a8%e6%8d%a2%e8%a1%8c%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/3639\/","title":{"rendered":"CSS \u6587\u672c\u6362\u884c\uff1a\u5982\u4f55\u9632\u6b62\u8fde\u5b57\u7b26\u5bfc\u81f4\u7684\u81ea\u52a8\u6362\u884c\uff1f"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/001\/246\/273\/173107659016476.jpg\" class=\"aligncenter\" title=\"CSS \u6587\u672c\u6362\u884c\uff1a\u5982\u4f55\u9632\u6b62\u8fde\u5b57\u7b26\u5bfc\u81f4\u7684\u81ea\u52a8\u6362\u884c\uff1f\u63d2\u56fe\" alt=\"CSS \u6587\u672c\u6362\u884c\uff1a\u5982\u4f55\u9632\u6b62\u8fde\u5b57\u7b26\u5bfc\u81f4\u7684\u81ea\u52a8\u6362\u884c\uff1f\u63d2\u56fe\" \/><\/p>\n<p><strong>\u5185\u5bb9\u6362\u884c\u95ee\u9898\u7684\u6839\u6e90<\/strong><\/p>\n<p>\u5728html\u4e2d\u63d2\u5165\u6587\u672c\u65f6\uff0c\u67d0\u4e9b\u5b57\u7b26\u7684\u5b58\u5728\u53ef\u80fd\u5bfc\u81f4\u5185\u5bb9\u53d1\u751f\u6362\u884c\uff0c\u5f71\u54cd\u6392\u7248\u6548\u679c\u3002\u4f8b\u5982\uff0c\u8fde\u5b57\u7b26\uff08-\uff09\u5c31\u662f\u9020\u6210\u8fd9\u4e00\u95ee\u9898\u7684\u4e3b\u8981\u5143\u51f6\u4e4b\u4e00\u3002<\/p>\n<p><strong>\u5177\u4f53\u6848\u4f8b\uff1a\u6587\u672c\u6362\u884c<\/strong><\/p>\n<p>\u4ee5\u4e0bcss\u6587\u672c\u4e3a\u4f8b\uff1a<\/p>\n<p><span>\u7acb\u5373\u5b66\u4e60<\/span>\u201c\u201d\uff1b<\/p>\n<pre>build 59-port xxxxxxxx sssssss zzzzzzzzzzzzzzzzzzzzzz ffffffdddccc tggggggrrrrr<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u5f53\u5c06\u5176\u63d2\u5165\u5230\u6807\u7b7e\u7684\u5185\u5bb9\u6587\u672c\u540e\uff0c\u6211\u4eec\u4f1a\u53d1\u73b059\u548cport\u4e4b\u95f4\u4f1a\u81ea\u52a8\u6362\u884c\u663e\u793a\u3002\u8fd9\u662f\u56e0\u4e3a\u8fde\u5b57\u7b26\u5c06\u8fd9\u4e24\u4e2a\u5355\u8bcd\u5206\u6210\u4e86\u4e24\u4e2a\u72ec\u7acb\u7684\u5355\u8bcd\uff0c\u6d4f\u89c8\u5668\u4f1a\u81ea\u52a8\u5728\u5355\u8bcd\u4e4b\u95f4\u6dfb\u52a0\u6362\u884c\u7b26\u3002<\/p>\n<p><strong>\u963b\u6b62\u6362\u884c\u7684\u65b9\u6cd5<\/strong><\/p>\n<p>\u4e3a\u4e86\u963b\u6b62\u81ea\u52a8\u6362\u884c\uff0c\u6211\u4eec\u53ef\u4ee5\u91c7\u53d6\u4ee5\u4e0b\u63aa\u65bd\uff1a<\/p>\n<ol>\n<li><strong>\u4f7f\u7528keep-all\u65e0\u6548<\/strong><\/li>\n<\/ol>\n<p>word-break: keep-all\u5c5e\u6027\u4e13\u95e8\u7528\u4e8e\u7981\u6b62\u5355\u8bcd\u6362\u884c\u3002\u7136\u800c\uff0c\u5728\u672c\u6587\u7684\u793a\u4f8b\u4e2d\uff0c59\u548cport\u4e4b\u95f4\u5b58\u5728\u7a7a\u683c\uff0c\u8868\u660e\u5b83\u4eec\u5e76\u4e0d\u662f\u540c\u4e00\u4e2a\u5355\u8bcd\uff0c\u56e0\u6b64keep-all\u65e0\u6548\u3002<\/p>\n<ol>\n<li><strong>\u4f7f\u7528nowrap<\/strong><\/li>\n<\/ol>\n<p>\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u6211\u4eec\u5e94\u8be5\u4f7f\u7528whitespace: nowrap\u5c5e\u6027\u3002\u987e\u540d\u601d\u4e49\uff0cwhitespace\u7528\u6765\u5904\u7406\u7a7a\u767d\u5b57\u7b26\uff08\u5305\u62ec\u7a7a\u683c\uff09\uff0cnowrap\u5219\u4e0d\u5141\u8bb8\u5c06\u5176\u6362\u884c\u3002<\/p>\n<p>\u56e0\u6b64\uff0c\u4e3a\u89e3\u51b3css\u6587\u672c\u6362\u884c\u95ee\u9898\uff0c\u53ef\u4ee5\u5728\u6837\u5f0f\u8868\u4e2d\u6dfb\u52a0\u5982\u4e0b\u4ee3\u7801\uff1a<\/p>\n<pre>p {\n  whitespace: nowrap;\n}<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u4ee5\u4e0a\u5c31\u662fCSS \u6587\u672c\u6362\u884c\uff1a\u5982\u4f55\u9632\u6b62\u8fde\u5b57\u7b26\u5bfc\u81f4\u7684\u81ea\u52a8\u6362\u884c\uff1f\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5185\u5bb9\u6362\u884c\u95ee\u9898\u7684\u6839\u6e90 \u5728html\u4e2d\u63d2\u5165\u6587\u672c\u65f6\uff0c\u67d0\u4e9b\u5b57\u7b26\u7684\u5b58\u5728\u53ef\u80fd\u5bfc\u81f4\u5185\u5bb9\u53d1\u751f\u6362\u884c\uff0c\u5f71\u54cd\u6392\u7248\u6548\u679c\u3002\u4f8b\u5982\uff0c\u8fde\u5b57\u7b26\uff08-\uff09\u5c31\u662f\u9020\u6210\u8fd9\u4e00\u95ee\u9898\u7684\u4e3b\u8981\u5143\u51f6\u4e4b\u4e00\u3002 \u5177\u4f53\u6848\u4f8b\uff1a\u6587\u672c\u6362\u884c \u4ee5\u4e0bcss\u6587\u672c\u4e3a\u4f8b\uff1a \u7acb\u5373\u5b66\u4e60\u201c\u201d\uff1b build 59-port xxxxxxxx sssssss zzzzzzzzzzzzzzzzzzzzzz ffffffdddccc tggggggrrrrr \u767b\u5f55\u540e\u590d\u5236 \u5f53\u5c06\u5176\u63d2\u5165\u5230\u6807\u7b7e\u7684\u5185\u5bb9\u6587\u672c\u540e\uff0c\u6211\u4eec\u4f1a\u53d1\u73b059\u548cport\u4e4b\u95f4\u4f1a\u81ea\u52a8\u6362\u884c\u663e\u793a\u3002\u8fd9\u662f\u56e0\u4e3a\u8fde\u5b57\u7b26\u5c06\u8fd9\u4e24\u4e2a\u5355\u8bcd\u5206\u6210\u4e86\u4e24\u4e2a\u72ec\u7acb\u7684\u5355\u8bcd\uff0c\u6d4f\u89c8\u5668\u4f1a\u81ea\u52a8\u5728\u5355\u8bcd\u4e4b\u95f4\u6dfb\u52a0\u6362\u884c\u7b26\u3002 \u963b\u6b62\u6362\u884c\u7684\u65b9\u6cd5 \u4e3a\u4e86\u963b\u6b62\u81ea\u52a8\u6362\u884c\uff0c\u6211\u4eec\u53ef\u4ee5\u91c7\u53d6\u4ee5\u4e0b\u63aa\u65bd\uff1a \u4f7f\u7528keep-all\u65e0\u6548 word-break: keep-all\u5c5e\u6027\u4e13\u95e8\u7528\u4e8e\u7981\u6b62\u5355\u8bcd\u6362\u884c\u3002\u7136\u800c\uff0c\u5728\u672c\u6587\u7684\u793a\u4f8b\u4e2d\uff0c59\u548cport\u4e4b\u95f4\u5b58\u5728\u7a7a\u683c\uff0c\u8868\u660e\u5b83\u4eec\u5e76\u4e0d\u662f\u540c\u4e00\u4e2a\u5355\u8bcd\uff0c\u56e0\u6b64keep-all\u65e0\u6548\u3002 \u4f7f\u7528nowrap \u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u6211\u4eec\u5e94\u8be5\u4f7f\u7528whitespace: nowrap\u5c5e\u6027\u3002\u987e\u540d\u601d\u4e49\uff0cwhitespace\u7528\u6765\u5904\u7406\u7a7a\u767d\u5b57\u7b26\uff08\u5305\u62ec\u7a7a\u683c\uff09\uff0cnowrap\u5219\u4e0d\u5141\u8bb8\u5c06\u5176\u6362\u884c\u3002 \u56e0\u6b64\uff0c\u4e3a\u89e3\u51b3css\u6587\u672c\u6362\u884c\u95ee\u9898\uff0c\u53ef\u4ee5\u5728\u6837\u5f0f\u8868\u4e2d\u6dfb\u52a0\u5982\u4e0b\u4ee3\u7801\uff1a p { whitespace: nowrap; } \u767b\u5f55\u540e\u590d\u5236 \u4ee5\u4e0a\u5c31\u662fCSS \u6587\u672c\u6362\u884c\uff1a\u5982\u4f55\u9632\u6b62\u8fde\u5b57\u7b26\u5bfc\u81f4\u7684\u81ea\u52a8\u6362\u884c\uff1f\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-3639","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/3639","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=3639"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/3639\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=3639"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=3639"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=3639"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}