无论如何都要对伪进行旋转
anyway to make a rotation work on the pseudo
content:"24B6"?
我正在尝试旋转一个 unicode 符号.
I'm trying to rotate a unicode symbol.
内联元素不能转换,伪元素默认是内联的,所以必须应用 display: block 或 display: inline-block 来转换它们:
Inline elements can't be transformed, and pseudo elements are inline by default, so you must apply display: block or display: inline-block to transform them:
#whatever:after {
content: "24B6";
display: inline-block;
transform: rotate(30deg);
}
<div id="whatever">Some text </div>
这篇关于css 旋转一个伪 :after 或 :before content:""的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!
Selenium WebDriver 从 CSS 属性“内容"获取文本在Selenium WebDriver get text from CSS property quot;contentquot; on a ::before pseudo element(Selenium WebDriver 从 CSS 属性“内容获取文本在
CSS垂直旋转文本 - 两侧的额外空间CSS Rotate Text Vertical - Extra Space on both sides(CSS垂直旋转文本 - 两侧的额外空间)
Safari CSS Bug:动画旋转方向不正确?Safari CSS Bug: Animation Rotation Direction Incorrect?(Safari CSS Bug:动画旋转方向不正确?)
在 IE8 及更低版本的 CSS 中旋转 90 度Rotating 90 degrees in CSS in IE8 and lower(在 IE8 及更低版本的 CSS 中旋转 90 度)
使用鼠标旋转画布中的图像To rotation an image in canvas using mouse(使用鼠标旋转画布中的图像)
html5 - 以相对坐标获取设备方向旋转html5 - Get device orientation rotation in relative coordinate(html5 - 以相对坐标获取设备方向旋转)