轻松制作CSS圆角,具体看代码。
<!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>无标题文档</title> <style type="text/css"> div{ background:green;} .top,.bottom{ display:block; background:white;} b{ display:block; height:1px; background:green; overflow:hidden;} .one{ margin:0 5px;} .two{ margin:0 3px;} .three{ margin:0 2px;} .four{ margin:0 1px; } </style> </head> <body> <div> <div class="top"> <b class="one"></b> <b class="two"></b> <b class="three"></b> <b class="four"></b> </div> 这里是一些文字 <div class="bottom"> <b class="four"></b> <b class="three"></b> <b class="two"></b> <b class="one"></b> </div> </div> </body> </html> |