导航:首页 > 万维百科 > 网页设计表格区域css代码

网页设计表格区域css代码

发布时间:2020-10-08 08:30:18

1、网页设计中CSS的表格单元格边框设置

border:2px 3px 6px 9px 这个要加上 width才有效 border-width:2px 3px 6px 9px
四边框一同设置的数值不同的时候只能设置一个 color或者style或者width
border-width:1px 2px 3px 4px;
border-style: groove double dashed solid ;
border-style: #000 #0fh #250 #fff ;

2、求大神做一下html网页设计,要求用表格进行整体布局,不要用css,谢谢

html网页设计,要求用表格进行整体布局,不要用css需要提供您的要求,我才能帮.

3、html网页设计表格,如何通过css让表格只有外边框,而没有内边框?或者只有内边框,而没有外边框?

table{
border:1px solid #000;/*黑色1像素粗边框*/
}
td{
border:none;/*这个是单元格,不给他要边框*/
}
以上是全局的,用了以后所有的表格都是这个样式。
如果你要给特定的表格加入这个样式:
1 给那个表格加上class='classname' (classname是你自己起的样式名)
2 然后在CSS里加上
.classname{
border:1px solid #000;/*黑色1像素粗边框*/
}
.classname td{
border:none;/*这个是单元格,不给他要边框*/
}

只有内边框没有外边框的话,我就只会用赖皮的方法:给table外面套一个overflow:hidden的div,宽度和高度比table小2px,给table加上margin-left:-1px;margin-right:-1px;这样把他的表格边框遮住。。

4、求以下网页设计表格html代码

代码(大小有需要可以调):

<!DOCTYPE html>
<html>

    <head>
        <meta charset="utf-8">
        <title>练习使用HTML</title>
    </head>

    <body>
        <center>
            <table border="1px" cellpadding="0px" cellspacing="0px">
                <tr>
                    <td colspan="4" height="60px"></td>
                </tr>
                <tr>
                    <td width="200px" height="60px"></td>
                    <td width="200px" height="60px"></td>
                    <td width="200px" height="60px"></td>
                    <td width="200px" height="60px"></td>
                </tr>
                <tr>
                    <td colspan="4" height="60px"></td>
                </tr>
                <tr>
                    <td colspan="4" height="60px"></td>
                </tr>
                <tr>
                    <td colspan="4" height="60px"></td>
                </tr>
                <tr>
                    <td colspan="4" height="60px"></td>
                </tr>
            </table>
        </center>
    </body>

</html>

运行效果:

5、用html设计网站,要求用表格进行整体布局,不要用css,求源代码,谢谢!!!!

DW 直接把表格拖进去 填一下内容就OK 了··

6、html网页设计表格,如何通过css让表格只有外边框,而没有内边框?

table{
border:1px solid #000;/*黑色1像素粗边框*/
}
td{
border:none;/*这个是单元格,不给他要边框*/
}
以上是全局的,用了以后所有的表格都是这个样式。
如果你要给特定的表格加入这个样式:
1 给那个表格加上class='classname' (classname是你自己起的样式名)
2 然后在CSS里加上
.classname{
border:1px solid #000;/*黑色1像素粗边框*/
}
.classname td{
border:none;/*这个是单元格,不给他要边框*/
}

只有内边框没有外边框的话,我就只会用赖皮的方法:给table外面套一个overflow:hidden的div,宽度和高度比table小2px,给table加上margin-left:-1px;margin-right:-1px;这样把他的表格边框遮住。。

与网页设计表格区域css代码相关的知识