Create diagonal border of a cell

后端 未结 4 1330
渐次进展
渐次进展 2021-02-06 01:26

I wonder if it is even possible creating a table with diagonal border line using css or jquery just like below:

\"en

4条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-06 02:08

    Anything is possible if you fiddle around with it long enough, here's an example using some creative borders and a lot of CSS:

    .arrow_box:after, .arrow_box:before {
        top: 100%;
        border: solid transparent;
        content: " ";
        height: 0;
        width: 0;
        position: absolute;
        pointer-events: none;
    }
    

    FIDDLE

    And another one using CSS3 rotate:

    -webkit-transform: rotate(26.5deg);
       -moz-transform: rotate(26.5deg);
        -ms-transform: rotate(26.5deg);
         -o-transform: rotate(26.5deg);
            transform: rotate(26.5deg);
    

    FIDDLE

    or you could just use an image as the background for your table.

提交回复
热议问题