uniapp實(shí)現(xiàn)微信一鍵登錄按鈕樣式(膠囊按鈕的樣式)
更新時(shí)間:2024年07月17日 09:41:19 作者:Python私教
這篇文章主要介紹了uniapp實(shí)現(xiàn)微信一鍵登錄按鈕樣式,如何開發(fā)膠囊按鈕的樣式,需要的朋友可以參考下
效果圖:

關(guān)鍵點(diǎn):讓圓角的值變成高度的一半。
核心樣式:
.content .btn{
width: 600rpx;
border-radius: 300rpx;
background-color: rgb(62,204,97);
color: white;
font-weight: 500;
}完整代碼:
<template>
<view class="content">
<h1 class="title">寶寶相冊(cè)</h1>
<image class="img" src="../../static/boy1.png"></image>
<button class="btn">微信一鍵登錄</button>
<view>我已閱讀并同意用戶注冊(cè)協(xié)議和隱私政策</view>
</view>
</template>
<style scoped>
.content {
display: flex;
flex-direction: column;
align-items: center;
}
.content .title {
font-size: 34rpx;
font-weight: 300;
margin: 30rpx 0;
}
.content .img {
width: 80%;
margin-bottom: 30rpx;
border-radius: 3%;
}
.content .btn{
width: 600rpx;
border-radius: 300rpx;
background-color: rgb(62,204,97);
color: white;
font-weight: 500;
}
</style>到此這篇關(guān)于uniapp實(shí)現(xiàn)微信一鍵登錄按鈕樣式,如何開發(fā)膠囊按鈕的樣式的文章就介紹到這了,更多相關(guān)uniapp微信一鍵登錄按鈕樣式內(nèi)容請(qǐng)搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!
相關(guān)文章
JavaScript利用canvas實(shí)現(xiàn)星空效果
Canvas對(duì)于我們前端來說是一個(gè)非常強(qiáng)大的工具,它可以實(shí)現(xiàn)各種復(fù)雜的圖形和動(dòng)畫效果,我們?nèi)绻軌蚴炀氄莆账?我們就可以做很多炫酷的效果,本文就給大家介紹了用canvas畫出一片星空的方法,需要的朋友可以參考下2023-11-11
JavaScript實(shí)現(xiàn)Iterator模式實(shí)例分析
這篇文章主要介紹了JavaScript實(shí)現(xiàn)Iterator模式,實(shí)例分析了Iterator模式的相關(guān)實(shí)現(xiàn)技巧,需要的朋友可以參考下2015-06-06
cocos2dx骨骼動(dòng)畫Armature源碼剖析(二)
本篇主要給大家介紹cocos2dx骨骼動(dòng)畫Armature源碼剖析之flash中數(shù)據(jù)與xml中數(shù)據(jù)關(guān)系,需要的朋友一起來學(xué)習(xí)吧2015-09-09

