带有 GRIDLINES 的 HTML/CSS 表格
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1763032/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-29 01:22:35 来源:igfitidea点击:
HTML / CSS table with GRIDLINES
提问by Allan Bowe
how do I display the gridlines in a HTML table? (am using IE6)
如何在 HTML 表格中显示网格线?(我使用的是 IE6)
回答by pixeline
Via css. Put this inside the <head>
tag.
通过 CSS。把它放在<head>
标签里面。
<style type="text/css" media="screen">
table{
border-collapse:collapse;
border:1px solid #FF0000;
}
table td{
border:1px solid #FF0000;
}
</style>
回答by slugster
<table border="1"></table>
should do the trick.
应该做的伎俩。
回答by Mohammed Osama
For internal gridlines, use the tag: td For external gridlines, use the tag: table
对于内部网格线,使用标签:td 对于外部网格线,使用标签:table