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

我的网址是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>
Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
The Future of HTML: Evolution and TrendsThe Future of HTML: Evolution and TrendsMay 13, 2025 am 12:01 AM

The future of HTML will develop in a more semantic, functional and modular direction. 1) Semanticization will make the tag describe the content more clearly, improving SEO and barrier-free access. 2) Functionalization will introduce new elements and attributes to meet user needs. 3) Modularity will support component development and improve code reusability.

Why are HTML attributes important for web development?Why are HTML attributes important for web development?May 12, 2025 am 12:01 AM

HTMLattributesarecrucialinwebdevelopmentforcontrollingbehavior,appearance,andfunctionality.Theyenhanceinteractivity,accessibility,andSEO.Forexample,thesrcattributeintagsimpactsSEO,whileonclickintagsaddsinteractivity.Touseattributeseffectively:1)Usese

What is the purpose of the alt attribute? Why is it important?What is the purpose of the alt attribute? Why is it important?May 11, 2025 am 12:01 AM

The alt attribute is an important part of the tag in HTML and is used to provide alternative text for images. 1. When the image cannot be loaded, the text in the alt attribute will be displayed to improve the user experience. 2. Screen readers use the alt attribute to help visually impaired users understand the content of the picture. 3. Search engines index text in the alt attribute to improve the SEO ranking of web pages.

HTML, CSS, and JavaScript: Examples and Practical ApplicationsHTML, CSS, and JavaScript: Examples and Practical ApplicationsMay 09, 2025 am 12:01 AM

The roles of HTML, CSS and JavaScript in web development are: 1. HTML is used to build web page structure; 2. CSS is used to beautify the appearance of web pages; 3. JavaScript is used to achieve dynamic interaction. Through tags, styles and scripts, these three together build the core functions of modern web pages.

How do you set the lang attribute on the  tag? Why is this important?How do you set the lang attribute on the tag? Why is this important?May 08, 2025 am 12:03 AM

Setting the lang attributes of a tag is a key step in optimizing web accessibility and SEO. 1) Set the lang attribute in the tag, such as. 2) In multilingual content, set lang attributes for different language parts, such as. 3) Use language codes that comply with ISO639-1 standards, such as "en", "fr", "zh", etc. Correctly setting the lang attribute can improve the accessibility of web pages and search engine rankings.

What is the purpose of HTML attributes?What is the purpose of HTML attributes?May 07, 2025 am 12:01 AM

HTMLattributesareessentialforenhancingwebelements'functionalityandappearance.Theyaddinformationtodefinebehavior,appearance,andinteraction,makingwebsitesinteractive,responsive,andvisuallyappealing.Attributeslikesrc,href,class,type,anddisabledtransform

How do you create a list in HTML?How do you create a list in HTML?May 06, 2025 am 12:01 AM

TocreatealistinHTML,useforunorderedlistsandfororderedlists:1)Forunorderedlists,wrapitemsinanduseforeachitem,renderingasabulletedlist.2)Fororderedlists,useandfornumberedlists,customizablewiththetypeattributefordifferentnumberingstyles.

HTML in Action: Examples of Website StructureHTML in Action: Examples of Website StructureMay 05, 2025 am 12:03 AM

HTML is used to build websites with clear structure. 1) Use tags such as, and define the website structure. 2) Examples show the structure of blogs and e-commerce websites. 3) Avoid common mistakes such as incorrect label nesting. 4) Optimize performance by reducing HTTP requests and using semantic tags.

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!