English 中文(简体)
gsp 页面中的焦点移动
原标题:focus shift in gsp pages
  • 时间:2012-05-23 07:00:27
  •  标签:
  • grails

在 gsp 页面中, 默认移动字段焦点的方式是垂直的。 比如, 在我创建的. gsp 页面中, 我有一个10个文本框, 5个在一列中, 并且我的焦点是放在第一个文本框上, 然后按下标签, 焦点会垂直向下移到下一个文本框上。 我的要求是将焦点水平从左向右, 逐行移动。 任何人都能帮助我做到这一点吗 。 Thnks

最佳回答

您可以使用 < a href=" http://www.w3. org/ TR/ html4/ interact/ forms.html# adef- tabindex" rel = “ nofollow” >tabindex 属性来控制它。 在下面的示例中,焦点根据标签索引的升序从 f1 到 f3 到 f2 。

<input type="text" name="f1" tabindex="1" />
<input type="text" name="f2" tabindex="3" />
<input type="text" name="f3" tabindex="2" />
问题回答

暂无回答




相关问题
grails + gwt request handling via controllers

I am new to gwt. I am trying to integrate gwt+grails.Can anybody provide me a good example for handling the request using grails controllers and not a custom servlet.I will be really thankful if ...

Error loading the grails gwt module xml

I ve installed the plugin from this article by Peter http://www.cacoethes.co.uk/blog/groovyandgrails/the-command-pattern-w.... While compile time its not able to find the module file which is present ...

Sorting Objects Based on Custom Domain Class Methods

I have a domain class, in which I ve defined some methods which give the object a score based on different algorithms (eg. popularity). I now want to retrieve a list of these objects sorted by one of ...

Grails Packaging and Naming Conventions

Packaging Controllers, Services,etc. i.e. - com.company.controllers - com.company.services Is this a good practice or should be avoided by all means?? Another worth mentioning problem I encountered ...

Hibernate/GORM: collection was not processed by flush()

I have an integration test in my Grails application that fails when I try to save an entity of type Member invitingMember.save(flush: true) This raises the following exception org.hibernate....

热门标签