【发布时间】:2020-10-13 20:06:00
【问题描述】:
我在此页面上有一个文本链接,https://melodylakerart.com/product/sun-on-skin-mask-duplicate-1/ 将鼠标悬停在该链接上时会弹出一个图像。
如您所见,文本已损坏 - “敏感”和“关闭”之间的所有文本都应位于一行(包括链接)
如何摆脱奇怪的换行符?
CSS 是:
.hover_img a {
position: relative;
}
.hover_img a span {
position: absolute;
display: none;
z-index: 99;
}
.hover_img a:hover span {
display: block;
}
.hover_img a:hover span {
display: block;
width: 350px;
}
HTML 是:
Sensitive ears? Add an
<div class="hover_img">
<a href="#">adjustable silicone strap
<span>
<img src="https://melodylakerart.com/wp-content/uploads/2020/06/Hanwell-Rainbow-Mask-1.jpg" alt="image" height="100" />
</span>
</a>
<div>
to take the pressure off
【问题讨论】:
标签: html css wordpress woocommerce hover