为了账号安全,请及时绑定邮箱和手机立即绑定

周围的边框怎么用css实现?

周围的边框怎么用css啊?

正在回答

3 回答

.test{    positionabsolute;    top0;    height70px;width10px;    border-top20px solid red;    border-right20px solid #fff;    border-bottom0;    border-left20px solid red;}<div class="test"></div>

0 回复 有任何疑惑可以回复我~
.test{
    position: absolute;
    top: 0;
    height: 70px;width: 10px;
    border-top: 20px solid red;
    border-right: 20px solid #fff;
    border-bottom: 0;
    border-left: 20px solid red;
}
<div class="test"></div>

示例,另一半你自己画了

0 回复 有任何疑惑可以回复我~

border-top
border-left
border-right
border-button

0 回复 有任何疑惑可以回复我~
#1

街角疯 提问者

上与右不是有有半块吗?用边框怎么想?
2017-09-12 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
重拾CSS的乐趣
  • 参与学习       72805    人
  • 解答问题       27    个

开发中使用CSS时的一些经验感悟,魔法哥带你玩儿转有乐趣的CSS

进入课程

周围的边框怎么用css实现?

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信