CSS之側邊欄

來源:互聯網
上載者:User

標籤:

<!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>*{margin:0;padding:0;}html{height:100%;width:100%;}p{padding:10px 0; }body.sideMenu{margin:0;-webkit-transform:none;transform:none; }#side{display:none; }#side:checked + aside{left:0; }#side:checked ~ #wrap{padding-left:220px;}a:link,a:visited{color:#00FF00; text-decoration:none;}body > aside{ position:absolute;top:0;bottom:0; left:-200px;width:200px;background:#000000;transition:0.2s ease-out; -webkit-transition:0.2s ease-out;}body > aside > h2 { color:#00FF00;text-align:center;font-weight:normal;padding:10px; }#wrap{margin-left:20px;padding:10px; transition:0.25s ease-out;-webkit-transition:0.25s ease-out; } #wrap > label{ display:inline-block; } #wrap > label{ background:#333333; border-radius:15px; color: #00FF00; cursor: pointer; display: block; font-family: Courier New; font-size: 25px; font-weight: bold; width: 50px; height: 50px; line-height: 35px; text-align: center; text-shadow: 0 -4px; } #wrap > label:hover{background:#000;}</style></head><body><input type=‘checkbox‘ id=‘side‘><aside><h2><a href="http://www.cnblogs.com/caidupingblogs/">冷的鋒刃</a></h2><h2><a href="http://blog.sina.com.cn/u/5729482504b">新浪部落格</a></h2><h2><a href="http://tieba.baidu.com/f?ie=utf-8&kw=%E8%94%A1%E9%83%BD%E5%B9%B3">百度貼吧</a></h2><h2><a href="http://player.youku.com/player.php/sid/XMTcyNTI1NzMzMg==/v.swf">優酷視頻</a></h2></aside><div id=‘wrap‘> <label for=‘side‘>=</label> </div></body></html>

CSS之側邊欄

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.