Maison > interface Web > tutoriel HTML > le corps du texte

请用360、firefox、chrome浏览器的朋友看一下, 为什么我做的表单只能用Tab跳?用鼠标点就又跳回上一个文本框?_html/css_WEB-ITnose

WBOY
Libérer: 2016-06-24 12:24:32
original
1148 Les gens l'ont consulté

我的网址是http://www.wuyue-car.com/



就是这个图中的日期,除了用IE正常外,其它浏览器,只要用鼠标点一下“至”后面那个文本框,就会自动跳回到上一个文本框,这是怎么回事?


回复讨论(解决方案)

这是我的源码,帮我看一下


            
              
                
                
                
              
              
                
              
              
                
              
              
                
                
              
              
                
                
              
              
                
                
              
              
                
                
              
              
                
                
              
              
                
                
              
              
                
                
              
              
                
                
              
              
                
                
              
              
                
                
              
              
                
                
              
              
                
                
              
              
                
                
              
                
                
                
              
            
 

                    
                    
                    

                    

                    
                    
网上订车

                      方便快速

                      及时准确 

                    
                
五岳租车公司 网上快速订车
 
注册用户并预存租车费用

                  可享受高折扣优惠!
   
用车单位:
                  
                  

                
例:廊坊市XXXX有限公司
用途:
                  
                
用车时间:
                  
                  

                  例:2013年9月5日至2013年9月10日
共计人数:
                  
                
行程描述:  
 
                    

                    

                      
                    

                

                    

                      

例:9月5日从廊坊出发,上午到达北京天安门。9月6日到天津机场。9月7日到唐山汽车站,9月8日返回廊坊


                    
接人地点及时间:
                  
                
例:9月5日早上7:15在京客隆对面接人
第一联系人姓名及电话:
                  
                   (手机号请如实填写,很重要)
例:王小明,手机:13333336363 
第二联系人姓名及电话:
                  
                
例:李小明,手机:13978372637

                    
备注:

                
 

                    
                

                    
                

                  
                                

                  
五岳最新动态
                    
                    
                  

                

                  
                    
{#section name='biaoti' loop=$titles#}
                      {#$titles[biaoti].title#}

                    {#/section#}                    

                  

                
 
 

             

你的代码里js 有错误,你调试看看吧。 第一个demo2 是哪里的?

<script> <br /> var speed=30 <br /> demo2.innerHTML=demo1.innerHTML <br /> function Marquee() <br /> { <br /> if(demo2.offsetTop-demo.scrollTop<=0) <br /> demo.scrollTop-=demo1.offsetHeight <br /> else <br /> { <br /> demo.scrollTop++ <br /> } <br /> } <br /> var MyMar=setInterval(Marquee,speed) <br /> demo.onmouseover=function() {clearInterval(MyMar)} <br /> demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)} <br /> </script>

不是这里的问题,我删除了也没用,请再帮我看一下

你的代码里js 有错误,你调试看看吧。 第一个demo2 是哪里的?

<script> <br /> var speed=30 <br /> demo2.innerHTML=demo1.innerHTML <br /> function Marquee() <br /> { <br /> if(demo2.offsetTop-demo.scrollTop<=0) <br /> demo.scrollTop-=demo1.offsetHeight <br /> else <br /> { <br /> demo.scrollTop++ <br /> } <br /> } <br /> var MyMar=setInterval(Marquee,speed) <br /> demo.onmouseover=function() {clearInterval(MyMar)} <br /> demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)} <br /> </script>

  

  
  

<td>            <form>            <table>              <tbody>
<tr>                <td>
<div><span> </span></div>                    <span>                    <marquee>                    </marquee>                    </span>                    <marquee>                    <div><span>网上订车<br>                      方便快速<br>                      及时准确 </span></div>                    </marquee>                </td>                <td><div><span>五岳租车公司 网上快速订车</span></div></td>                <td> </td>              </tr>              <tr>                <td><div><span>注册用户并预存租车费用<br>                  可享受高折扣优惠!</span></div></td>              </tr>              <tr>                <td><div><span><a>登录</a> <a>注册</a></span></div></td>              </tr>              <tr>                <td> </td>                <td> </td>              </tr>              <tr>                <td><span>用车单位:</span></td>                <td>
<span>                  <label>                  <input>                  </label>                  <br>                </span><span>例:廊坊市XXXX有限公司</span>
</td>              </tr>              <tr>                <td><span>用途:</span></td>                <td><span>                  <select>                    <option>旅游用车</option>                    <option>婚庆租车</option>                    <option>天津机场租车</option>                    <option>单位租车</option>                    <option>北京国际机场租车</option>                    <option>会议用车</option>                    <option>其他租车</option>                  </select>                </span></td>              </tr>        <tr>                <td><span>用车时间:</span></td>                <td><span>                                    <input>                    至                    <input>                                    <br>                  例:2013年9月5日至2013年9月10日</span></td>              </tr>              <tr>                <td><span>共计人数:</span></td>                <td><span>                  <label>                  <input>                    人 </label>                </span></td>              </tr>              <tr>                <td><span>行程描述:</span></td>                <td> </td>              </tr>              <tr>                <td><span><span><span></span> <span></span>                    <label>                    <div></div></label></span></span></td>                <td>
<div>                    <div>                      <textarea></textarea>                    </div>                </div>                    <div>                      <p><span>例:9月5日从廊坊出发,上午到达北京天安门。9月6日到天津机场。9月7日到唐山汽车站,9月8日返回廊坊</span></p>                    </div>
</td>              </tr>              <tr>                <td><span>接人地点及时间:</span></td>                <td>
<span>                  <label>                  <input>                  </label>                </span><span><span>例:9月5日早上7:15在京客隆对面接人</span></span>
</td>              </tr>              <tr>                <td><span>第一联系人姓名及电话:</span></td>                <td>
<span>                  <label>                  <input>                  </label>                  <span> (手机号请如实填写,很重要)</span></span><span><strong><span>例:</span></strong></span><span>王小明,手机:13333336363 </span>
</td>              </tr>              <tr>                <td><span>第二联系人姓名及电话:</span></td>                <td>
<span>                  <label>                  <input>                  </label>                </span><span>例:李小明,手机:13978372637</span>
</td>              </tr>              <tr>                <td><div>                    <div>备注:</div>                </div></td>                <td> </td>              </tr>              <tr>                <td><div>                                    </div></td>                <td><div><span>                    <textarea></textarea>                </span></div></td>              </tr>              <tr>                <td><span>                  <label>                  <div>                    <input>                    <input>                                       <input>
</div>                  </label>                                </span></td>                </tr>              <tr>                <td><div>                  <div>五岳最新动态                                                          </div>                </div></td>                <td>
<span>                  <marquee>                    <div>                      <a>五岳租车购进的新能源汽车将补新政策十大亮点</a><br>                                          <a>廊坊租车快捷的方式、完善的服务只因您而存在!</a><br>                                          <a>五岳汽车</a><br>                                          <a>廊坊是否用名人和电影效应推动旅游业与租车业</a><br>                                          <a>廊坊租车从廊坊到成都峨眉山有多远?</a><br>                                        </div>                  </marquee>                </span> </td>                <td> </td>              </tr>            </tbody>
</table>
</form>
</td>
Copier après la connexion
source:php.cn
Déclaration de ce site Web
Le contenu de cet article est volontairement contribué par les internautes et les droits d'auteur appartiennent à l'auteur original. Ce site n'assume aucune responsabilité légale correspondante. Si vous trouvez un contenu suspecté de plagiat ou de contrefaçon, veuillez contacter admin@php.cn
Tutoriels populaires
Plus>
Derniers téléchargements
Plus>
effets Web
Code source du site Web
Matériel du site Web
Modèle frontal