- flex布局
.box{
display:flex;
flex-direction:row | row-reverse | column | column-reverse;
flex-wrap:wrap;
justify-content: center | space-between | space-around;
align-items:flex-start | flex-end | center | baseline | stretch;
}
- 使用flex布局
.box{
display:flex;
justify-content: center;
align-items:center;
}
.box{
display:flex;
flex-direction:column;
justify-content: center;
}
- css 超出省略
在这里插入代码片
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
word-break: break-all;
text-overflow: -o-ellipsis-lastline;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
line-clamp: 2;
-webkit-box-orient: vertical;
div{
word-break:break-all;
}
word-break : normal | break-all | keep-all
参数:
normal : 依照亚洲语言和非亚洲语言的文本规则,允许在字内换行
break-all : 该行为与亚洲语言的normal相同。也允许非亚洲语言文本行的任意字内断开。该值适合包含一些非亚洲文本的亚洲文本
keep-all : 与所有非亚洲语言的normal相同。对于中文,韩文,日文,不允许字断开。适合包含少量亚洲文本的非亚洲文本
- elementui 禁止浏览器自动填充用户名或密码
readonly οnfοcus="this.removeAttribute('readonly');"
<el-form-item
v-show="dialogType === 'add'"
label="密码"
prop="password"
title="密码强度要求:需包含大小写字母、数字、特殊字符,长度6-20位"
>
<span class="required_icon">*</span>
<el-input
v-model="editAddForm.password"
:maxlength="255"
type="password"
placeholder="请输入密码"
show-password
style="width: 15vw"
readonly
onfocus="this.removeAttribute('readonly');"
/>
</el-form-item>