关于 OVERFLOW: visible 这个只能是在IE支持,并且,前面一定要用 <!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"> <html xmlns="http://www.w3.org/1999/xhtml"> 其他的方法只能是js实现控制了
ReadOnly="True" Width="100%" Height="380px" Wrap="True" style="OVERFLOW-Y: visible"></asp:TextBox>
ReadOnly="True" Width="100%" Height="380px" Wrap="True" style="OVERFLOW-Y: visible"></asp:TextBox>
OVERFLOW: visible
这个只能是在IE支持,并且,前面一定要用
<!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">
<html xmlns="http://www.w3.org/1999/xhtml">
其他的方法只能是js实现控制了
style= "overflow-x:auto "横自动
style= "overflow-y:auto "纵自动
style="overflow:hidden"
<textarea rows="1" style="overflow-y:hidden;" onscroll="this.rows++;" onpropertychange="this.style.posHeight=this.scrollHeight"></textarea>
加到<head></head>里例如:<asp:TextBox ID="TextBox2" runat="server" TextMode="MultiLine" Width="300px" style="overflow:visible" Height="200"></asp:TextBox>