腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
首页
标签
w3c
#
w3c
关注
专栏文章
(13)
技术视频
(0)
互动问答
(1)
我应该使用“border:none”还是“border:0”?
2
回答
border
、
w3c
、
浏览器
以往V
一、border:none border-style的简写 在chrome审查元素看到以下结果 element.style { border: none; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; } 在firefox中用firebug查看元素会看到以下结果: element.style { border: medium none; } 注意这个medium值 二、border:0 border-width的简写 在chrome审查元素看到以下结果 element.style { border: 0; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; } 在firefox中用firebug查看元素会看到以下结果: element.style { border: 0 none; }...
展开详请
赞
0
收藏
0
评论
0
分享
一、border:none border-style的简写 在chrome审查元素看到以下结果 element.style { border: none; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; } 在firefox中用firebug查看元素会看到以下结果: element.style { border: medium none; } 注意这个medium值 二、border:0 border-width的简写 在chrome审查元素看到以下结果 element.style { border: 0; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; } 在firefox中用firebug查看元素会看到以下结果: element.style { border: 0 none; }
热门
专栏
IT杂症
195 文章
26 订阅
深度学习与python
4K 文章
46 订阅
web秀
303 文章
34 订阅
鲸鱼动画
125 文章
27 订阅
前端开发博客
54 文章
17 订阅
领券