码迷,mamicode.com
首页 > 微信 > 详细

微信小程序(一),授权页面搭建

时间:2019-01-14 21:35:04      阅读:230      评论:0      收藏:0      [点我收藏+]

标签:样式   enter   width   http   hello   stat   items   技术   back   

 

技术分享图片

wxml代码如下:

<!--pages/index2/index2.wxml-->
<view class="index2Container">
<image class="avatar" src="/static/images/y.jpg"></image>
<text class="username">hello 微信小程序</text>
<view class="goStudy">
<text class="test">开启小程序之旅</text>
</view>
</view>

wxss样式代码如下:

/* pages/index2/index2.wxss */
page{
height:100%;
background:#8ED145;
}
/* .indexContainer{
display: flex;
flex-direction: collumn;
} */

.index2Container{
display: flex;
flex-direction: column;
align-items:center;
}

.avatar{
width:200rpx;
height:200rpx;
border-radius:100rpx;
margin:100rpx 0;
}
.username{
font-size:32rpx;
font-weight:blod;
margin:100rpx 0;
}
.goStudy{
width:220rpx;
height:80rpx;
font-size:28rpx;
border:1rpx solid #999;
border-radius:10rpx;
align-items:center;
line-height:80rpx;
}
.test{
margin-left: 15rpx;
}

button{
font-size:32rpx;
border:1px solid #999;
background:#8ED145;
}

 

微信小程序(一),授权页面搭建

标签:样式   enter   width   http   hello   stat   items   技术   back   

原文地址:https://www.cnblogs.com/ly-520/p/10268794.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!