How to use Table-cell attribute to make div realize location
This article introduces the relevant knowledge of "how to use Table-cell attributes to enable div to achieve positioning". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
In the past, table was widely used in page layout, one of the benefits is that elements can be easily located, there will not be any runaway problems. If you use div, it's annoying to inline and float. How can I enjoy the benefits of table positioning when using div? Here's an example:
The code is as follows: