Centering the div is very simple:
That is, add margin:0px auto;
Centering the div is very simple:
margin:0px auto; It didn’t work. left: 50%;width:60%; also doesn’t work, because margin-left: is difficult to determine.
Is there any good way?
The current DIV cannot be adaptively centered in the absolute state, but it can be done indirectly through some methods:
The current DIV is in absolute There is no way to adaptively center in the state, but you can do it indirectly through some methods:
The current DIV cannot be adaptively centered in the absolute state, but it can be done indirectly through some methods:
The current DIV is in absolute There is no way to adaptively center in the state, but you can do it indirectly through some methods:
The current DIV cannot be adaptively centered in the absolute state, but it can be centered through some The method is to do it indirectly: