码迷,mamicode.com
首页 > Web开发 > 详细

通过CSS给图像设置圆角边框

时间:2017-08-01 23:04:08      阅读:184      评论:0      收藏:0      [点我收藏+]

标签:jpg   blog   images   style   radius   border   idt   圆角   image   

<html>

<style>

.smaller-image{

  border-radius: 50%;

   width: 100px;

}

</style>

<body> <img class="smaller-image" src="/images/cat.jpg"> </body>

</html>

 

效果:

技术分享

 

通过CSS给图像设置圆角边框

标签:jpg   blog   images   style   radius   border   idt   圆角   image   

原文地址:http://www.cnblogs.com/cnxiaol/p/7270843.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!