简体   繁体   中英

Text overflows colum in html 5 table

In the mobile layout I am facing the following problem:

在此处输入图像描述

The text of the second column overflows the vertical column separator line. I tried putting some margin, but if I put some margin and the text is long, the final part of the text aligns on the left in the first column.

Can you provide me a hint as regards the CSS part? 在此处输入图像描述

在此处输入图像描述

without display block:

在此处输入图像描述

Don't use display: block on td table cells - this will destory the table structure and its automatic layout. Just erase that to reset it to the default display: table-cell

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM