{"id":53099,"date":"2024-12-03T13:55:19","date_gmt":"2024-12-03T05:55:19","guid":{"rendered":"https:\/\/fwq.ai\/blog\/53099\/"},"modified":"2024-12-03T13:55:19","modified_gmt":"2024-12-03T05:55:19","slug":"%e5%be%ae%e4%bf%a1%e5%b0%8f%e7%a8%8b%e5%ba%8f-tdesign-ui-%e5%ba%93%e7%9a%84-css-%e9%80%89%e6%8b%a9%e5%99%a8-t-grid-card-%e5%a6%82%e4%bd%95%e7%94%9f%e6%95%88%ef%bc%9f-3","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/53099\/","title":{"rendered":"\u5fae\u4fe1\u5c0f\u7a0b\u5e8f TDesign UI \u5e93\u7684 CSS \u9009\u62e9\u5668 .t-grid&#8211;card \u5982\u4f55\u751f\u6548\uff1f"},"content":{"rendered":"<p><b><\/b>     <\/p>\n<h1>\u5fae\u4fe1\u5c0f\u7a0b\u5e8f TDesign UI \u5e93\u7684 CSS \u9009\u62e9\u5668 .t-grid&#8211;card \u5982\u4f55\u751f\u6548\uff1f <\/h1>\n<p>\u73cd\u60dc\u65f6\u95f4\uff0c\u52e4\u594b\u5b66\u4e60\uff01\u4eca\u5929\u7ed9\u5927\u5bb6\u5e26\u6765<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\">\u300a\u5fae\u4fe1\u5c0f\u7a0b\u5e8f TDesign UI \u5e93\u7684 CSS \u9009\u62e9\u5668 .t-grid&#8211;card \u5982\u4f55\u751f\u6548\uff1f \u300b<\/span>\uff0c\u6b63\u6587\u5185\u5bb9\u4e3b\u8981\u6d89\u53ca\u5230<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\"><\/span>\u7b49\u7b49\uff0c\u5982\u679c\u4f60\u6b63\u5728\u5b66\u4e60<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\">\u6587\u7ae0<\/span>\uff0c\u6216\u8005\u662f\u5bf9<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\">\u6587\u7ae0<\/span>\u6709\u7591\u95ee\uff0c\u6b22\u8fce\u5927\u5bb6\u5173\u6ce8\u6211\uff01\u540e\u9762\u6211\u4f1a\u6301\u7eed\u66f4\u65b0\u76f8\u5173\u5185\u5bb9\u7684\uff0c\u5e0c\u671b\u90fd\u80fd\u5e2e\u5230\u6b63\u5728\u5b66\u4e60\u7684\u5927\u5bb6\uff01<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241126\/173261560167459db1499a9.jpg\" class=\"aligncenter\" title=\"\u5fae\u4fe1\u5c0f\u7a0b\u5e8f TDesign UI \u5e93\u7684 CSS \u9009\u62e9\u5668 .t-grid&#8211;card \u5982\u4f55\u751f\u6548\uff1f\u63d2\u56fe\" alt=\"\u5fae\u4fe1\u5c0f\u7a0b\u5e8f TDesign UI \u5e93\u7684 CSS \u9009\u62e9\u5668 .t-grid&#8211;card \u5982\u4f55\u751f\u6548\uff1f\u63d2\u56fe\" \/><\/p>\n<p><strong>\u5fae\u4fe1\u5c0f\u7a0b\u5e8f TDesign UI \u5e93\u7684 CSS \u9009\u62e9\u5668\u7591\u95ee\u89e3\u7b54<\/strong><\/p>\n<p>\u5728\u5fae\u4fe1\u5c0f\u7a0b\u5e8f TDesign UI \u5e93\u4e2d\uff0c\u6709\u4e00\u4e2a CSS \u9009\u62e9\u5668 .t-grid&#8211;card \u5f15\u8d77\u4e86\u4e00\u4e9b\u7591\u60d1\u3002\u5b83\u7684\u7236\u5143\u7d20 class \u4e3a &#8216;t-grid t-card class t-class&#8217;\uff0c\u4f46\u9009\u62e9\u5668\u5374\u4e0d\u540c\u3002<\/p>\n<p><strong>\u7591\u95ee\uff1a<\/strong><\/p>\n<ol>\n<li>\u8fd9\u4e2a\u9009\u62e9\u5668\u5982\u4f55\u751f\u6548\uff1f<\/li>\n<li>\u5b83\u7684\u547d\u540d\u98ce\u683c\u770b\u8d77\u6765\u65e2\u50cf BEM\uff0c\u53c8\u50cf CSS \u53d8\u91cf\uff0c\u4f46\u4f3c\u4e4e\u90fd\u4e0d\u662f\u3002<\/li>\n<\/ol>\n<p><strong>\u89e3\u7b54\uff1a<\/strong><\/p>\n<ol>\n<li>\n<p><strong>\u9009\u62e9\u5668\u751f\u6548\u539f\u7406\uff1a<\/strong><\/p>\n<p>.t-grid&#8211;card \u9009\u62e9\u5668\u662f\u901a\u8fc7\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u4e2d\u7684\u5916\u90e8\u6837\u5f0f\u7c7b\u4f20\u5165\u7684\u3002\u5728\u5143\u7d20\u7684 class \u4e2d\uff0c\u5b58\u5728 t-class\uff0c\u5b83\u6307\u5411\u4e86\u5916\u90e8\u6837\u5f0f\u7c7b\u4e2d\u7684 .t-grid&#8211;card\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u547d\u540d\u89c4\u5219\u89e3\u91ca\uff1a<\/strong><\/p>\n<p>\u786e\u5b9e\u4f7f\u7528\u4e86 BEM \u547d\u540d\u98ce\u683c\u3002\u4f46\u5728\u5b9e\u9645\u9879\u76ee\u4e2d\uff0c\u4e3a\u4e86\u7f29\u51cf class \u540d\u79f0\u7684\u957f\u5ea6\uff0c\u53ef\u5bf9 BEM \u540e\u7f00\u8fdb\u884c\u5408\u7406\u8c03\u6574\uff0c\u4e0d\u5fc5\u4e25\u683c\u6309\u7167 DOM \u7ed3\u6784\u3002<\/p>\n<p>CSS \u53d8\u91cf\u5219\u662f\u4ee5 &#8212; \u5f00\u5934\u6765\u58f0\u660e\u7684\uff0c\u518d\u901a\u8fc7 var() \u51fd\u6570\u4f7f\u7528\u3002\u56e0\u6b64\uff0c.t-grid&#8211;card \u4e0d\u662f CSS \u53d8\u91cf\u3002<\/p>\n<\/li>\n<\/ol>\n<p>\u4ee5\u4e0a\u5c31\u662f\u300a\u5fae\u4fe1\u5c0f\u7a0b\u5e8f TDesign UI \u5e93\u7684 CSS \u9009\u62e9\u5668 .t-grid&#8211;card \u5982\u4f55\u751f\u6548\uff1f \u300b\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u5173\u4e8e\u7684\u8d44\u6599\u8bf7\u5173\u6ce8\u7c73\u4e91\u516c\u4f17\u53f7\uff01<\/p>\n<dl>\n<dt><\/dt>\n<dd>\n   Python format() \u51fd\u6570\u7684\u53c2\u6570\u7f16\u53f7\uff1a\u6570\u5b57\u8fd8\u662f\u53d8\u91cf\u8868\u8fbe\u5f0f\uff1f\n <\/dd>\n<\/dl>\n","protected":false},"excerpt":{"rendered":"<p>\u5fae\u4fe1\u5c0f\u7a0b\u5e8f TDesign UI \u5e93\u7684 CSS \u9009\u62e9\u5668 .t-grid&#8211;card \u5982\u4f55\u751f\u6548\uff1f \u73cd\u60dc\u65f6\u95f4\uff0c\u52e4\u594b\u5b66\u4e60\uff01\u4eca\u5929\u7ed9\u5927\u5bb6\u5e26\u6765\u300a\u5fae\u4fe1\u5c0f\u7a0b\u5e8f TDesign UI \u5e93\u7684 CSS \u9009\u62e9\u5668 .t-grid&#8211;card \u5982\u4f55\u751f\u6548\uff1f \u300b\uff0c\u6b63\u6587\u5185\u5bb9\u4e3b\u8981\u6d89\u53ca\u5230\u7b49\u7b49\uff0c\u5982\u679c\u4f60\u6b63\u5728\u5b66\u4e60\u6587\u7ae0\uff0c\u6216\u8005\u662f\u5bf9\u6587\u7ae0\u6709\u7591\u95ee\uff0c\u6b22\u8fce\u5927\u5bb6\u5173\u6ce8\u6211\uff01\u540e\u9762\u6211\u4f1a\u6301\u7eed\u66f4\u65b0\u76f8\u5173\u5185\u5bb9\u7684\uff0c\u5e0c\u671b\u90fd\u80fd\u5e2e\u5230\u6b63\u5728\u5b66\u4e60\u7684\u5927\u5bb6\uff01 \u5fae\u4fe1\u5c0f\u7a0b\u5e8f TDesign UI \u5e93\u7684 CSS \u9009\u62e9\u5668\u7591\u95ee\u89e3\u7b54 \u5728\u5fae\u4fe1\u5c0f\u7a0b\u5e8f TDesign UI \u5e93\u4e2d\uff0c\u6709\u4e00\u4e2a CSS \u9009\u62e9\u5668 .t-grid&#8211;card \u5f15\u8d77\u4e86\u4e00\u4e9b\u7591\u60d1\u3002\u5b83\u7684\u7236\u5143\u7d20 class \u4e3a &#8216;t-grid t-card class t-class&#8217;\uff0c\u4f46\u9009\u62e9\u5668\u5374\u4e0d\u540c\u3002 \u7591\u95ee\uff1a \u8fd9\u4e2a\u9009\u62e9\u5668\u5982\u4f55\u751f\u6548\uff1f \u5b83\u7684\u547d\u540d\u98ce\u683c\u770b\u8d77\u6765\u65e2\u50cf BEM\uff0c\u53c8\u50cf CSS \u53d8\u91cf\uff0c\u4f46\u4f3c\u4e4e\u90fd\u4e0d\u662f\u3002 \u89e3\u7b54\uff1a \u9009\u62e9\u5668\u751f\u6548\u539f\u7406\uff1a .t-grid&#8211;card \u9009\u62e9\u5668\u662f\u901a\u8fc7\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u4e2d\u7684\u5916\u90e8\u6837\u5f0f\u7c7b\u4f20\u5165\u7684\u3002\u5728\u5143\u7d20\u7684 class \u4e2d\uff0c\u5b58\u5728 t-class\uff0c\u5b83\u6307\u5411\u4e86\u5916\u90e8\u6837\u5f0f\u7c7b\u4e2d\u7684 .t-grid&#8211;card\u3002 \u547d\u540d\u89c4\u5219\u89e3\u91ca\uff1a \u786e\u5b9e\u4f7f\u7528\u4e86 BEM \u547d\u540d\u98ce\u683c\u3002\u4f46\u5728\u5b9e\u9645\u9879\u76ee\u4e2d\uff0c\u4e3a\u4e86\u7f29\u51cf [&hellip;]<\/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-53099","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/53099","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=53099"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/53099\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=53099"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=53099"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=53099"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}