整理不易,用的着就推荐给有用的人
/*页面尺寸基本设置*/
page{width:100%;height:100%;box-sizing:border-box;}
image{
width: 100%;height: 100%;
}
.uni-popup__wrapper.uni-custom .uni-popup__wrapper-box{
background: none!important;
}
.page-root{
width:100%;min-height:100%;
display:flex;
flex-direction:column;
box-sizing:border-box;
background-color:#F7F7F7;
}
.page-tabbar-root{
width:100%;height:100%;
display:flex;
flex-direction:column;
box-sizing:border-box;
justify-content:space-between;
}
.status-bar:before{/*顶部状态栏高度预留*/
content:'';
display:block;
height: var(--status-bar-height);
width:100%;
background-color:transparent;
}
.tab-component-page{display:flex;flex-direction:column;height:100%;}
/*flex 弹性布局*/
.me-fx-row{/*横向排列*/
display:flex;
}
.me-fx-row-c{/*左右居中*/
display:flex;
justify-content:center;
}
.me-fx-row-sb{/*两端对齐*/
display:flex;
justify-content:space-between;
}
.me-fx-row-sb-c{/*两端对齐 上下居中*/
display:flex;
justify-content:space-between;
align-items:center;
}
.me-fx-row-sb-start{/*两端对齐 上对齐*/
display:flex;
justify-content:space-between;
align-items:flex-start;
}
.me-fx-row-sb-end{/*两端对齐 底部对齐*/
display:flex;
justify-content:space-between;
align-items:flex-end;
}
.me-fx-row-sa{/*两端对齐右边距*/
display:flex;
justify-content:space-around;
}
.me-fx-row-sa-c{/*两端对齐右边距 上下居中*/
display:flex;
justify-content:space-around;
align-items:center;
}
.me-fx-row-sa-end{/*两端对齐右边距 底部对齐*/
display:flex;
justify-content:space-around;
align-items:flex-end;
}
.me-fx-row-c-c{/*居中对齐 上下居中*/
display:flex;
justify-content:center;
align-items:center;
}
.me-fx-row-c-end{/*居中对齐 底部对齐*/
display:flex;
justify-content:center;
align-items:flex-end;
}
.me-fx-row-end{/*右对齐*/
display:flex;
justify-content:flex-end;
}
.me-fx-row-end-c{/*右对齐 上下居中*/
display:flex;
justify-content:flex-end;
align-items:center;
}
.me-fx-row-start-c{/*左对齐 上下居中*/
display:flex;
align-items:center;
}
.me-fx-row-start-end{/*左对齐 底部对齐*/
display:flex;
align-items:flex-end;
}
.me-fx-col{/*纵向排列*/
display:flex;
flex-direction:column;
}
.me-fx-col-c{/*上下居中*/
display:flex;
flex-direction:column;
justify-content:center;
}
.me-fx-col-sb{/*两端对齐*/
display:flex;
flex-direction:column;
justify-content:space-between;
}
.me-fx-col-sb-c{/*两端对齐 左右居中*/
display:flex;
flex-direction:column;
justify-content:space-between;
align-items:center;
}
.me-fx-col-sa{/*两端对齐有边距*/
display:flex;
flex-direction:column;
justify-content:space-around;
}
.me-fx-col-sa-c{/*两端对齐有边距 左右居中*/
display:flex;
flex-direction:column;
justify-content:space-around;
align-items:center;
}
.me-fx-col-c-c{/*上下左右居中*/
display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
}
.me-fx-col-start-c{/*上对齐 左右居中*/
display:flex;
flex-direction:column;
align-items:center;
}
.me-fx-col-end{/*下对齐*/
display:flex;
flex-direction:column;
justify-content:flex-end;
}
.me-fx-col-end-c{/*下对齐 左右居中*/
display:flex;
flex-direction:column;
justify-content:flex-end;
align-items:center;
}
.me-fx-1{/*占满剩余空间*/
flex:1;
}
/*浮动布局*/
.me-fot-parent:after{/*加在浮动元素的父元素上 解决因所有子元素浮动后父元素的高度问题*/
content:'';
display:block;
clear:both;
}
.me-fot-lt{/*左浮动*/
float:left;
}
.me-fot-rt{/*右浮动*/
float:right;
}
/*其他常用样式*/
.me-text-beyond{/*文本内容超宽度省略号显示 单行*/
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
width:100%;
}
.me-text-beyond-multi{/*文本内容超宽度省略号显示 多行*/
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
text-overflow: ellipsis;
}
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
- 57
- 58
- 59
- 60
- 61
- 62
- 63
- 64
- 65
- 66
- 67
- 68
- 69
- 70
- 71
- 72
- 73
- 74
- 75
- 76
- 77
- 78
- 79
- 80
- 81
- 82
- 83
- 84
- 85
- 86
- 87
- 88
- 89
- 90
- 91
- 92
- 93
- 94
- 95
- 96
- 97
- 98
- 99
- 100
- 101
- 102
- 103
- 104
- 105
- 106
- 107
- 108
- 109
- 110
- 111
- 112
- 113
- 114
- 115
- 116
- 117
- 118
- 119
- 120
- 121
- 122
- 123
- 124
- 125
- 126
- 127
- 128
- 129
- 130
- 131
- 132
- 133
- 134
- 135
- 136
- 137
- 138
- 139
- 140
- 141
- 142
- 143
- 144
- 145
- 146
- 147
- 148
- 149
- 150
- 151
- 152
- 153
- 154
- 155
- 156
- 157
- 158
- 159
- 160
- 161
- 162
- 163
- 164
- 165
- 166
- 167
- 168
- 169
- 170
- 171
- 172
- 173
- 174
- 175
- 176
- 177
- 178
- 179
- 180
- 181
- 182
- 183
- 184
- 185
- 186
- 187
- 188
- 189
- 190
- 191
- 192
- 193
- 194
- 195
- 196
- 197
- 198
- 199
- 200
- 201
- 202
- 203
- 204
- 205
- 206
- 207
- 208
- 209
- 210
- 211
- 212
- 213
- 214
- 215
- 216
- 217
- 218
- 219
- 220
- 221
- 222