{"id":3567,"date":"2024-11-10T14:44:59","date_gmt":"2024-11-10T06:44:59","guid":{"rendered":"https:\/\/fwq.ai\/blog\/3567\/"},"modified":"2024-11-10T14:44:59","modified_gmt":"2024-11-10T06:44:59","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","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/3567\/","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><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/001\/246\/273\/173106023475679.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>\u5c0f\u7a0b\u5e8f tdesign ui \u5e93\u7684  \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><span>\u7acb\u5373\u5b66\u4e60<\/span>\u201c\u201d\uff1b<\/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\u5c0f\u7a0b\u5e8f TDesign UI \u5e93\u7684 CSS \u9009\u62e9\u5668 .t-grid&#8211;card \u5982\u4f55\u751f\u6548\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>\u5c0f\u7a0b\u5e8f tdesign ui \u5e93\u7684 \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 \u7acb\u5373\u5b66\u4e60\u201c\u201d\uff1b .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 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 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 \u4ee5\u4e0a\u5c31\u662f\u5c0f\u7a0b\u5e8f TDesign [&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-3567","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/3567","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=3567"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/3567\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=3567"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=3567"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=3567"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}