css对textbox加背景图片与color

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
    
<HEAD>
        
<title>testtxtbox</title>
        
<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
        
<meta name="CODE_LANGUAGE" Content="C#">
        
<meta name="vs_defaultClientScript" content="JavaScript">
        
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
        
<style type="text/css">
        .bgimg 
{ BACKGROUND-IMAGE: url(images/2.gif) }
        
</style>
        
<!---- 
    
/// owendu --css对textbox加背景图片与color 的摘要说明。
    
/// ************************************************
    
/// 作者:owendu(阿杜)
    
/// 功能:css对textbox加背景图片与color
    
/// ************************************************
    
///

    -->
    
</HEAD>
    
<body MS_POSITIONING="GridLayout">
        
<form id="Form1" method="post" runat="server">
            
<asp:TextBox id="TextBox1" style="Z-INDEX: 101; LEFT: 120px; POSITION: absolute; TOP: 232px"
                runat
="server" TextMode="MultiLine" onmouseover="this.style.background='url(images/1.gif)'"
                onmouseout
="this.style.backgroundColor='red'" Width="360px" Height="152px"></asp:TextBox>
            
<asp:TextBox id="TextBox3" style="Z-INDEX: 102; LEFT: 112px; POSITION: absolute; TOP: 48px" runat="server"
                Height
="96px" Width="320px" CssClass="bgimg" TextMode="MultiLine"></asp:TextBox>
        
</form>
    
</body>
</HTML>

posted on 2006-10-17 15:49  asdsd  阅读(2023)  评论(0编辑  收藏  举报

导航