之后没有在IE上工作

时间:2016-07-04 07:26:20

标签: css internet-explorer sass

我想用SASS使用:after,但似乎无法在IE11上使用...

我的代码:

.radio {
  position: relative;
  padding: 0 10px 0 15px;
  line-height: $radio-height;
  margin: 5px 0;

  > label {
    margin-left: 10px;
    cursor: pointer;

    &:after {
      // not working
      content: '';
      position: absolute;
      left: 0;
      top: 0;
      height: 100%;
      width: 12px;
      background-color: red;
      border-radius: 12px;
      z-index: 1;
      display: block;
    }
  }
}

主要问题::after在文档中不可见...

编辑#1

Doctype:<!DOCTYPE html>

IE屏幕:

enter image description here

编辑#2

CodePen:http://codepen.io/tonymx227/pen/kXwLBL

0 个答案:

没有答案
相关问题