我想知道如何在代码中为height设置<select>属性。
我尝试设置.Attribute.Add("Style","Height:120px"),看看是否可以更改它,但无济于事。
发布于 2008-10-09 22:56:20
更好的是,给它一个CssClass。:)
发布于 2008-10-09 22:55:04
样式已经是一个属性...
DropDownList myDropDown;
myDropDown.Style["height"] = "120px";https://stackoverflow.com/questions/189475
复制相似问题