700字范文,内容丰富有趣,生活中的好帮手!
700字范文 > html div 边框只显示右侧 CSS-只显示角边框

html div 边框只显示右侧 CSS-只显示角边框

时间:2020-04-28 03:48:13

相关推荐

html div 边框只显示右侧 CSS-只显示角边框

假设

CONTENT而那CONTENT包括至少一个HTML节点。#content{position:relative}#content:before,#content:after,#content>:first-child:before,#content>:first-child:after{

position:absolute;content:'';

width:80px;height:80px;

border-color:red;/*orwhatevercolour*/

border-style:solid;/*orwhateverstyle*/}#content:before{top:0;left:0;border-width:1px001px}#content:

after{top:0;right:0;border-width:1px1px00}#content>:first-child:before{bottom:0;right:0;border-width:01px1px0}#content>:

first-child:after{bottom:0;left:0;border-width:001px1px}

这是一个小提琴

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。