2013-07-28 92 views
2

我正在使用kendo ui的web軟件包中的kendo ui菜單窗口小部件。超鏈接中存在問題,k按鈕不能與超鏈接一起使用。添加超鏈接到kendo ui k-button?

<button class="k-button"> 
    <a href="http://localhost:5724/map.html"> 
     <font color = 'black'>See All Centers 
    </a></font> 
</button> 

該按鈕甚至沒有響應一個錯誤:它的行爲就好像沒有超鏈接附加按鈕。

+0

你確定map.html的路徑是正確的嗎? –

+1

亞該死肯定...路徑是完全正確的!!1111 – roanjain

+0

這不會工作,因爲按鈕不知道該怎麼辦;你在'button'裏面包裝一個'a'標籤。請參閱下面的答案。 –

回答

5

錨可以直接通過簡單地增加class="k-button"

你應該把它定義爲被格式化爲一個按鈕:

<a href="http://localhost:5724/map.html" class="k-button"><font color = 'black'>See All Center</fonts></a> 

BTW:在您的HTML例子中的標籤是不正確的平衡。另外考慮使用樣式屬性,而不是字體。