css - 使用 css3 翻转图标

标签 css flip

我试图在堆栈上搜索,但无法得到准确的答案。

有一段带双引号。

Here is my code

我想翻转第二个引号,如 this image 所示

HTML

<div class="paraCnt">
    <p>Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum</p>
</div>

CSS

.paraCnt {
  width: 800px;
  margin: 0 auto;
  position: relative;
  color: #fff

}
body {
  background: #285fac;
}
.paraCnt:before,
.paraCnt:after {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: -50px;
    height: 34px;
    width: 39px;
    background: url(http://i.stack.imgur.com/Rikc9.png) -13px -20px no-repeat;
}
.paraCnt:after {
  left: auto;
  right: -50px;

}

最佳答案

DEMO

CSS 更改

.paraCnt:after {
  left: auto;
  right: -50px;
  -webkit-transform: scaleX(-1); /**Add this**/
  transform: scaleX(-1); /**Add this**/
}

关于css - 使用 css3 翻转图标,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24890244/

相关文章:

ios - 使用自动布局时如何制作从一个 UIView 到另一个 UIView 的翻转动画?

html - 使用 HTML 对齐和对齐文本

javascript - 为什么更改标签上的 css 类顺序会使元素消失?

html - 定位按钮和 Logo 等距

html - firefox中img标签宽度高度问题

ios - 如何在 swift 中为 SKSpriteNode 创建翻转效果

javascript - 将 DIV 彼此相邻排列并使用 CSS 翻转它们

html - CSS 导航栏链接背景色悬停

css - 卡片翻转在 IE10+ 中不起作用

Android 垂直翻转 ImageView