如何在mvc的usercontrol中添加脚本或CSS样式 [英] How to add a script or css styles in usercontrol for mvc

查看:106
本文介绍了如何在mvc的usercontrol中添加脚本或CSS样式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要为mvc中的表格添加替换颜色,但是如何添加usercontrol

I need to add a alternate colors for cell for table in mvc but how to add in usercontrol

推荐答案

您可以尝试下面的CSS样式代码到用户控件

You can try below code for CSS Styling to user Contral
@Html.ActionLink(Context.User.Identity.Name, "Index", "Account", null,
     new { @style="text-transform:capitalize;" });





或者你可以访问本文 [ ^ ]详细了解它。


这篇关于如何在mvc的usercontrol中添加脚本或CSS样式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆