<!doctype html><html><head><meta charset="UTF-8"><title>Document</title><style type="text/css">? ? ? ? ? ? #div1{height: 490px;background-image: url(10.jpg);background-repeat:no-repeat;}? ? ? ? ? ? li{width: 150px;height: 30px;list-style: none;background:white;margin: 15px;text-align: center;position: relative;top: 15px;left: -11px;? ? ? ? ? ? ? line-height: 30px;opacity:0.8;border-radius:3px }</style><script src="move.js"></script><script type="text/javascript">window.onload=function(){? ? ? ? ? ?var oLi=document.getElementById('div1').document.getElementsByTagName('li')oLi.onmouseover=function(){? ? ? ?? ? ? ? sartMove(oLi,{left:-21},function(){})}oLi.onmouseout=function(){? ? ? ?? ? ? ? sartMove(oLi,{left:-11},function(){})}}</script></head><body><ul id='div1' ><li>橫店</li><li>黃山</li><li>千島湖</li><li>天目湖</li><li>安吉</li><li>大別山</li></ul></body></html>
這段代碼有什么問題嗎?調(diào)用的函數(shù)沒有任何問題,好像是獲取的li標簽語法不對,請高人指點
慕粉4084340
2016-10-17 21:13:39