<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>
