<br> <br> <br> 具体的なHTML部分代码如下: <br> <br> <div id="divDept" style="position:fixed; left:568px; right:0px; bottom:0px; top:4px; width:198px; height:194px ; マージン:自動;"> <br /> <table id="tableDept" style="width:250px; height:160px; border-collapse:collapse; font-size:13px; color:#000;" border="0" align="center"> <br> <tr> <br> <td id="deptTd" nowrap="nowrap" style="width:150px; height:135px; border-bottom:10px solid #39b4ee; border-top:10px solid #39b4ee; border-left:1px solid # 39b4ee; border-right:1px solid #39b4ee; 行スパン="2"> <br> <div style="width:150px; height:20px; border-bottom:1px solid #39b4ee;">部门名</div><br/> <br> <div style="width:150px; height:115px;">123</div> <br> </td> <br> <td id="deptUserTd" nowrap="nowrap" style="width:60px; height:135px; border-bottom:10px solid #39b4ee; border-top:10px solid #39b4ee; border-left:0px solid # 39b4ee; border-right:10px solid #39b4ee; 行スパン="2"> <br> <div style="width:80px; height:20px; border-bottom:1px solid #39b4ee;">姓</div><br/> <br> <div style="width:80px; height:115px;">123</div> <br> </td> <br> <td style="width:20px; height:65px; background-color:#39b4ee; border-bottom:10px solid #39b4ee; border-top:10px solid #39b4ee; border-left:0px solid #39b4ee; border -right:0px solid #39b4ee;" align="center" valign="top"> <br> <span id="sDeptSpan" onclick="setsDeptSpanInnerHTML()" style="cursor:pointer;"><br/>所<br/>属<br/>部<br />门 <br> </td> <br> </tr> <br> <tr><td style="width:20px; height:90px;"></td></tr> <br> </テーブル> <br> </div> <br> <br>回复讨论(解决方案)<h2> </h2> 有人帮忙解决下吗?求大神啊~~~ <p class="sougouAnswer"> </p> 在table那里加上 cellpadding="0" cellspacing="0" <p class="sougouAnswer"> </p> 你就用4个div <p class="sougouAnswer">不就好了 <br> 上下一样の宽度 简单实用 <br> </p> <div class="code" style="position:relative; padding:0px; margin:0px;"><pre class="sycode" name="code">table { border-collapse: collapse; border-spacing: 0;}</pre><div class="contentsignin">ログイン後にコピー</div></div> <p class="sougouAnswer"></p>