1
我想了一圈夹适用于我的图片如何使用剪辑路径创建简单的圆形遮罩CSS3?
<style>
.circle {
-webkit-clip-path: circle(50%,50%,10%);
clip-path: circle(50%,50%,10%);
};
</style>
</head>
<body>
<img src="image1.jpg" width="1024" height="768" alt="" class="circle"/>
</body>
,这只是利己不行
.circle {
-webkit-clip-path: circle(50%,50%,10%);
clip-path: circle(50%,50%,10%);
};
<img src="http://cp91279.biography.com/Leonardo-da-Vinci_A-Divine-Mind_HD_768x432-16x9.jpg" width="1024" height="768" alt="" class="circle"/>
我不希望使用任何边界半径!
退房http://caniuse.com/#feat=css-clip-path,看来夹路径不能很好地支持,只有作品在相当特殊的情况下。 – 2014-11-04 03:09:27