首页 > 其他分享 >uniapp button样式置空

uniapp button样式置空

时间:2023-04-26 20:34:36浏览次数:44  
标签:uniapp right color button height 样式 置空 border

  • 小程序转发,得用button,样式太丑了,
				<view class="one">
					<button data-name="shareBtn" open-type="share" hover-class="none">
						<image src="/static/index/carddetail/sendcard.png"></image>
						<view class="iconname">转发名片</view>
					</button>
				</view>
button{// 这里我试了,用class还不行,只能用button
					position: relative;
					display: block;
					margin-left: auto;
					margin-right: auto;
					padding-left: 0px;
					padding-right: 0px;
					box-sizing: border-box;
					// font-size: 18px;
					text-align: center;
					text-decoration: none;
					// line-height: 1;
					line-height: 1.35;
					// border-radius: 5px;
					-webkit-tap-highlight-color: transparent;
					overflow: hidden;
					color: #000000;
					background-color: #fff;
					width: 100%;
					height: 100%;
				}
				button::after{
					border:none;
				}

标签:uniapp,right,color,button,height,样式,置空,border
From: https://www.cnblogs.com/pansidong/p/17357192.html

相关文章

  • uniapp 动态修改 css 样式
    css使用var注入变量,达到设置动态样式的需求声明css变量时,变量名前面要加两根连词线(--);变量使用kebab-case命名方式,即--header-color而不是--headerColor;变量名大小写敏感,--header-color和--Header-Color是两个不同的变量名;var()函数用于读取变量。接下来,看......
  • 如果默认值一般设置为false或置空,那么可以给变量名取相反含义,以适应大多数人的第一感
    这个之前也知道,不过今天看https://www.ag-grid.com/angular-data-grid/grid-interface/的时候见有提到,记录下: Wherethepropertyisaboolean(true or false),then false (orleftblank)isthedefaultvalue.Forthisreason,on/offitemsarepresentedinaw......
  • uniapp微信小程序支付
    完全依赖后台接口实现微信小程序只能用微信支付,不用考虑支付宝接口submit(){varself=this;//console.log(this.price,this.payType)varmoney=100000;varamount=this.price;......
  • vue3 uniapp Uncaught (in promise) TypeError: Cannot read properties of null (rea
    引发这个问题是在三级页面中使用uni.navigateBack({delta:2})返回到一级页面再重一级页面进入二级页面二级页面中引用的组件引发的emitsOptions报错//原因:我在二级页面中的组件使用ts的emit写法引发的报错constemit=defineEmits<{(e:'confirm',contents:string):......
  • uniapp自带的提示窗口
    一、成功提示弹窗uni.showToast({title:'成功提示',//将值设置为success或者直接不用写icon这个参数icon:'success',//显示持续时间为2秒duration:2000})二、加载提示弹窗//前端数据请求时,显示加载提示弹框uni.showLoading({title:'加......
  • uniapp页面中的按钮使用分享功能
    https://www.codenong.com/cs109827730/......
  • uniapp微信小程序直播
    https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/liveplayer/live-player-plugin.htmlhttps://docs.qq.com/doc/DZHhzV0FiYXRQV01i不能用<live-player>,因为live-player的src要赋值rtmp格式流视频文件,而<navigator>对应的小程序插件只需要从接......
  • SunnyUI的Button支持换行
    最近在使用SunnyUI的控件写东西,遇到非常难受的问题,Button不支持换行,下载了SunnyUI源码,修改内容如下   找到UIButton代码新增重写privatestring_text;//重写Text属性[Editor("System.ComponentModel.Design.MultilineStringEditor,System.D......
  • uniapp 做app与h5开发的问题
    目前产品是使用uniapp做跨平台开发的安卓ios的app以及公众号也就是h5版本基于uniapp的一些api只能提供app端的使用先前的设想是如果有类似下图的接口不支持h5的 就使用html5的api去介入设备控制开始不打算用wxsdk是考虑后续如果要发布到不同平台......
  • uniapp 打包aab上传到google play的时候google 登录报异常
    因为App上传到GooglePlay后,会被重新签名(PlayAppSigning)谷歌为你生成的签名SHA-1将谷歌为你生成的签名SHA-1证书指纹复制到本应用已创建的凭据SHA-1处,点击保存后,ClientID并没有变,所以不用重新打包。现在,不用等,你可以试试Google+登录了。Google+登录ok。参考地址:https......