我有一个应该引用 4 个图像的单选按钮,所以我只在图像旁边放了一个空值的单选按钮,但是当我这样做时,单选按钮几乎低于图像的底部.我想将它抬高,使其位于图像高度的中间。这是我的 HTML:
<input type="radio" name="computer" value="">
<img class="extra-margin-human" width="50px" height="50px" src="images/other/human.jpg"/>
<img class="extra-margin-computer" width="50px" height="50px" src="images/other/computer.jpg"/>
<img class="extra-margin-computer" width="50px" height="50px" src="images/other/computer.jpg"/>
<img class="extra-margin-computer" width="50px" height="50px" src="images/other/computer.jpg"/>
如何让单选按钮上移?
最佳答案
将 vertical-align:middle;
应用于您的元素。
关于HTML/CSS - 你如何提出一个单选按钮?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23156965/