PDA

View Full Version : Sữa giùm code HTML ???



dinhhiep36
10-06-2010, 13:22
mình có một đoạn code liên liết để làm widget cho trang CMS (vbb).
mình test thì thấy bình thường, nhưng cho vào widget thì nó bị lỗi, toàn bộ các thông tin trên trang CMS hiện trên một cột duy nhất.

<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>

<td id="MSOZoneCell_WebPartWPQ2" vAlign="top"><table TOPLEVEL border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td valign="top"><div WebPartID="8f246ea3-f98e-45c9-af74-811528fbd7d4" HasPers="false" id="WebPartWPQ2" width="100%" class="ms-WPBody" allowDelete="false" style="" ><table cellspacing="0" cellpadding="0" border="0" bgcolor="#fff3bd" width="100%">
<tbody>
<tr cellpadding="0" cellspacing="0" border="0">
<td height="21" background="http://www.hochiminhcity.gov.vn/_layouts/LacVietBio/eofficeimg/Giaodien/cityweb/link/bg_website_link.gif" align="center" width="100%" style="color: rgb(255, 0, 0); font-size: 11px; font-weight: bold;">
LIÊN KẾT GIÁO DỤC</td>
</tr>
<tr cellpadding="0" cellspacing="0" border="0">
<td background="/_layouts/LacVietBio/eofficeimg/Giaodien/cityweb/link/bg_website_link.gif" width="100%" border="0">
<table cellspacing="0" cellpadding="0" border="0" bgcolor="#ebebeb" width="100%">
<tbody>

<!-- bắt đầu danh sách các trường đại học trọng điểm quốc gia-->

<tr>
<td height="21" background="images/bg_website_link.gif" align="middle" valign="center">
<SELECT id=cbo-weblink style="WIDTH: 100%;" onchange="window.open(this.options[this.selectedIndex].value,'_blank'); this.options[0].selected=true;">
<option selected="">Đại Học Quốc Gia</option>
<option value="http://www.vnu.edu.vn">ĐHQG Hà Nội</option>
<option value="http://www.vnuhcm.edu.vn">ĐHQG Tp HCM</option>

<!--Kết thúc danh sách các trường đại học trọng điểm quốc gia-->

</select>
</td>
</tr>
</tbody>
</table>

ljrit
23-06-2010, 21:42
Thiếu cả mớ thẻ đóng thì nó bị mất trật tự chứ sao đâu. Bác check lại tag từng thẻ đóng mở mà xem.