html - 如何仅在部分侧边上创建边框,或者如何模拟它?

标签 html css

我认为两张图片可以说明一切

现在我有 ( jsfiddle ):

enter image description here

我想知道是否可以这样做: enter image description here

最佳答案

您可以使用 :after 来隐藏它,我知道这很粗糙,但可以在最新的浏览器中使用:

#column1:after{
    display:block;
    content:'';
    background-color:#f6f6f6;
    height:100%;
    width:5px;
    position:absolute;
    top:0;
    right:-5px;
}

JSFiddle

关于html - 如何仅在部分侧边上创建边框,或者如何模拟它?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19270879/

相关文章:

html - Chrome 特定的 CSS 问题设置表单元格显示 :block

html - 使用没有 ID 的 CSS 删除元素

css - 在巨无霸下面添加内容

html - 垂直滚动条在绝对定位元素中消失

php - WordPress 管理区域 - 将类添加到页面编辑屏幕的主体

javascript - JQuery 幻灯片放映简化

html - 如何关闭 iphone chrome 模拟器中的蓝色覆盖?

html - 无法在 div 中居中 ul

javascript - 在 Bootstrap 模式中使用背景 :"static"时显示无覆盖(透明背景)

Javascript:防止空格键在指定的 div 中滚动