CSS When the picture is longer than the parent element, is there any way to center the picture horizontally?

  css3, question

After half a day, we can only move a little bit left and right with positioning.

First, the parent element position:relative; Then the sub-element picture position:absolute; left:50%; Margin-left: half width of negative picture