标签:style blog http color io os ar for sp
<!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> <title>【荐】纯CSS实现漂亮圆角阴影边框_潜水射流曝气机</title> <style type="text/css" media="screen,print"> *{padding: 0; margin: 0;} body {background-color:#fff; margin: 10px; padding: 0;} html body{font: 62.5%/1.4em Arial, Helvetica, sans-serif;color:#333333} html>body{font: 62.5%/1.4em Arial, Helvetica, sans-serif;color:#333333} p, table, ul, dl, h2 {font-size: 1.2em} caption {font-size: 1.4em} h3 { color: #cfcfcf; font-weight: bold; text-transform: capitalize; margin-top:30px; padding-bottom:10px; } a:link {color: #CC6633;} a:visited {color: #CC6633;} a:hover {color: #999966;} a:active {color: #CC6633;} a:focus{color: #CC6633;} .portletcontent { padding:0 7px 0 0; background:#fff url(http://www.webdm.cn/images/20110610/borders.gif) 100% 0 repeat-y; } .bi { padding:0 0 0 1px; background:#000 url(http://www.webdm.cn/images/20110610/borders.gif) 0 0 repeat-y; } .bb { height:30px; margin:0 -7px 0 -1px; background:url(http://www.webdm.cn/images/20110610/box.gif) 100% 100% no-repeat; } .bb div { width:18px; height:30px; background:url(http://www.webdm.cn/images/20110610/box.gif) 0 100% no-repeat; } .portlet h2 { height:20px; padding:0 0 0 10px; background-color:#666; background-image:url(http://www.webdm.cn/images/20110610/topright.gif); background-position:right top; background-repeat:no-repeat; color:#592C16; line-height:20px; } .portletcontent p { padding:8px 10px 8px 10px; background:#fff; } </style> </head> <body> <h3>Custom box with no width restrictions. Height restriction is based on the amount of content.</h3> <div class="portlet"><!-- Start Portlet --> <h2 style="background-color:#E5E5D8;">text</h2> <div class="portletcontent"><div class="bi"> <!-- Visual Content for Portlet below --> <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. </p> <div class="bb"><div></div></div> </div> </div><!-- End Portlet Content--> </div><!-- End Portlet --> <h3>Custom box set to fill 50% (width) of the viewable window regardless the size of the browser window.</h3> <div class="portlet" style="width:50% "><!-- Start Portlet --> <h2 style="background-color:#E5E5D8;">text</h2> <div class="portletcontent"><div class="bi"> <!-- Visual Content for Portlet below --> <p> Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis. </p> <div class="bb"><div></div></div> </div> </div><!-- End Portlet Content--> </div><!-- End Portlet --> <h3>Custom box set to have a fixed width of 300 pixels.</h3> <div class="portlet" style="width:300px "><!-- Start Portlet --> <h2 style="background-color:#E5E5D8;">text</h2> <div class="portletcontent"><div class="bi"> <!-- Visual Content for Portlet below --> <p> Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. </p> <div class="bb"><div></div></div> </div> </div><!-- End Portlet Content--> </div><!-- End Portlet --> </body></html> <br />
标签:style blog http color io os ar for sp
原文地址:http://www.cnblogs.com/youtianxia/p/3994364.html