How can I show only corner borders?

后端 未结 16 1659
被撕碎了的回忆
被撕碎了的回忆 2020-11-22 10:06

I\'m wondering if it\'s possible in CSS or jQuery to make a border but only for corner. Something like this:

****                         ****
*                     


        
16条回答
  •  长发绾君心
    2020-11-22 10:33

    This is your picture:

    HTML:

    ****
    ****
    *
    *
    *
    *

    CONTENT

    *
    *
    *
    *
    ****
    ****

    and CSS:

    .shell { width: 200px;}
    .left{ float:left; }
    .right{float:right; }
    .clear { clear: both; line-height: 10px; }
    .content { line-height: 10px; text-align: center; }
    

提交回复
热议问题