{"id":26440,"date":"2024-11-24T13:47:39","date_gmt":"2024-11-24T05:47:39","guid":{"rendered":"https:\/\/fwq.ai\/blog\/26440\/"},"modified":"2024-11-24T13:47:39","modified_gmt":"2024-11-24T05:47:39","slug":"%e6%96%87%e5%ad%97%e7%8e%af%e7%bb%95%e5%9b%be%e7%89%87%e6%95%88%e6%9e%9c%ef%bc%8c%e8%8b%b1%e6%96%87%e5%8d%95%e8%af%8d%e5%a6%82%e4%bd%95%e6%96%ad%e8%a1%8c%ef%bc%9f-2","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/26440\/","title":{"rendered":"\u6587\u5b57\u73af\u7ed5\u56fe\u7247\u6548\u679c\uff0c\u82f1\u6587\u5355\u8bcd\u5982\u4f55\u65ad\u884c\uff1f"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/001\/246\/273\/173094670454829.jpg\" class=\"aligncenter\" title=\"\u6587\u5b57\u73af\u7ed5\u56fe\u7247\u6548\u679c\uff0c\u82f1\u6587\u5355\u8bcd\u5982\u4f55\u65ad\u884c\uff1f\u63d2\u56fe\" alt=\"\u6587\u5b57\u73af\u7ed5\u56fe\u7247\u6548\u679c\uff0c\u82f1\u6587\u5355\u8bcd\u5982\u4f55\u65ad\u884c\uff1f\u63d2\u56fe\" \/><\/p>\n<p><strong>\u5b9e\u73b0\u6587\u5b57\u73af\u7ed5\u56fe\u7247\u6548\u679c\uff0c\u82f1\u6587\u5355\u8bcd\u5982\u4f55\u73af\u7ed5\u663e\u793a\uff1f<\/strong><\/p>\n<p>\u672c\u6587\u53c2\u8003\u4e86\u6587\u7ae0\u63d0\u4f9b\u4e86\u5982\u4f55\u5728\u524d\u7aef\u5b9e\u73b0\u6587\u5b57\u73af\u7ed5\u56fe\u7247\u7684\u6548\u679c\u3002\u7136\u800c\uff0c\u5f53\u6d89\u53ca\u5230\u82f1\u8bed\u5355\u8bcd\u65f6\uff0c\u8fd9\u79cd\u73af\u7ed5\u6548\u679c\u5c31\u65e0\u6cd5\u5b9e\u73b0\u3002<\/p>\n<p><strong>\u89e3\u51b3\u65b9\u6cd5\uff1a<\/strong><\/p>\n<p>\u4e3a\u4e86\u8ba9\u82f1\u8bed\u5355\u8bcd\u4e5f\u73af\u7ed5\u56fe\u7247\u663e\u793a\uff0c\u9700\u8981\u6dfb\u52a0\u4e00\u4e2a\u9644\u52a0\u7684 CSS \u6837\u5f0f\uff1a\u5f3a\u5236\u82f1\u6587\u5355\u8bcd\u65ad\u884c\u3002\u4ee5\u4e0b\u662f\u5177\u4f53\u6b65\u9aa4\uff1a<\/p>\n<ol>\n<li>\u5728\n<p> \u6807\u7b7e\u4e2d\uff0c\u6dfb\u52a0\u4ee5\u4e0b CSS \u6837\u5f0f\uff1a<\/p>\n<\/li>\n<\/ol>\n<pre>style=\"word-break:break-all;\"<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<ol>\n<li>\u8fd9\u6837\uff0c\u6587\u672c\u4e2d\u9047\u5230\u4e0d\u53ef\u65ad\u884c\u7684\u5b57\u7b26\uff08\u5982\u5b57\u6bcd\uff09\u65f6\uff0c\u4f1a\u81ea\u52a8\u6298\u884c\u3002<\/li>\n<\/ol>\n<p><strong>\u793a\u4f8b\uff1a<\/strong><\/p>\n<p>\u4ee5\u4e0b\u793a\u4f8b\u5c55\u793a\u4e86\u6548\u679c\uff1a<\/p>\n<pre><p>This is an example of text wrapping around an image. This should work for both English and Chinese characters.<\/p>\n@@##@@<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p><strong>CSS \u6587\u6863\u53c2\u8003\uff1a<\/strong><\/p>\n<p>\u6709\u5173 word-break \u5c5e\u6027\u7684\u8be6\u7ec6\u6587\u6863\uff0c\u8bf7\u53c2\u9605 Mozilla Developer Network\uff08MDN\uff09\uff1ahttps:\/\/developer.mozilla.org\/zh-CN\/docs\/Web\/CSS\/word-break<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.php.cn\/faq\/image.png\" class=\"aligncenter\" title=\"\u6587\u5b57\u73af\u7ed5\u56fe\u7247\u6548\u679c\uff0c\u82f1\u6587\u5355\u8bcd\u5982\u4f55\u65ad\u884c\uff1f\u63d2\u56fe1\" alt=\"\u6587\u5b57\u73af\u7ed5\u56fe\u7247\u6548\u679c\uff0c\u82f1\u6587\u5355\u8bcd\u5982\u4f55\u65ad\u884c\uff1f\u63d2\u56fe1\" \/> <\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u6587\u5b57\u73af\u7ed5\u56fe\u7247\u6548\u679c\uff0c\u82f1\u6587\u5355\u8bcd\u5982\u4f55\u65ad\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>\u5b9e\u73b0\u6587\u5b57\u73af\u7ed5\u56fe\u7247\u6548\u679c\uff0c\u82f1\u6587\u5355\u8bcd\u5982\u4f55\u73af\u7ed5\u663e\u793a\uff1f \u672c\u6587\u53c2\u8003\u4e86\u6587\u7ae0\u63d0\u4f9b\u4e86\u5982\u4f55\u5728\u524d\u7aef\u5b9e\u73b0\u6587\u5b57\u73af\u7ed5\u56fe\u7247\u7684\u6548\u679c\u3002\u7136\u800c\uff0c\u5f53\u6d89\u53ca\u5230\u82f1\u8bed\u5355\u8bcd\u65f6\uff0c\u8fd9\u79cd\u73af\u7ed5\u6548\u679c\u5c31\u65e0\u6cd5\u5b9e\u73b0\u3002 \u89e3\u51b3\u65b9\u6cd5\uff1a \u4e3a\u4e86\u8ba9\u82f1\u8bed\u5355\u8bcd\u4e5f\u73af\u7ed5\u56fe\u7247\u663e\u793a\uff0c\u9700\u8981\u6dfb\u52a0\u4e00\u4e2a\u9644\u52a0\u7684 CSS \u6837\u5f0f\uff1a\u5f3a\u5236\u82f1\u6587\u5355\u8bcd\u65ad\u884c\u3002\u4ee5\u4e0b\u662f\u5177\u4f53\u6b65\u9aa4\uff1a \u5728 \u6807\u7b7e\u4e2d\uff0c\u6dfb\u52a0\u4ee5\u4e0b CSS \u6837\u5f0f\uff1a style=&#8221;word-break:break-all;&#8221; \u767b\u5f55\u540e\u590d\u5236 \u8fd9\u6837\uff0c\u6587\u672c\u4e2d\u9047\u5230\u4e0d\u53ef\u65ad\u884c\u7684\u5b57\u7b26\uff08\u5982\u5b57\u6bcd\uff09\u65f6\uff0c\u4f1a\u81ea\u52a8\u6298\u884c\u3002 \u793a\u4f8b\uff1a \u4ee5\u4e0b\u793a\u4f8b\u5c55\u793a\u4e86\u6548\u679c\uff1a This is an example of text wrapping around an image. This should work for both English and Chinese characters. @@##@@ \u767b\u5f55\u540e\u590d\u5236 CSS \u6587\u6863\u53c2\u8003\uff1a \u6709\u5173 word-break \u5c5e\u6027\u7684\u8be6\u7ec6\u6587\u6863\uff0c\u8bf7\u53c2\u9605 Mozilla Developer Network\uff08MDN\uff09\uff1ahttps:\/\/developer.mozilla.org\/zh-CN\/docs\/Web\/CSS\/word-break \u4ee5\u4e0a\u5c31\u662f\u6587\u5b57\u73af\u7ed5\u56fe\u7247\u6548\u679c\uff0c\u82f1\u6587\u5355\u8bcd\u5982\u4f55\u65ad\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-26440","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/26440","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=26440"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/26440\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=26440"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=26440"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=26440"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}