whychw
2020-12-04 6557cf808e99a7c58f19f964c36f932a315d4432
src/components/ScienceBox.vue
@@ -8,6 +8,9 @@
                <slot></slot>
            </div>
        </div>
        <div class="input_title">
            <slot name="title"></slot>
        </div>
    </div>
</template>
@@ -102,6 +105,14 @@
    min-width: 1rem;
    min-height: 1rem;
}
.input_title {
    position: absolute;
    bottom: 100%;
    left: -8px;
    right: -8px;
}
</style>