如何使按钮仅在输入焦点时出现 [英] How to make a button appear only when input is focused
本文介绍了如何使按钮仅在输入焦点时出现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这是我的 HTML:
<div><div v-if="id!==undefined"><strong>ID</strong><输入身份证=身份证"v-model="id"类型=文本"只读><按钮类型=按钮"@click="doCopy"><font-awesome-icon :icon="copyIcon"/>按钮>
</模板>
这是我的 CSS: