CSS transform doesn't work on inline elements

后端 未结 2 1189
Happy的楠姐
Happy的楠姐 2020-11-21 07:19

I wanted to mirror letter E in the word WEBLOG so I used CSS transform property but it doesn\'t work if I wrap the text inside a span but it works

2条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-21 08:07

    Answered here in the official W3 specifications under transformable element:

    an element whose layout is governed by the CSS box model which is either a block-level or atomic inline-level element, or whose ‘display’ property computes to ‘table-row’, ‘table-row-group’, ‘table-header-group’, ‘table-footer-group’, ‘table-cell’, or ‘table-caption’ [CSS21]

提交回复
热议问题