当前位置:网站首页>微信小程序之input调整

微信小程序之input调整

2022-06-23 13:13:00 qq_45911550

参考链接
1、wxml代码

<view class="getinput">
    <view class="the_first">
        <input name="suibian" class="password" auto-focus placeholder="请输入"/>
    </view>
</view>

2、wxss代码

.getinput{
    
  border:1px solid gray;
  margin:100px;
  text-align: center;
}

效果图:
在这里插入图片描述
理解:根据浏览器渲染的盒子模型,我们可以设置其属性
在这里插入图片描述
content相当于这里的view标签,我们可以通过设置一下属性来进行规范
在这里插入图片描述
在这里插入图片描述

原网站

版权声明
本文为[qq_45911550]所创,转载请带上原文链接,感谢
https://blog.csdn.net/qq_45911550/article/details/120394921

随机推荐