使用CSS在偏斜div中重置文本的角度 [英] Reset angle of text in skewed div using CSS

查看:70
本文介绍了使用CSS在偏斜div中重置文本的角度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我做了一个小提琴:

http:// jsfiddle.net/89x4d/

我试图保持偏斜的div,但保持p文本不变。

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

这是否可能?

谢谢

推荐答案

您应该使用 20deg 而不是P上的 0deg 来补偿DIV变换(因为结果是变换。)

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

这篇关于使用CSS在偏斜div中重置文本的角度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆