doushao8421
doushao8421
2016-10-17 10:10

如果跨度不能将图像居中于中间

已采纳

I'm currently trying to centre these two images in the centre of the spans they are in however no matter what I do its just not having it! Any help would be appreciated!

The company I'm now working for uses wordpress and I'm very new to it.

Screenshot

The image linked is the elements that I'm working on.

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

1条回答

  • dpxf81245 dpxf81245 5年前

    have you tried this?

    img.your-class {
    display: block;
    margin-left: auto;
    margin-right: auto }
    <img class="your-class" src="..." alt="...">

    </div>
    
    点赞 评论 复制链接分享

相关推荐