微信小程序开发指南

基于ColorUI的组件化页面开发


图片窗口

<h1>图片窗口</h1> <ul> <li>样式图例</li> </ul> <p><img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=97a28cc5433fcdb794615bea3a2c83bd&amp;file=file.png" alt="" /></p> <ul> <li>示例代码</li> </ul> <pre><code class="language-html">&lt;view class="cu-modal {{modalName=='Image'?'show':''}}"&gt; &lt;view class="cu-dialog"&gt; &lt;view class="bg-img" style="background-image: url('https://ossweb-img.qq.com/images/lol/web201310/skin/big91012.jpg');height:200px;"&gt; &lt;view class="cu-bar justify-end text-white"&gt; &lt;view class="action" bindtap="hideModal"&gt; &lt;text class="cuIcon-close "&gt;&lt;/text&gt; &lt;/view&gt; &lt;/view&gt; &lt;/view&gt; &lt;view class="cu-bar bg-white"&gt; &lt;view class="action margin-0 flex-sub solid-left" bindtap="hideModal"&gt;我知道了&lt;/view&gt; &lt;/view&gt; &lt;/view&gt; &lt;/view&gt;</code></pre>

页面列表

ITEM_HTML