垂直对齐文本和DropDownList

时间:2013-11-09 21:26:34

标签: html asp.net-mvc

这是我的文字和DropDownList:

  <h3>this is test: @Html.DropDownList("File", new SelectList(ViewBag.Files), "Select...", new { style = "vertical-align:middle;" })</h3> 

enter image description here

我希望它成为对齐

1 个答案:

答案 0 :(得分:0)

<h3>this is test: @Html.DropDownList("File", new SelectList(ViewBag.Files), "Select...", new { style = "vertical-align:middle;"})</h3>

请检查:http://jsfiddle.net/cuK36/