简介:微信小程序的wxml和html写法很是相似,但是有些标签和html不同,本文主要介绍了微信小程序一些常用标签与html5的对应关系.
HTML | 微信小程序 |
---|---|
<div></div> | <view></view> |
<h1></h1>...<h6></h6> <p></p><span></span> | <text></text> |
<i class="icon"> | <icon></icon> |
<iput type="text"> <iput type="checkbox"> <iput type="radio"> <iput type="file"> | <input/> <checkbox/> <radio/> <view bindtab="chooseImage"> |
<a href="#"></a> | <navigator url="#" redirect></navigator > |
<img src=""> | <image src="" ></image > |
更为清爽的浏览体验,请移步我的个人博客
天心天地生的个人博客