html语义化表单边框显示,html表格边框怎么去掉

去掉html表格边框的方法:首先创建一个HTML示例文件;然后在body中通过table标签创建表格内容;最后通过“border-left: none;border-right: none;”等css属性去掉指定的表格边框即可。

25e535d98ac95094226280b35c93b13a.png

本文操作环境:windows7系统、CSS3&&HTML5版、Dell G3电脑。

HTML中Table去掉左右两边的边框.table {

text-align: center;

}

.table table {

font-size: 14px;

border-collapse: collapse;

width: 70%;

table-layout: fixed;

text-align: center;

line-height: 25px;

margin:0 auto;

}

.table table tr {

border: dashed 1px #a59e9e;

border-left: none;

border-right: none;

}

效果如图所示:

18fe0fe592e4ed6b97f7429406769911.png

附上原html代码:

Table去掉左右两边的边框

.table {

text-align: center;

}

.table table {

font-size: 14px;

border-collapse: collapse;

width: 70%;

table-layout: fixed;

text-align: center;

line-height: 25px;

margin:0 auto;

}

.table table tr {

border: dashed 1px #a59e9e;

border-left: none;

border-right: none;

}

人员信息

姓名性别年龄出生日期地址
小明201998-10-12北京市
小花191999-02-02上海市
小强221996-05-04上海市

【推荐学习:css视频教程】

  • 0
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值