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.

Menu