CSS | IE/Edge | Firefox | Chrome | Opera | Safari |
---|---|---|---|---|---|
CSS2 | 7.0 | 1.0 | 4.0 | 10.1 | 3.1 |
要素の最大の横幅を指定します。
値 | 説明 |
---|---|
<length> | 横幅を 10px 1.5em などの長さの単位で指定します。 |
<percentage> | 横幅を 10% など、要素の大きさに対するパーセントで指定します。 |
none | 横幅を制限しません。 |
<table> <tr> <td style="max-width:200px; border:1px solid #999999"> ああああ </td> </tr> </table> <table> <tr> <td style="max-width:200px; border:1px solid #999999"> ああああああああああ </td> </tr> </table> <table> <tr> <td style="max-width:200px; border:1px solid #999999"> ああああああああああああああああああああ </td> </tr> </table>
ああああ |
ああああああああああ |
ああああああああああああああああああああ |