css实现的圆角图形
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>css实现的圆角图形</title> <style> .round_photo{ width:70px; height:70px; border:4px solid #DDDDDD; -moz-border-radius: 50%; -webkit-border-radius: 50%; border-radius:50%; } </style> </head> <body> <p>下面是css实现的圆角图形</p> <div> <img src="http://outofmemory.cn/static/imgs/logo.png" class="round_photo"/> </div> <br/><br/> <p>下面是原图</p> <img src="http://outofmemory.cn/static/imgs/logo.png"/> </body> </html>
效果如下: