2011-12-06 155 views
0

當我瀏覽Tab鍵在我的jsp中。 我的頁面中的按鈕未得到突出顯示(即,它不會將焦點放在具有虛線的按鈕上)。但它專注於複選框和單選按鈕。由於我不允許更改爲輸入類型=「按鈕」或按鈕aria-disabled =「false」有什麼用?html按鈕組件不突出顯示

 <body> 
    <a href="javascript:submitForm('reset');" class="ui-button-default ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" role="button" aria-disabled="false"> 
    <span class="ui-text-only">RESET</span></a> 
    </body> 

回答

0

嘗試把這個屬性:

的tabindex =「K」,其中「K」是你有多少次按TAB鍵突出顯示該鏈接的數量。

+0

很難算,因爲它是動態頁面。組件是動態添加的。 – user1057697