在使用mui的折叠面板时,我们不重视样式,重视实现效果,所以是对js的剖析!
在使用时只需写出这么几个类并且写对位置便可实现效果;
<ul>
<li class="mui-table-view-cell mui-collapse">
<a class="mui-navigate-right" href="#">男装</a>
<div class="mui-collapse-content">
西服降价啦!
</div>
</li>
<li class="mui-table-view-cell mui-collapse">
<a class="mui-navigate-right" href="#">女装</a>
<div class="mui-collapse-content">
女装便宜啦
</div>
</li>
</ul>
同时不能忘记引用mui.js文件,否则是不会出来效果的