中文字幕日韩精品一区二区免费_精品一区二区三区国产精品无卡在_国精品无码专区一区二区三区_国产αv三级中文在线

css3制作網(wǎng)頁(yè)實(shí)例

2024-01-18    分類(lèi): 網(wǎng)站建設(shè)

<!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>css3列表</title> <style type="text/css"> li, ul, dd, dl, dt { list-style:none; list-style-type:none; padding:0; margin:0; text-align:left; } body { font-family:"微軟雅黑",Verdana, Geneva, sans-serif; background:url(images/background.jpg) repeat; height:100%; width:100%; } .content { margin:0 auto; width:1000px; text-align:center; } input[type=radio] { position:absolute; z-index:100; opacity:0; cursor:pointer; height:30px; width:40px; } .control { display:inline-block; margin:0 -5px; width:40px; background:#eddfc7; padding:5px; border:1px solid #e0cba0; cursor:pointer; vertical-align:bottom bottom; } .control:hover, input[type=radio]:hover + .control, input[type=radio]:checked + .control { box-shadow:inset 0px 0px 20px #d3b67a; } .first { border-top-left-radius:3px; border-bottom-left-radius:3px; } .last { border-top-right-radius:3px; border-bottom-right-radius:3px; } #item_list { margin-top:30px; } #item_list li p{ width:180px; display:inline-block; margin:0; padding:0; } #item_list .title{ font-size:20px; font-weight:bold;display:block; margin-bottom:10px; } #item_list .txt{ font-size:12px; display:block; margin-bottom:10px; } #item_list li { display:inline-block;/*行內(nèi)塊元素*/ width:300px; vertical-align:top; margin:0 2px 20px 0; padding:10px; background:#f3eada; border-radius:5px; box-shadow:inset 0px 0px 20px #e0cba0; overflow:hidden; } #item_list li img{ display:inline-block; vertical-align:top; margin-right:4px; width:100px; } #item-list li p { display: inline-block; width: 180px; margin: 0; padding: 0; } .view_control_1:checked ~ #item_list li img { opacity:1; width:100px; visibility:visible; } .view_control_1:checked ~ #item_list li p { opacity:1; visibility:visible;/*屬性可使元素可見(jiàn)*/ transition:.4s ease-out; } .view_control_1:checked ~ #item_list li { width:300px; transition: .4s ease-out; } /*list2*/ .view_control_2:checked ~ #item_list li img { opacity:0; width:0; visibility:visible; transition:.4s ease-out; } .view_control_2:checked ~ #item_list li p { opacity:1; visibility:visible; transition:.4s ease-out; } .view-control_2:checked ~ #item_list li { width:900px; transition:.4s .4s ease-out; } /*list3*/ .view_control_3:checked ~ #item_list li img { opacity:1; width:100px; visibility:visible; transition:.4s ease-out; } .view_control_3:checked ~ #item_list li p { opacity:1; visibility:visible; transition:.4s ease-out; } .view_control_3:checked ~ #item_list li { width:900px; transition:.4s ease-out; } /*list4*/ .view_control_4:checked ~ #item_list li img { opacity:1; width:100px; visibility:visible; transition:.4s ease-out; } .view_control_4:checked ~ #item_list li p { opacity:0; position:absolute; visibility:hidden; transition:.4s ease-out; } .view_control_4:checked ~ #item_list li { width:100px; transiton:.4s ease-out; } </style> </head> <body> <div> <input name="view_control" type="radio" checked="checked"/> <span><img src="images/blockinline.png" /></span> <input name="view_control" type="radio"/> <span><img src="images/plainlist.png" /></span> <input name="view_control" type="radio" /> <span><img src="images/blocklist.png" /></span> <input name="view_control" type="radio" /> <span><img src="images/block.png" /></span> <ul id="item_list"> <li> <img src="images/angrybird.png" /> <p> <span>瘋狂的小喵</span> <span>瘋狂的小喵</span> </p> </li> <li><img src="images/cuttherope.png" /> <p><span>Draw Something</span><span>瘋狂的小喵</span></p> </li> <li> <img src="images/cuttherope.png" /> <p><span>Draw Something</span><span>瘋狂的小喵</span></p> </li> <li> <img src="images/cuttherope.png" /> <p><span>Draw Something</span><span>瘋狂的小喵</span></p> </li> <li> <img src="images/cuttherope.png" /> <p><span>Draw Something</span><span>瘋狂的小喵</span></p> </li> <li> <img src="images/cuttherope.png" /> <p><span>Draw Something</span><span>瘋狂的小喵</span></p> </li> <li> <img src="images/cuttherope.png" /> <p><span>Draw Something</span><span>瘋狂的小喵</span></p> </li> <li> <img src="images/cuttherope.png" /> <p><span>Draw Something</span><span>瘋狂的小喵</span></p> </li> <li> <img src="images/cuttherope.png" /> <p><span>Draw Something</span><span>瘋狂的小喵</span></p> </li> <li> <img src="images/cuttherope.png" /> <p><span>Draw Something</span><span>瘋狂的小喵</span></p> </li>

新聞標(biāo)題:css3制作網(wǎng)頁(yè)實(shí)例
網(wǎng)頁(yè)網(wǎng)址:http://www.rwnh.cn/news20/314270.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供App開(kāi)發(fā)、微信小程序、標(biāo)簽優(yōu)化企業(yè)網(wǎng)站制作、網(wǎng)站建設(shè)、網(wǎng)站改版

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶(hù)投稿、用戶(hù)轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話(huà):028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)

網(wǎng)站托管運(yùn)營(yíng)
西丰县| 巫山县| 正蓝旗| 会同县| 宁武县| 潼南县| 潞城市| 舒兰市| 庐江县| 淮阳县| 新津县| 镶黄旗| 建湖县| 肥西县| 渝中区| 泰和县| 大姚县| 晴隆县| 五华县| 营山县| 沅江市| 永安市| 体育| 都江堰市| 永丰县| 二连浩特市| 息烽县| 饶平县| 牙克石市| 利津县| 乌拉特后旗| 易门县| 迁西县| 额济纳旗| 丁青县| 永年县| 黑山县| 资源县| 宁城县| 贡觉县| 天祝|