我们用的图片一般都是方形的,如何造成圆形?原理就是用CSS3的属性,知识点如下:
一、DIV 圆角化,属性:border-radius: 50%;-moz-border-radius: 50%;-webkit-border-radius: 50%;
预览:
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<div style="text-align: center;">
<img style="border-radius: 50%;-moz-border-radius: 50%;-webkit-border-radius: 50%;" id='userInfo' alt="" width="70px" height="70px" src='http://shp.qpic.cn/bizmp/4bicyswBBKE2CKDBicu5GWMWHWjorC8pseIgkxtxhfsxfxx6kGtIicZPw/'>
</div>
</body>
</html>
6324

被折叠的 条评论
为什么被折叠?



