【发布时间】:2022-02-08 00:47:24
【问题描述】:
我创建了一个包含图像和文本的小盒子 div。但我不知道如何在它周围添加一个表单,当我将鼠标悬停在框的任何部分时,它会点击提交。
.trust-box {
width: 200px;
height: 80px;
margin: 20px;
background: #fff;
color: #000;
border-radius: 5px;
text-align: center;
}
<div class="trust-box">
<img src="https://images.pexels.com/photos/34299/herbs-flavoring-seasoning-cooking.jpg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260" alt="trust" width="50" height="50">
<span>Portis Wallet</span>
</div>
再一次,如何使图像和文本在框内水平对齐? The div box image.
【问题讨论】:
标签: html css image submit vertical-alignment