开发者

Possible to create tilted column labels with CSS?

Is it possible to cre开发者_运维问答ate vertical or slanted column labels on the columns of a table, using CSS?

Possible to create tilted column labels with CSS?


You can rotate text and elements using CSS3 transforms:

th[scope="col"] {
    -moz-transform: rotate(-60deg);
    -ms-transform: rotate(-60deg);
    -webkit-transform: rotate(-60deg);
    transform: rotate(-60deg);
}

Having nothing better to do, I put together a jsFiddle demo mimicking your entire table (EDIT: now with borders!).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜