亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

手風琴導航欄案例

手風琴導航欄案例

麻煩大神看看 為什么橙色的li有時候會擴不開 移到別的li上 它還會一閃一閃的 謝謝<!DOCTYPE?html> <html> <head> <meta?charset="UTF-8"> <title></title> <style> *{ margin:?0; padding:?0; } ul{ list-style:?none; } #box{ width:1200px; height:400px; margin:100px?auto; border:1px?solid?orangered; } #box?ul{ width:100%; height:100%; overflow:?hidden; } #box?ul?li{ float:?left; width:240px; height:100%; } li:nth-of-type(1){ background:red; } li:nth-of-type(2){ background:darkgoldenrod; } li:nth-of-type(3){ background:darkred; } li:nth-of-type(4){ background:indianred; } li:nth-of-type(5){ background:darkorange; } </style> </head> <body> <div?id="box"> <ul> <li></li> <li></li> <li></li> <li></li> <li></li> </ul> </div> <script?src="jquery-1.2.6.min.js"></script> <script> $(function(){ //給所有的li注冊經過事件 $('#box?li').mouseover(function(){ $(this).stop().animate({width:800}).siblings().stop().animate({width:100}); console.log($(this)); }); $('#box').mouseout(function(){ $('#box?li').stop().animate({width:240}); }); }); </script> </body> </html>
查看完整描述

1 回答

已采納
?
MR帽子先生

TA貢獻245條經驗 獲得超106個贊

你好 可以應該是瀏覽器的問題,我在我的瀏覽器上顯示是正常的,希望能幫到你,祝你學習愉快。

查看完整回答
反對 回復 2017-06-23
  • 1 回答
  • 0 關注
  • 1367 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號