CSS :hover闪烁问题

范福
2023-12-01

CSS :hover闪烁问题解决

html

<div>
	<div class="el-image">
	</div>
	<div slot class="delete" @click="del(item)">
		删除
	</div>
</div>

css

	.delete {
		display: none;
	}

	.el-image:hover+div {
		display: block;
	}

	.delete:focus-within,
	.delete:hover {
		display: block;
	}
 类似资料: