.con{ position: relative; } .con .bg{ width: 100%; display: block; } .con .img{ position: absolute; top: 17.1%; width: 28%; left: 50%; transform: translateX(-50%); } .share{ position: absolute; right: 10px; padding: 3px 8px; bottom: 5px; font-size: 12px; z-index:1000; } .img img{ width: 100%; }