CSS 實現固定寬度圓角框效果

  1. /* rounded corner box
  2. ================================== */
  3. .box {
  4.   width424px;
  5.   backgroundurl(images/tile2.gif) repeat-y;
  6. }
  7. .box h2 {
  8.   backgroundurl(images/top2.gif) no-repeat left top;
  9.   padding-top20px;
  10. }
  11. .box .last {
  12.   backgroundurl(images/bottom2.gif) no-repeat left bottom;
  13.   padding-bottom20px;
  14. }
  15. .box h2 {
  16.   padding-left20px;
  17.   padding-right20px;
  18. }
  19. .box p {
  20.   padding-left20px;
  21.   padding-right20px;
  22. }

top2.gif

title2.gif

bottom2.gif

https://p-blog.csdn.net/images/p_blog_csdn_net/denuvead/EntryImages/20080908/tile2.gif

https://p-blog.csdn.net/images/p_blog_csdn_net/denuvead/EntryImages/20080908/top2.gif

https://p-blog.csdn.net/images/p_blog_csdn_net/denuvead/EntryImages/20080908/bottom2.gif

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章