<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<style type="text/css">
*{
margin: 0;
padding: 0;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
outline: none;
-webkit-user-select: none;
}
body{
background-color: blue;
}
div{
margin: 20px auto;
width: 156px;
height: 56px;
border-radius: 28px;
overflow: hidden;
background-color: #000;
/*position: relative; */
/*父元素加 position: relative; 圆角元素不能隐藏*/
}
div > span{
display: block;
width: 300px;
height: 56px;
background-color: red;
/*-webkit-transform: translateX(0px);*/
/*子元素加 transform 圆角元素不能隐藏*/
}
</style>
</head>
<body>
<div><span></span></div>
</body>
</html>
呵呵,虽然我不懂,支持下。