網(LieHuo.Net)教程 CSS列表圓角,在四個角使用了圖片,使用圖片的好處是兼容性好,在火狐、IE下均有良好表現,而且代碼也很少,學習CSS的朋友不妨把本代碼作為一個實例來學習,了解用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=gb2312" /><title>CSS實現列表圓角</title><style type="text/css">* {padding:0; margin:0;}body {background:#fff;}.yuanjiao {background:#06c url(http://www.vxbq.cn/uploads/userup/1/0910/topl.gif) no-repeat; width:380px; margin:0 auto;text-align: left; margin-top:60px;}.yuanjiao dt{background:transparent url(http://www.vxbq.cn/uploads/userup/1/0910/topr.gif) 100% 0 no-repeat; text-align:center; color:#fff; line-height:30px; font-weight:bold; font-size: 14px;}.yuanjiao dd{background:#DCEAFC url(http://www.vxbq.cn/uploads/userup/1/0910/botl.gif) 0 100% no-repeat; padding:0; margin:0;}.yuanjiao p{padding: .8em;}.yuanjiao p.last{background:transparent url(http://www.vxbq.cn/uploads/userup/1/0910/botr.gif) 100% 100% no-repeat; line-height:22px; font-size: 12px;}a {color:#06c;}a:hover {color:#00f;}</style></head><body><dl class="yuanjiao"><dt>自定義的CSS列表圓角</dt><dd><p class="last">網(<a href="http://www.vxbq.cn/" _fcksavedurl="http://www.vxbq.cn/">LieHuo.Net</a>)提供互聯網資訊與教程,是站長、程序員、網頁設計師等交流與學習的網絡平臺,一直堅持為互聯網的發展提供動力,熱情、積極、向上、不斷進取是Liehuo.Net的座右銘,關注站長,建設互聯網!</p></dd></dl></body></html><br /><center>網更多教程,請訪問:<a href=http://www.vxbq.cn/ target=_blank _fcksavedurl="http://www.vxbq.cn/ target=_blank">http://www.vxbq.cn/</a></center>提示:可修改后代碼再運行!
上一篇 通過WEB日志文件 分析搜索蜘蛛爬行記錄
下一篇 MySqlClient訪問字段返回System.Byte[]篇
程序員人生,我編程,我富裕,記住wfuyu網,php教程,php學習,php手冊,CMS模版制作
聲明:本站大部分內容是作者原創,少部分收集于互聯網供大家一起學習,原版權很多不明,如有侵權請聯系本站,謝謝!
粵ICP備14040726號-1?? 2015-2020 程序員人生 版權所有