微信小程序开发指南

基于ColorUI的组件化页面开发


深色背景

<h1>背景颜色 - 深色背景</h1> <ul> <li>样式图例</li> </ul> <p><img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=5a7cb4913ce3b1279f7421b5e6d64041&amp;file=file.png" alt="" /></p> <ul> <li>示例代码</li> </ul> <p>ex: 嫣红 - item.title ; Red - item.name</p> <pre><code class="language-html">&lt;view class="grid col-3 padding-sm"&gt; &lt;view class="padding-sm" wx:for="{{ColorList}}" wx:key&gt; &lt;view class="bg-{{item.name}} padding radius text-center shadow-blur"&gt; &lt;view class="text-lg"&gt;{{item.title}}&lt;/view&gt; &lt;view class="margin-top-sm text-Abc"&gt;{{item.name}}&lt;/view&gt; &lt;/view&gt; &lt;/view&gt; &lt;/view&gt;</code></pre>

页面列表

ITEM_HTML