2013-02-25 33 views
0

我有这种奇怪的情况只是弹出,我无法在我创建的窗体上使用我的鼠标。这是要求我通过文本字段选项卡。如果我点击第二场,它只是推我回到第一场,我必须选项卡!无法在文本字段上使用鼠标,必须使用标签

这是完全简单的形式,它与标签有关,但我从来没有遇到过问题。

BTW:不JS或CSS以这种形式或页面

我的例子:

<form> 

<label for="username"*Username label> 

<input type="text" name="username" tabindex="1" id="username"> 

<label for="password"*Password*label*> 

<input type="password" name="password" tabindex="2" id="password"> 

<input type="submit" class="button" value="Login" name="submit" > 

</form> 
+2

请重新格式化您的代码。 – j08691 2013-02-25 21:08:21

回答

0

这是与标签格式输入的正确方法。这应该可以解决你的问题。

<label for="username">*Username*<input type="text" name="username" tabindex="1" id="username"/></label> 
<label for="password">*Password*<input type="password" name="password" tabindex="2" id="password"/></label> 

演示:http://jsfiddle.net/ZFZgt/

相关问题