html中的表格式 [英] table formatting in html
本文介绍了html中的表格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好,
我设计了一个表格,我想要应用边框(所有单元格)。但厚度较小。
当我使用CSS样式时:
仅限边框应用到外侧而不是在内侧,即对所有细胞(td)。这对于单行表来说看起来很合适,但是当我尝试申请具有多行的表时,由于只能看到外边框,因此无效。
请帮忙。
推荐答案
<style type='text/css'>
table, td {
border: 1px solid black;
}
</style>
希望这会有所帮助。
Hope this helps.
table,td {
border:1px纯黑;
}
table, td {
border: 1px solid black;
}
table
{
border: 1px solid black;
}
table td
{
border: 1px solid black;
}
表css将赋予整个外边框表格,而td css将在表格中的每个单元格周围给出一个边框。
table css will be give outer border on entire table while td css will be give a border around on each cell in table.
这篇关于html中的表格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文