微信咨询

微信咨询

13610*910*9

服务热线 7*24小时

电话咨询

淘宝weapp模板语法【1688无线模板开发】学习记录

iamdu2022-03-29 16:39:27 浏览: 471474
<?xml version="1.0" encoding="GBK"?>
<ui>
  <view>
    <container>
      <styleBinding>
        <attribute name="backgroundColor" value="#000000"/>
        <attribute name="width" value="640"/>
        <attribute name="height" value="640"/>
      </styleBinding>
      <subViews>
        <container>
          <styleBinding>
            <attribute name="position" value="absolute"/>
            <attribute name="top" value="20"/>
            <attribute name="left" value="20"/>
            <attribute name="width" value="100"/>
            <attribute name="height" value="100"/>
            <attribute name="backgroundColor" value="#ffffff"/>
          </styleBinding>
        </container>


        <container>
          <styleBinding>
            <attribute name="position" value="absolute"/>
            <attribute name="top" value="100"/>
            <attribute name="right" value="10"/>
            <attribute name="width" value="100"/>
            <attribute name="height" value="100"/>
            <attribute name="backgroundColor" value="#ff0000"/>
          </styleBinding>
        </container>


      </subViews>
	  
	  

	  
	  
    </container>
  </view>
</ui>

结构基本就是<ui> <view><container><subViews>
<subViews> 里可以含有多个<container>