欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

微信小程序 歡迎頁面的制作(源碼下載)

 更新時間:2017年01月09日 15:55:43   作者:SundayAaron  
這篇文章主要介紹了微信小程序 歡迎頁面的制作含(源碼下載)的相關(guān)資料,這里實現(xiàn)歡迎頁面,開始做應(yīng)用的時候都會用到,需要的朋友可以參考下

微信小程序歡迎頁面:

先看下最后的效果圖: 

首先打開開發(fā)工具,創(chuàng)建quick start項目,簡單的修改一下。 

  • 把Index文件夾重命名為welcome;
  • 底部的hello world改為一個類似于按鈕的樣式;
  • 添加背景顏色; 修改頂部樣式;

按鈕的實現(xiàn):

welcome.wxml

 <view class="usermotto">
 <text class="btn">開啟小程序之旅</text>
 </view>

welcome.wxss

.usermotto {
 margin-top: 200px;
 border: 1px solid #405f80;
 width: 200rpx;
 height: 80rpx;
 text-align: center;
 border-radius: 5px;
}
.btn{
 font-size: 22rpx;
 font-family: MicroSoft Yahei;
 font-weight: bold;
 line-height: 80rpx;
}

背景顏色的設(shè)置:

注意:在最外部的view設(shè)置寬高百分百,添加背景顏色是無效的。因為微信默認(rèn)外面還有一層page。 

所以需要這樣寫:

page{
 height: 100%;
 background: #b3d4db;
}

頂部設(shè)置:

app.jason

{
 "pages":[
 "pages/welcome/welcome"

 ],
 "window":{
 "backgroundTextStyle":"light",
 "navigationBarBackgroundColor": "#b3d4db",
 "navigationBarTitleText": "歡迎",
 "navigationBarTextStyle":"black"
 }
}

demo源碼 :http://xiazai.jb51.net/201701/yuanma/hyym(jb51.net).rar

感謝閱讀,希望能幫助到大家,謝謝大家對本站的支持!

相關(guān)文章

最新評論