方式一:盒子设定width+margin(不推荐)

方式二:使用定位position+margin-left(不推荐)

方式三:使用定位position+transform(推荐)

方式四:使用flex(推荐)

完事啦,收工~ ^_^ Bye~

posted on 2020-12-21 09:53  bro阿柒  阅读(2002)  评论(0编辑  收藏  举报