weixin_54892812
李方鑫Xin
2021-01-25 11:46

a标签中嵌套img和span,img和span中间留有巨大空白,这是为什么?

  • css
  • less
 a {
        float: left;
        width: 150rem/@baseFont;
        height: 140rem/@baseFont;
        text-align: center;

        img {
            display: block;
            width: 82rem/@baseFont;
            height: 82rem/@baseFont;
            margin: 10rem/@baseFont auto 0;
        }

        span {
            font-size: 25rem/@baseFont;
            color: #333;
        }
    }

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

4条回答

为你推荐

换一换