i have the following code
<img src="/Content/Images/Icons/phone2.png"> <b>Phone Numbers:</b> (No orders via Phone at this time)<br />
and 开发者_JAVA百科it looks fine in firefox:
but when i open it in chrome, it shows up like this:
does anyone know why chrome would raise the second part of this text ?
Use valign attribute in your image tag, or CSS vertical-align property applied to the image.
It looks like the result of different browser default styles applying to the various elements in your source. Try to set a vertical-align
property for the <b>
and <img>
and test it again, for example:
b,img{
vertical-align:baseline;
}
精彩评论