CSS Border Shorthand for everything 除了 top

标签 css

我有一个很简单的问题...是否有简写来编写下面的 CSS?

border-left:1px solid #818386;
border-right:1px solid #818386;
border-bottom:1px solid #818386;

我想要除了顶部之外的所有内容都使用相同的边框??

最佳答案

CSS

border: solid 1px #CCC;
border-top: none;

关于CSS Border Shorthand for everything 除了 top,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22408503/

相关文章:

javascript - fullcalendar:悬停他的 daycell 时显示特定日期的所有事件

css - 为什么填充不是可折叠的?

css - 带有 :host in styles has no affect 的 Polymer @import 主题文件

css - nth-child 伪类无法选择每 5 个元素

javascript - 如何找到元素的 CSS3 旋转?

html - 响应式菜单 : how can I make button text but not icon disappear for xs screens?

css - 如何在使用 CSS 属性 Contain 时防止剪裁 2 个背景?

css - 使用 ngStyle 定义网格区域时遇到问题

HTML 表格删除特定列之间的填充

html - 移动网站显示不正确