如何在ASP.NET MVC4中的html.actionlink上设置tabindex

时间:2013-07-10 06:20:21

标签: asp.net-mvc asp.net-mvc-4 tabindex

我正在研究ASP.NET MVC4应用程序,我想在Html.Actionlink上设置tabindex。

但我无法做到。

如何在ASP.NET MVC4中的html.actionlink上设置选项卡索引?

2 个答案:

答案 0 :(得分:2)

你试过这个吗?

@Html.ActionLink("Link Name ", " ActionName ",new { @tabindex= 1 })

你也可以试试

$( “#hyperlinkID”)ATTR( '的tabindex', '1');

答案 1 :(得分:0)

import random as r

issued = [1000,200,344...]
def random_sum_to(n, num_terms = None):
    num_terms = (num_terms or r.randint(2, n)) - 1
    a = r.sample(range(1, n), num_terms) + [0, n]
    list.sort(a)
    return [a[i+1] - a[i] for i in range(len(a) - 1)]

for i in issued:
    print(random_sum_to(i,288))