Reset angle of text in skewed div using CSS

后端 未结 5 904
被撕碎了的回忆
被撕碎了的回忆 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:18

    I'm not sure if you can get it to skew back, seems to distort the font too much.

    skew(20) is the closest i could get, but instead you could setup 2 divs, 1 for a skew box and another to then move over it.

    http://jsfiddle.net/gP9ne/3/

    Setup a fiddle there for you to see

    Martyn

    edit: actually doesnt look any different :p i think its just the black on red with the font doesnt like my screen :p

    always over thinking!

提交回复
热议问题