gpt4 book ai didi

ASP.NET Razor View Html.TextBox 大小/宽度

转载 作者:行者123 更新时间:2023-12-01 21:24:16 25 4
gpt4 key购买 nike

有没有一种方法可以在不使用 CSS 的情况下设置文本框大小(设置列或大小属性)?如果是这样,怎么办?

 @Html.TextBox("redeemamt", @Model.Amount)

最佳答案

@Html.TextBox("redeemamt", @Model.Amount, new {style = "width: 100px;"})

或者你可以尝试这样:

@Html.TextBox("redeemamt", @Model.Amount, new { size = "100" })

关于ASP.NET Razor View Html.TextBox 大小/宽度,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10085651/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com