微信小程序view居中
来源:互联网 发布:centos squid 配置 编辑:程序博客网 时间:2024/06/05 20:25
wxml文件
<view class="main">
<view class="center"><text>申请服务商店</text>
</view>
<view class="center"><input class="inputView" name="username" placeholder="请输入服务的商店名称"/>
</view>
<view class="buttonlayout"><button class="button1">申请认证</button>
<button class="button2">添加新服务商店</button>
</view>
</view>
wxss文件
.main{
display: flex;
flex-direction: column;
justify-content: center;
}
.inputView{
border: 1px solid #abbcbc;
background-color: white;
border-radius: 10px;
width:80%;
margin-top: 10px;
height: 40px;
text-align: center;
display: flex;
justify-content: center;
}
.buttonlayout{
display: flex;
flex-direction: row;
justify-content: center;
margin-top: 50px;
}
.center{
display: flex;
justify-content: center;
}
.button1{
width:30%;
}
.button2{
width:45%;
}
0 0
- 微信小程序view居中
- view 居中
- 微信小程序水平居中,垂直居中
- 在小程序中将多个view居中显示
- 在小程序中将多个view居中显示
- View控件居中
- 微信小程序-view组件
- 微信小程序-view组件
- 微信小程序 movable-view
- 微信小程序 View布局
- 微信小程序view组件
- 微信小程序 scroll-view
- 微信小程序--cover-view
- 微信小程序switch图标垂直居中
- actionbar居中的view,标题
- Android自定义view字体居中
- 两个view 居中显示计算
- dev view 列名称居中
- 【录教程必备】推荐几款屏幕录制工具(可录制GIF)
- Longest Substring Without Repeating Characters
- DAX 语法规范
- 我理解的task_struct
- iOS 中如何添加应用自己的字体
- 微信小程序view居中
- 我使用中的Linux命令和快捷键(For Ubuntu)
- 如何使用Android Studio把自己的Android library分享到jCenter和Maven Central
- C# 坐标转换
- POJ 1061(青蛙的约会)
- typedef 的用法 (转载)
- CursorAdapter如何监听数据变化通知界面刷新
- Hibernate关联映射
- gcc -I -L -l区别