Border Radius for each row in a table

后端 未结 3 832
感情败类
感情败类 2021-01-07 06:59

I am having the table like this and I want to apply style to each row with rounded corner.


    <         
3条回答
  •  猫巷女王i
    2021-01-07 07:21

    you can write like this:

    td:first-child{
        -moz-border-radius:10px 0 0 10px;
        -webkit-border-radius:10px 0 0 10px;
    }
    td:last-child{
        -moz-border-radius:0 10px 10px 0;
        -webkit-border-radius:0 10px 10px 0;
    }
    td{background:red;}
    

    Check this http://jsfiddle.net/RNWwu/1/

提交回复
热议问题
Month