更新时间:2023-10-25 15:12:22
您需要添加垂直对齐:首位;
你的柜台,在这种情况下的ID #lblCartCount
You need to add vertical-align: top;
to your counter, in this case to the ID #lblCartCount
#lblCartCount {
font-size: 12px;
background: #ff0000;
color: #fff;
padding: 0 5px;
vertical-align: top;
}
下面是一个 在线例如
Here's an online example