日期:2014-05-17 浏览次数:20739 次
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>圆角效果border-radius</title> <style type="text/css"> body,div{margin:0;padding:0;} .border{width:200px;border:10px solid gray;height:20px; -moz-border-radius:10px;/*仅Firefox支持,实现圆角效果*/ -webkit-border-radius:10px;/*仅Safari,Chrome支持,实现圆角效果*/ -khtml-border-radius:10px;/*仅Safari,Chrome支持,实现圆角效果*/ border-radius:10px;/*仅Opera,Safari,Chrome支持,实现圆角效果*/ } </style> </head> <body> <div class="border">border radius</div> </body> </html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>圆角效果border-radius</title> <style type="text/css"> .border{width:120px;border:15px solid gray;height:20px; background:gray;color:#fff; -moz-border-radius-topright:15px; -moz-border-radius-topleft:15px; -webkit-border-top-right-radius:15px; -webkit-border-top-left-radius:15px; border-top-right-radius:15px; border-top-left-radius:15px; } </style> </head> <body> <div class="border">border radius</div> </body> </html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>圆角效果border-radius</title> <style type="text/css"> .border{width:120px;border:15px solid gray;height:20px; background:gray;color:#fff; -moz-border-radius-topright:15px; -moz-border-radius-bottomleft:15px; -webkit-border-top-right-radius:15px; -webkit-border-bottom-left-radius:15px; border-top-right-radius:15px; border-bottom-left-radius:15px; } </style> </head> <body> <div class="border">border radius</div> </body> </html>