input文本框样式代码实例

<html> 

<head> 
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"> 
<title>新建网页 1</title> 
<style> 
<!-- 
.username { width:130px; background:#FFFFFF url("/article/upimages/ico_username.gif") 2px 2px no-repeat; padding-left:18px;BORDER-RIGHT: #E7AD01 1px solid; BORDER-TOP: #E7AD01 1px solid; FONT-SIZE: 13px; BORDER-LEFT: #E7AD01 1px solid; COLOR: #000000; BORDER-BOTTOM: #E7AD01 1px solid; HEIGHT: 20px } 
--> 
</style> 
</head> 

<body> 

<table cellSpacing="0" cellPadding="0" width="100%" border="0" id="table1"> 
    <tr> 
        <form name="myform" method="post" action=""> 
            <td class="login_td">用户名:<input class="username" onmouseover="this.style.borderColor='#99E300'" onmouseout="this.style.borderColor='#A1BCA3'" maxLength="12" name="UserName"></td> 
        </form> 
    </tr> 
    </table> 

</body> 

</html>

posted @ 2008-07-27 19:01  Ewin  阅读(727)  评论(0编辑  收藏  举报