如何设置“浮动”在 MVCContrib 中使用 FluentHtml 的样式
我正在使用 MvcContrib FluentHtml 版本 1.0 在 ASP.NET MVC 1.0 中工作。
以下代码不起作用,因为 float
是 C# 关键字。
<%= this.TextBox(m => m.Name).Styles(float => "left") %>
如何使用 FluentHtml 中的 Styles
方法定义“float”CSS 样式?
I'm working in ASP.NET MVC 1.0 using MvcContrib FluentHtml version 1.0.
The following code doesn't work because float
is a C# keyword.
<%= this.TextBox(m => m.Name).Styles(float => "left") %>
How do I define the "float" css style using the Styles
method in FluentHtml?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
为参数添加 @ 前缀。
在 lambda 内使用参数时,请记住逐字转义参数。
prefix the argument with an @.
When using the argument inside the lambda remember to keep verbatim escape the argument.