1、overflow,overflow-x,overflow-y取值:auto,visible,hidden,scroll,inherit
2、页面用
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
而不能用
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
例如:
<asp:TextBox ID="TextBox1" runat="server" Height="200px" TextMode="MultiLine"
Width="300px" style="overflow:visible" ></asp:TextBox>
3、强制使用ie6的解析CSS
将<meta http-equiv="x-ua-compatible" content="ie=6" />
加到<head></head>里
例如:
<asp:TextBox ID="TextBox2" runat="server" TextMode="MultiLine" Width="300px" style="overflow:visible" Height="200"></asp:TextBox>
4、使用js
例如:
<asp:TextBox ID="TextBox3" runat="server" TextMode="MultiLine" Width="300px" style="overflow:hidden" Height="200" onpropertychange="if(this.scrollHeight >= this.style.posHeight) this.style.posHeight=this.scrollHeight"></asp:TextBox>
5、如果只是去掉滚动条,不改变高度,则只添加style="overflow:hidden"