如何扩展“ DisplayNameFor”以在asp.net核心中显示全文?

时间:2019-05-09 18:48:09

标签: asp.net-core razor

我要显示“ DisplayNameFor”的完整属性名称而不进行串联。

[Display(Name = "Does the information included in this paper is new?")]
        public bool IsNewInfo { get; set; }

在“剃刀”视图中看起来像这样

Does the...

1 个答案:

答案 0 :(得分:1)

听起来像一种int**风格,使得CSS带有省略号(Name):

...

默认情况下,white-space: nowrap; overflow: hidden; text-overflow: ellipsis; 不会截断DisplayNameFor()

相关问题