【发布时间】:2012-08-06 08:28:29
【问题描述】:
HTML 标记:
<table class='cardc'>
<tr>
<td rowspan='5' width='10%'>
<img src='http://fwfn.ca/sites/default/files/pictures/blank_person.jpg' height='120' width='100'/>
</td>
<td width='70%' colspan='3'>"
."<a href='".$profilePage."&sid=".$sfid."#box-one'>".($record->fields->FirstName)." ".($record->fields->LastName)."</a></font>
</td>
<td>
".$record->fields->Email."
</td>
</tr>
<tr>
<td class='greyF' colspan='3'>
".$record->fields->Country_of_Citizenship__c."
</td>
</tr>
<tr>
<td>
<div class='greyF'>year</div>".$record->fields->Fellowship_year__c."
</td>
<td>
<div class='greyF'>Organization</div>".$record->fields->Partner_Organization__c."
</td>
<td>
<div class='greyF'>Country</div>".$record->fields->Fellowship_Country__c."
</td>
</tr>
<tr>
<td colspan='3'>
<div class='greyF'>Education</div>".$record->fields->Education__c."
</td>
</tr>
<tr>
</tr>
</table>
CSS 标记:
.cardc {
border: 5px outset white;
padding: 3px;
width:80%;
}
但正如标题所说,我遇到了跨浏览器问题,本应覆盖整个表格的边框在底部被切断。
对于创建边框的替代方法有什么建议吗?
考虑到每个人的担忧,编辑了 HTML。边框仍然绘制不正确。
查看演示 here
【问题讨论】:
-
什么是跨浏览器问题
-
本应覆盖整个表格的边框在底部被切断。
-
如果您仍在使用表格布局来设置页面样式,那么这不再是一个好主意,在尚缺乏 CSS 的情况下,这是一种老式的方式。语义现在非常重要,特别是对于 SEO。
-
您能指导我找到更好的方法吗?一段时间以来一直在努力寻找更好的方法。
标签: html css internet-explorer google-chrome