Reset angle of text in skewed div using CSS

后端 未结 5 694
被撕碎了的回忆
被撕碎了的回忆 2020-12-20 00:44

I have made a fiddle:

http://jsfiddle.net/89x4d/

I\'m trying to maintain the skewed div but keep the p text straight.

Is this possible?

Thank

5条回答
  •  囚心锁ツ
    2020-12-20 01:25

    You should use 20deg instead of 0deg on P to compensate for the DIV transform (since the result is the composition of transforms.)

提交回复
热议问题