画计划表边框.doc画计划表边框
教案10--制订旅行计划(边框与底纹)
篇二:中画表格,如何让表格只有横边框,没有竖边框
我的实现方式是为每个td标签添加一个底部边框border-bottom,第一行的td再额外添加一个顶部边框border-top。代码如下:
<>
<head>
<meta http-equiv=Content-Type content
=text/; charset=gb2312> <title>test</title>
<style>
{
}
td
{
height:30px;
border-bottom:2px solid #6AB2E7;
border-left:0px;
border-right:0px;
}
{
border-top:2px solid #6AB2E7;
}
</style>
</head>
<body>
<table border=0 class=tab cellpadding=0 cellspacing=0 eta http-equiv=Content-Type content=text/; charset=gb2312>
<title>test</title>
<style>
{
}
td
{height:30px;
border-bottom:2px solid #6AB2E7;
border-left:0px ;border-right:0px ;
}
{
border-top:2px solid #6AB2E7;
}
</style>
</head>
<body>
<p align=center>
中画表格让表格只有横边框没有竖边框,可以把“style” td设置border-left:为 0px ;border-right: 为 0px ,线型和颜色不设置即可
</p>
<p align=center>
如果border-left:和border-right: 后面加上solid(实型)并设置颜色如#6AB2E7,则左右边框,即可显示
</p>
<table border=0 class=t
画计划表边框 来自淘豆网m.daumloan.com转载请标明出处.