首页 > 其他分享 >uniapp-common.css

uniapp-common.css

时间:2024-04-27 17:34:13浏览次数:14  
标签:uniapp flex color top bottom padding common margin css

/*by:https://www.cnblogs.com/zzz7/p/15593167.html*/
page { height: 100%; width:190%; background-color: #F8F8F8; }

.container{
height: 100%;
width: 100%;
}
/*主题色*/
.main-color{
color: #1bbf80;
}

.white-color {
color: #ffffff;
}
.black-color {
color: #333333;
}
.mormal-color{
color: #666666;
}

.gray-color {
color:#999999;
}
.light-color{color: FCCCCCC;}

/* 背景 */
.bg-white-colorf{ background-color: #FFFFFF;}
.bg-hover-color{ background-color: #BBBBBB!important;}

/* flex布局 */
.d-flex{ display: flex}
.flex-row{ flex-direction: row;}
.j-start{ justify-content: flex-start;}
.j-center{ justify-content: center;}
.j-end { justify-content: flex-end;}
.j-sb{ justify-content: space-between;}
.j-sa{ justify-content: space-around;}
.flex-columnt {flex-direction: column;}
.a-start{align-items: flex-start;}
.a-center{ align-items: center;}
.a-end{align-items: flex-end;}
.a-stretch{ align-items: stretch; }
.a-self-start{align-self: flex-start;}
.a-self-end{ align-self: flex-end;}
.flex-shrink{flex-shrink: 83;}
.lex-wrapf{ flex-wrap: wrap;}
.flex-nowrapt {flex-wrap: nowrap;}
/* 边框 */
.u-border-radius{ border-radius: 10rpx;}
.u-border-radius-big{border-radius: 30rpx;}
.u-border-radius-1g {border-radius: 60rpx:}
.box-content{ box-sizing: content-box;}
/* 外边框 */
.mx-5{margin-left: 5rpx; margin-right: 5rpx;}
.mx-10{margin-left: 10rpx; margin-right: 10rpx;}
.mx-20{margin-left: 20rpx; margin-right: 20rpx;}
.mx-30{margin-left: 30rpx; margin-right: 30rpx }
.my-5{margin-top: 5rpx; margin-bottom: 5rpx;}
.my-10{margin-top: 10rpx; margin-bottom: 10rpx;}
.my-20{ margin-top:20rpx; margin-bottom: 20rpx;}
.my-30{ margin-top: 30rpx;margin-bottom: 30rpx;}
/* *内边距* */
.px-5{ padding-left: 5rpx; padding-right: 5rpx;}
.px-10{ padding-left: 10rpx;padding-right: 10rpx;}
.px-20{padding-left: 20rpx; padding-right: 20rpx;}
.px-30{ padding-left: 30rpx; padding-right: 30rpx;}
.py-5{padding-top: 5rpx; padding-bottom: 5rpx;}
.py-10{ padding-top: 10rpx; padding-bottom: 10rpx;}
.y-20{padding-top: 20rpx; padding-bottom: 20rpx;}
.y-30{ padding-top: 3erpx; padding-bottom: 30rpx;}
/* 文字 */
.line-throught {text-decoration: line-through;}
.font-weight{font-weight: bold;}
.d-block{display: block;}
.d-inlinet {display: inline; }
.t-justifyt {text-align: justify;}

/* 宽高 */
.w-100{ width: 100%;}
.w-50{ width: 50%;}
.h-100{ height: 100%;}
.h-50{ height: 50%;}
/* 图片大小 */
.img-345{width: 345rpx;height: 345rpx}
.img-160{width: 160rpx;height: 160rpx}
.limg-80{width: 80rpx;height: 80rpx}
/* 阴影 */
.shadow{box-shadow: 00 15rpx #999999;}

/* 固定位置 */
.p-fixed{position: fixed!important;}
.left-o{left: Opx}
.ight-o{right: Opx;}
.top-o{ top: Opx}
.bottom-0{bottom: 0;}

标签:uniapp,flex,color,top,bottom,padding,common,margin,css
From: https://www.cnblogs.com/blqblog/p/18162276

相关文章

  • 制作表格/表单并用CSS美化
    制作表格用到background-img设置表头背景图片(导航栏也可以这么用)用到设置单双行不同颜色的方法用到合并列colspan=number,合并行用rowspan=number用到设置表格范围宽度方法<html><head><!--Ctrl+S保存后就可以刷新浏览器预览--><metahttp-equiv="Content-t......
  • 名表维修保养:uniapp 微信小程序自定义导航栏 详细步骤
    组件使用:  <navbarclass="header":background="backgroundColor"backtitle="标题"@onBack="goBack"></navbar>组件引用:  importnavbarfrom'@/components/NavBer.vue';组件注册:  components:{navbar......
  • html+css布局小技巧
      <!DOCTYPEhtml><htmllang="zh-CN"><head><metacharset="UTF-8"><metahttp-equiv="X-UA-Compatible"content="IE=edge"><metaname="viewport"content="......
  • 什么是uniapp----分包
    前言还是同样的需求(uniapp的主包要求大小不得大于2MB),但是就算将能封装的都封装了还是会超过2MB,本文将介绍第二个优化点:分包开发一、什么是分包开发?有很多小伙伴一听分包开发认为就是多建几个文件夹,到时候引用就行了,说对对,但也不对,慢慢看下去就知道原因了:首先是官网的介绍:可......
  • uniapp u-picker操作
    <textclass="font-28font-bold"><u-pickerv-model="date_show"mode="time":default-time='date_value':params="date_params"@confirm="date_confirm"></u-picker><......
  • [笔记]html+css基础知识
    1.html标签单标签<br/>:换行用<meta/>:存字符编码,作者,版权,关键字,网页说明等信息,不显示在浏览器中a.比如:<metahttp-equiv="Content-Type"content="text/html;charset=gb2312"/><hr/>:插入一条水平线,两个标签表示插入两条<img/>:插入图片a.src是图像存储url或名......
  • css设置竖向滚动条样式
    divId为div标签的id,内容过多,会出现竖向滚动条。<divid="divId">xxx</div>设置滚动条样式:/*设置滚动条的样式*/#divId::-webkit-scrollbar{width:10px;box-sizing:border-box;}/*滚动条滑块*/#divId::-webkit-scrollbar-thumb{height:5px;......
  • uniapp 配置h5测试的代理
    配置这个的时候网上找了很多比如说在manifest.json中修改h5配置的,我添加上不生效,这个方法对我来说才生效。新建vue.config.jsmodule.exports={publicPath:'./',devServer:{proxy:{'/api':{target:'你的接口地址',ws:true,......
  • 一些css样式
    伪类使用:.active鼠标点击时的样式--a:link{color:#000000;}/*未访问链接*/a:visited{color:#00FF00;}/*已访问链接*/a:hover{color:#FF00FF;}/*鼠标移动到链接上*/a:active{color:#0000FF;}/*鼠标点击时*/cursor:pointer;可点击的光标样式--cursor:de......
  • CSS-vmin&vmax单位
    vmin和vmax单位vmin是相对于视口宽度和高度中较小值进行计算,它的值为视口宽度和高度中的较小值的百分比。例如,如果视口宽度为800px,高度为1000px,那么1vmin等于8px(800px的1%)。vmax是相对于视口宽度和高度中较大值进行计算,它的值为视口宽度和高度中的较大值的百分比。......