<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Border radius clipping</title> | |
<link rel="author" title="zhouli" href="mailto:liz@oupeng.com"> | |
<style> | |
#parent{ | |
border-radius: 15px; | |
border: 1px solid blue; | |
overflow: hidden; | |
width: 300px; | |
height: 30px; | |
background-color: green; | |
} | |
#son{ | |
width: 300px; | |
height: 30px; | |
} | |
</style> | |
</head> | |
<body> | |
<div id="parent"> | |
<div id="son"></div> | |
</div> | |
<script> | |
</script> | |
</body> | |
</html> |