Home  >  Article  >  Web Front-end  >  TD width problem when TD cells are merged_HTML/Xhtml_Web page production

TD width problem when TD cells are merged_HTML/Xhtml_Web page production

WBOY
WBOYOriginal
2016-05-16 16:41:191586browse

In the example below, when the width of the td where the name is located is 60px, if there is less text in the second line, the display will be normal. If there is more text in the second line, the display will be abnormal

Copy code
The code is as follows:



< ;head>

Script Home
< ;style type="text/css">
.mTable{width:200px;border:1px solid #666;border-collapse:collapse}
.mTable td{border:1px solid #666}











Name: Someone
Personal profile









Name: Someone
Personal profilePersonal profilePersonal profile




Solution one: (for the The width of the two-column td is also set)

Copy code
The code is as follows:

< !DOCTYPE HTML>



< ;title>Script Home










< ;/tr>
Name: Someone
Personal profile










Name: Someone
Personal profilePersonal profilePersonal profile

< /body> Copy the code

The code is as follows:





脚本之家











姓名: 某某
个人简介










姓名: 某某
个人简介个人简介个人简介



Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn