fix:修改选择按钮;
This commit is contained in:
parent
e1c717eec4
commit
04000e7279
|
@ -22,13 +22,11 @@
|
|||
|
||||
<!-- 裁剪按钮-->
|
||||
<div class="btn">
|
||||
<el-button style="margin-right: 20px">选择</el-button>
|
||||
<input
|
||||
class="upload"
|
||||
type="file"
|
||||
accept=".png, .jpg, .jpeg"
|
||||
@change="uploadImg"
|
||||
/>
|
||||
<label for="submit">
|
||||
<div class="lBut"><span>选择</span></div>
|
||||
</label>
|
||||
<input class="upload" id="submit" accept=".png, .jpg, .jpeg" type="file" style="display: none;" @change="uploadImg" />
|
||||
<!-- <el-button style="margin-right: 20px;cursor:pointer">选择</el-button> -->
|
||||
|
||||
<el-button @click="cancle">取消</el-button>
|
||||
<el-button @click="sureSava">提交</el-button>
|
||||
|
@ -216,6 +214,7 @@ export default {
|
|||
position: relative;
|
||||
display: flex;
|
||||
margin-top: 30px;
|
||||
cursor: pointer;
|
||||
> .upload {
|
||||
display: block;
|
||||
width: 60px;
|
||||
|
@ -224,6 +223,7 @@ export default {
|
|||
top: 0;
|
||||
left: 0;
|
||||
opacity: 0;
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -265,4 +265,22 @@ export default {
|
|||
background-color: rgba(43, 43, 43, 0.7215686275);
|
||||
}
|
||||
}
|
||||
.lBut{
|
||||
width: 87px;
|
||||
height: 32px;
|
||||
font-size: 14px;
|
||||
line-height: 1.15;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
border-radius: 4px;
|
||||
padding: 8px 10px;
|
||||
margin-right: 10px;
|
||||
transition: all 0.5s;
|
||||
white-space: nowrap;
|
||||
background-color: #409eff;
|
||||
color: white;
|
||||
border: 1px solid #409eff;
|
||||
cursor: pointer;
|
||||
}
|
||||
</style>
|
||||
|
|
Loading…
Reference in New Issue