MVC3中的样式链接

时间:2013-07-31 14:04:22

标签: css asp.net-mvc-3

我想知道如何设计我的简单链接:

@Html.ActionLink("Edit", "Edit", new { id=Model.id })

看起来像我的提交按钮样式:

enter image description here

当前提交按钮CSS:

background: none repeat scroll 0 0 #438ECE;
border: 1px solid #004989;
color: #FFFFFF;
cursor: pointer;
font-weight: bold;
padding: 5px;
margin-top: 15px;
margin-right: 10px;

1 个答案:

答案 0 :(得分:1)

试试这个:http://jsfiddle.net/eas8v/

a
{
    background: none repeat scroll 0 0 #438ECE;
    border: 1px solid #004989;
    color: #FFFFFF;
    cursor: pointer;
    font-weight: bold;
    padding: 5px;
    margin-top: 15px;
    margin-right: 10px;
    text-decoration: none;
    font-weight: normal;
    font-family: Arial; Helvetica, Sans-seif;
    font-size: 0.8em;
}