Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个不包含长内容的文本框,所以如果它是长内容,我们应该显示 MVC3 动态内容工具提示所需的工具提示的内容。请举例说明
几乎最简单的方法就是把@data_toggle = "tooltip", 像这样:
@data_toggle = "tooltip"
@Html.TextBoxFor(m => m.Matricula, new {@class = "form-control", @placeholder = "Matrícula", @title = "Matrícula", @data_toggle = "tooltip", @data_placement = "bottom" })