Underscore between two image-links

后端 未结 1 622
悲&欢浪女
悲&欢浪女 2021-02-11 23:55

I have the following HTML code inside a div:


\"Image

        
1条回答
  •  有刺的猬
    2021-02-12 00:10

    The underscore is one or more underlined space characters. The fix is to remove anything that might be taken as a space inside an a element, such as a line break. A line break and other whitespaceinside a tag (between < and >) is OK, though:

    PHP powered
    MySQL powered
    

    This means that there is still a line break between the a elements, and browsers generally treat it as a space. In this case, this probably does not matter, since the space is outside a elements and thus won’t be underlined; it just causes a little spacing. But to make the images more clearly separate, consider adding padding-left on the second a element.

    0 讨论(0)
提交回复
热议问题