<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <style type="text/css"> .more{ width: 60px; height: 20px; line-height: 20px; background-color: #f90; text-align: center; margin: 100px auto; border-radius: 10px; font-size: 12px; font-family: "agency fb" } a:link,a:visited{ color: #fff; text-decoration: none; } .more a:hover{ color: #fff; background-color: #f00; } a{ display: block; width: 60px; height: 20px; border-radius: 10px; } .box img{ width: 300px; height: 300px; border-radius: 150px; } </style> </head> <body> <div class="more"><a href="#">更多</a></div> <div class="box"><img src="images/face.jpg" ></div> </body> </html>
转载请注明:大灰牛博客 » 圆角矩形border-radius案例