feat: 箭头角标。嵌套表单验证
parent
767f8f9095
commit
18a3e21b95
@ -0,0 +1,44 @@
|
||||
<template>
|
||||
<el-card header="div边框箭头和阴影问题">
|
||||
<div class="box">
|
||||
<span>内容</span>
|
||||
<div class="arrow-bottom"></div>
|
||||
<div class="arrow-right"></div>
|
||||
</div>
|
||||
</el-card>
|
||||
</template>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.box {
|
||||
position: relative;
|
||||
background: #ddd20b;
|
||||
width: 300px;
|
||||
height: 100px;
|
||||
border-radius: 8px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
filter: drop-shadow(0 5px 5px #999); // drop-shadow 阴影能让箭头一起包含阴影
|
||||
|
||||
.arrow-bottom {
|
||||
position: absolute;
|
||||
top: 100%;
|
||||
left: calc(50% - 5px);
|
||||
width: 0;
|
||||
height: 0;
|
||||
border-left: 10px solid transparent;
|
||||
border-right: 10px solid transparent;
|
||||
border-top: 10px solid #ddd20b;
|
||||
}
|
||||
.arrow-right {
|
||||
position: absolute;
|
||||
left: 100%;
|
||||
top: calc(50% - 5px);
|
||||
width: 0;
|
||||
height: 0;
|
||||
border-top: 10px solid transparent;
|
||||
border-bottom: 10px solid transparent;
|
||||
border-left: 10px solid #ddd20b;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Loading…
Reference in New Issue