asp.net - 如何为 html 操作链接提供按钮样式

标签 asp.net html button actionlink

如何为 html 操作链接提供按钮样式

最佳答案

更新

这会进入您的 CSS 文件:

.roundedButton {
    font-family: Verdana, Helvetica, Arial, sans-serif;
    font-size: 12px;

    color: #181818;
    color: rgba(0,0,0,0.4);
    width: 65px;

    padding: 8px 12px;
    border: none;
    outline:none;
    outline:0;

    -moz-border-radius: 2px;
    -webkit-border-radius: 2px;
    border-radius: 2px;

    -moz-box-shadow: 0px 1px 3px rgba(0,0,0,0.4);
    -webkit-box-shadow: 0px 1px 3px rgba(0,0,0,0.4);
    box-shadow: 0px 1px 3px rgba(0,0,0,0.8);
}

我相信这可能就是您想要的。

Html.ActionLink("ActionLink Text", null, new { @class="roundedButton"})

另外,我刚刚找到这个页面:Edit Html.ActionLink output string

问题中的代码看起来已经设计好了。

关于asp.net - 如何为 html 操作链接提供按钮样式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5455216/

相关文章:

c++ - 如何使用CreateWindowEx创建win7风格的按钮

c# - 在 asp.net 图表中调整字体轴样式和大小?

javascript - 在 ASP .NET MVC 中允许 mime

c# - 通过单击按钮将焦点设置到另一个控件

ASP.NET Web 服务安全

html - 在jsp中不使用\n显示换行字符串

javascript - 在搜索十字图标上运行功能

tbody 内带有垂直滚动的 html 表格

javascript - 如何在单击另一个按钮 1 时添加一个按钮 2,在单击按钮 2 时添加按钮 3

javascript - 如何制作圆环图部分、按钮