不用JavaScript實現內容轉場效果代碼

來源:互聯網
上載者:User
提示:您可以先修改部分代碼再運行

<!DOCTYPE html><html><head> <meta charset="utf-8" /> <title> JavaScript實現內容轉場效果 </title> <style type="text/css"> *{margin:0;padding:0;}body{font:12px/1.5 tahoma, arial, 5b8b4f53, sans-serif;} ul, ol {list-style: none; } a {text-decoration: none; } a:hover {text-decoration:underline; } img {border:0;}.section{width:350px; margin:0 auto; }#content-slider{border:1px solid #666;height:200px;width:350px; margin-top:50px;}#content-slider-inside{height:200px;overflow:hidden; }#content-slider-inside li{background-color:#ccc;height:200px;width:350px;text-align:center;font-size:100px;line-height:200px;color:#666;}#navigation {margin: 10px 0 0 0;float: right;}#navigation li {border:solid 1px #ccc; float:left;width:20px;height:20px;line-height:20px;text-align:center;margin-left:5px;}#navigation li a, #navigation li a:link, #navigation li a:visited {color: #666;display: block;height:20px;}#navigation li a:hover, #navigation li a:focus, #navigation li a:active {background:#666;color:#fff;}</style></head><body> <div class="section"> <div id="content-slider"> <ul id="content-slider-inside"> <li id="one">1</li> <li id="two">2</li> <li id="three">3</li> <li id="four">4</li> <li id="five">5</li> </ul> </div> <ul id="navigation"> <li>1</li> <li>2</li> <li>3</li> <li>4</li> <li>5</li> </ul> </div></body></html></td> </tr></table>
提示:您可以先修改部分代碼再運行

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.