How to use CSS to make a width-adaptive table?

The width of

accounts for 100% of the full content box, and each td should be equally divided and centered. How do you write it?

Mar.21,2021

table{
    width: 100%;
    border-collapse: collapse;
}
table,tr,th,td{
    text-align: center;
    border: 1px solid;
}

I just tried it out by myself, so it should be no problem to write it this way.

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-1b36e9b-41091.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-1b36e9b-41091.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?