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

WBOY
Release: 2016-05-16 16:41:19
Original
1633 people have browsed it

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:





脚本之家











姓名: 某某
个人简介










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



Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template