我在Excel中创建了一个电子表格并保存为网页。我在“页面布局”下“取消选中”查看和打印网格线,但是,一旦我将页面嵌入到我的网站中,网格线就可见了。我玩过CSS试图消除网格无济于事。不幸的是,代码中有许多字符要发布到此处,但是,您可以在此处查看我的测试页:http://www.realtimehockey.net/associations.html
这可能是也可能不是一个简单的修复,但任何帮助或输入将不胜感激。
CSS
<!--table
{mso-displayed-decimal-separator:"\.";
mso-displayed-thousand-separator:"\,";}
.xl154614
{padding-top:1px;
padding-right:1px;
padding-left:1px;
mso-ignore:padding;
color:black;
font-size:11.0pt;
font-weight:400;
font-style:normal;
text-decoration:none;
font-family:Calibri, sans-serif;
mso-font-charset:0;
mso-number-format:General;
text-align:general;
vertical-align:bottom;
mso-background-source:auto;
mso-pattern:auto;
white-space:nowrap;}
.xl654614
{padding-top:1px;
padding-right:1px;
padding-left:1px;
mso-ignore:padding;
color:white;
font-size:11.0pt;
font-weight:700;
font-style:italic;
text-decoration:none;
font-family:"Patua One", monospace;
mso-font-charset:0;
mso-number-format:General;
text-align:general;
vertical-align:bottom;
background:#FF6600;
mso-pattern:black none;
white-space:nowrap;}
.xl664614
{padding-top:1px;
padding-right:1px;
padding-left:1px;
mso-ignore:padding;
color:white;
font-size:3.0pt;
font-weight:700;
font-style:italic;
text-decoration:none;
font-family:"Patua One", monospace;
mso-font-charset:0;
mso-number-format:General;
text-align:general;
vertical-align:bottom;
background:white;
mso-pattern:black none;
white-space:nowrap;}
.xl674614
{padding-top:1px;
padding-right:1px;
padding-left:1px;
mso-ignore:padding;
color:white;
font-size:3.0pt;
font-weight:700;
font-style:italic;
text-decoration:none;
font-family:"Patua One", monospace;
mso-font-charset:0;
mso-number-format:General;
text-align:general;
vertical-align:bottom;
background:black;
mso-pattern:black none;
white-space:nowrap;}
.xl684614
{padding-top:1px;
padding-right:1px;
padding-left:1px;
mso-ignore:padding;
color:black;
font-size:11.0pt;
font-weight:700;
font-style:normal;
text-decoration:none;
font-family:Calibri, sans-serif;
mso-font-charset:0;
mso-number-format:General;
text-align:general;
vertical-align:bottom;
background:#D8D8D8;
mso-pattern:black none;
white-space:nowrap;}
.xl694614
{padding-top:1px;
padding-right:1px;
padding-left:1px;
mso-ignore:padding;
color:#0563C1;
font-size:11.0pt;
font-weight:400;
font-style:normal;
text-decoration:none
font-family:Calibri, sans-serif;
mso-font-charset:0;
mso-number-format:General;
text-align:general;
vertical-align:bottom;
background:#D8D8D8;
mso-pattern:black none;
white-space:nowrap;}
.xl704614
{padding-top:1px;
padding-right:1px;
padding-left:1px;
mso-ignore:padding;
color:#0563C1;
font-size:11.0pt;
font-weight:700;
font-style:normal;
text-decoration:none;
font-family:Calibri, sans-serif;
mso-font-charset:0;
mso-number-format:General;
text-align:general;
vertical-align:bottom;
background:#D8D8D8;
mso-pattern:black none;
white-space:nowrap;}
.xl714614
{padding-top:1px;
padding-right:1px;
padding-left:1px;
mso-ignore:padding;
color:black;
font-size:12.0pt;
font-weight:700;
font-style:normal;
text-decoration:none;
font-family:Candara;
mso-generic-font-family:auto;
mso-font-charset:0;
mso-number-format:General;
text-align:general;
vertical-align:bottom;
background:#D8D8D8;
mso-pattern:black none;
white-space:nowrap;}
答案 0 :(得分:1)
在样式表中,您必须将表格单元格的边框设置为无。
如果你想采取捷径,你可以这样做:
td, tr {
border-style: none
}
这将涵盖您网页上的所有细胞。