如何使html鏈接看起來像一個按鈕?我使用ASP.NET,我的一些按鈕只是重定向。我寧愿它們是普通的鏈接,但我不想讓我的用戶注意到外觀上的差異。我考慮了由錨包的圖像,即標記,但我不想每次更改按鈕上的文本時都啟動圖像編輯器。
3 回答

撒科打諢
TA貢獻1934條經驗 獲得超2個贊
.button { font: bold 11px Arial; text-decoration: none; background-color: #EEEEEE; color: #333333; padding: 2px 6px 2px 6px; border-top: 1px solid #CCCCCC; border-right: 1px solid #333333; border-bottom: 1px solid #333333; border-left: 1px solid #CCCCCC;}
<a href="#" class="button">Example</a>

萬千封印
TA貢獻1891條經驗 獲得超3個贊
<a href="somepage.html"><button type="button">Text of Some Page</button></a>
注
- 3 回答
- 0 關注
- 704 瀏覽
相關問題推薦
添加回答
舉報
0/150
提交
取消