How can the outer div be adaptive and centered depending on the number or size of the internal div? Mobile terminal

1. Expectation: the width of the outer div wants to adapt to the size of the inner div
2. Currently: this is the style of the outer div, so the width of setting div,div cannot increase
.compareGraph [data-v-19dfcc85] {

as the content increases.
padding: 0 0.5rem;
box-sizing: border-box;
margin: 0 auto;
margin-top: 0.4rem;
overflow: hidden;
min-width: 71%;
position: absolute;
left: 50%;
transform: translateX(-50%);

}


set the outer layer display: inline-block

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e51107-436b5.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e51107-436b5.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?