如何让我的HTML链接看起来像一个按钮?

问题描述:

我使用ASP.NET,我的一些按钮只是做重定向。我宁愿他们是普通的链接,但我不希望我的用户注意到的出现太大的差别。我考虑了锚,即标签包裹图像,但我不想让我每次改变一个按钮上的文本时火起来的图像编辑器。

I'm using ASP.NET, some of my buttons just do redirects. I'd rather they were ordinary links, but I don't want my users to notice much difference in the appearance. I considered images wrapped by anchors, i.e. tags, but I don't want to have to fire up an image editor every time I change the text on a button.

应用该类它

.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;
}