首页 > 解决方案 > css 转换不适用于 IE11

问题描述

我使用转换将胡萝卜置于下拉菜单的中心,并且它在除 IE 之外的所有浏览器上都能完美运行

HTML

<div class="row ccu-faq-q-row">
  <div class="ccu-faq-question">I’m not crazy about the new name. And I resent all the money --- has spent on naming the ----. How can I register my protest?</div>
  <div class="ccu-faq-btn"><img class="faqArrow" src="img/ic-arrow.svg"></div>
</div>

css

.ccu-faqs .ccu-faq-btn img {
  left: 50%;
  position: relative;
  top: 45%;
  width: 24px;
  -webkit-transform: translate(-50%, -50%);
    -moz-box-shadow: translate(-50%, -50%);
      -ms-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%); }

在此处输入图像描述

标签: cssinternet-explorer

解决方案


推荐阅读