When the div is floating, it cannot be displayed in the center when the browser window changes (because when floating, the left or right value is usually set)
You can first use jquery to get the width of the surrounding div that changes with the browser (plus listening events)
Then get the width of the div, for example:
Copy the code code as follows:
function autoWidth(){
var bW = $(".call_man").width();//Peripheral div
var popWidth = (bW-150)/2 // (150 is the width of the div)
$(".rts").css("left",popWidth); //Assign the obtained value to the div, which is the distance between the div and the left side
}
autoWidth();
window.onresize = autoWidth; //Listen for events