日期:2014-05-19  浏览次数:20580 次

固定住gridView表头高度
我想让gridView   里的TextBox能高度自动变长.
设置了 <asp:TextBox   ID= "txtContent "   runat= "server "   TextMode= "MultiLine "   style= "overflow:visible "   />

确实随着输入内容多少,TextBOx能够变够.

但同时,表头也变高了.

我试着设置了gridView外的   <table   width= "100% "   height= "100% "   style= "table-layout:   fixed ">     和
gridView的   <HeaderStyle   Height= "24px "   /> ,但没有用.

怎么能固定住表头高度.


------解决方案--------------------
<asp:TextBox ID= "txtContent " runat= "server " TextMode= "MultiLine " style= "overflow:visible;height:16px " />
------解决方案--------------------
哪裡有這種事情啊,一方面要求textbox自動增長,一方面又不能讓gridview變長,暈