Home > Article > Web Front-end > How to make image ads change as the browser width changes_html/css_WEB-ITnose
The image width is 1900px. When the browser is smaller than this width, how to change the scroll -260px; value? ?
Just modify the background-position, or the values of background-position-x, background-position-y, Just change them to the values you want.
Set it as a percentage, or use javascript css to set it dynamically
Just add background-position: center; Thank you very much for your help