IE11 下的CSS clip不工作,在IE8,firefox,chrome下都正常工作

<html>
<head>
<style>

.clipLeft {
   position: absolute;
   top: 40px;
   left: 0;
   clip: rect(50  100  100  50);
}

</style
</head>

<body>
    <img src="sphere.jpg" class="clipLeft">
</body>

</html>

测试用的是 windows 10 build 10240 下自带的IE 11

阅读 3.5k
1 个回答

rect(50px,100px,100px,50px)

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题