css样式<style type="text/css">
<!--
.aa {
text-align: center;
}
-->
</style>你把TextBox.cssclass="aa"

解决方案 »

  1.   

    <!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" xml:lang="gb2312" lang="gb2312">
    <head>
    <title> New Document </title>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <meta name="title" content="" />
    <meta name="author" content="活靶子,Huobazi,www.AspxBoy.com" />
    <meta name="subject" content="" />
    <meta name="language" content="gb2312" />
    <meta name="keywords" content="" />
    <meta name="Copyright" content="www.AspxBoy.com" />
    <meta name="robots" content="all" /></head>
    <body><input type="text" value="aaaa" style="text-align:center;">
    <br />
    <input type="text" value="aaaa" style="text-align:right;">
    <br />
    <input type="text" value="aaaa" style="text-align:left;">
    </body>
    </html>
      

  2.   

    <input type="text" value="" style="text-align:center;">
      

  3.   

    <INPUT id="Text1" type="text" name="Text1" style="text-align:right">不行吗?