微信小程序一些常用标签与html的对应关系
简介:微信小程序的wxml和html写法很是相似,但是有些标签和html不同,本文主要介绍了微信小程序一些常用标签与html5的对应关系.
示例:
HTML | 微信小程序 |
---|---|
<div></div> |
<view></view> |
<h1></h1>...<h6></h6> <p></p><span></span> |
<view></view> |
<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 > |