html5怎样设置文本框居中,怎么我的文本框是靠左的,怎样才能让他居中_html/css_WEB-ITnose...

怎么我的文本框是靠左的,怎样才能让他居中_html/css_WEB-ITnose 5268f80b9b1e01f982625ef6fac83ca1.png

*{

margin:0;

padding:0;

list-style-type:none;

font-size:13px;

font-family:'Helvetica Neue',Helvetica,Arial,Sans-serif;

}

body {

background-image: url(images/mybody_bg.jpg);

}

#all_wrap {

width: 958px;

margin: 0px auto;

background-image: url(images/mybody_main_bg.gif);

}

#header h1 {

font-size: 36px;

line-height:70px;

}

#header {

margin: 0px auto;

width: 916px;

}

#content {

margin: 0px auto;

width: 916px;

border: 1px solid #3683D8;

}

.item {

margin: 0px auto;

width: 896px;

border-bottom-width: 1px;

border-bottom-style: dashed;

border-bottom-color: #900;

clear:both;

}

.a {

float: left;

width:60px;

margin-top:5px;

}

/*留言列表*/

.n,.t,.m{

line-height:30px;

}

.n {

float: left;

color:#00F;

padding-right:5px;

}

.t{

color:#666;

}

.o {

float: right;

}

.m{

padding-left:60px;

padding-right:30px;

word-break:break-all;

}

/*新留言表单*/

.form_line{

clear:both;

margin-top:10px;

}

.form_box {

margin: 0px auto;

width: 890px;

}

.form_text {

float: left;

width: 80px;

text-align:right;

}

#form_select_avater label {

width: 60px;

display: block;

float: left;

text-align: center;

cursor: pointer;

}

.form_input textarea {

width: 500px;

height: 70px;

}

#submit_0{

width:100px;

height:30px;

}

#footer{

margin: 0px auto;

width: 896px;

}

.footer_message {

line-height: 40px;

}

.pagination {

text-align: center;

margin:10px auto 10px auto;

}

.pagination a {

display: inline-block;

border: 1px solid #00F;

padding-right: 8px;

padding-left: 8px;

padding-top: 2px;

padding-bottom: 2px;

text-decoration: none;

color: #900;

margin-right: 4px;

}

.pagination a:hover{

border-color:#F0F;

color:#000;

}

.login_button {

float: right;

}

#submit_1 {

width: 60px;

}

.login_form form label {

float: left;

display: block;

width: 220px;

}

.login_form {

padding-top: 20px;

}

.login_form form {

display: block;

border: 1px dashed #F0F;

width:520px;

padding-top:10px;

padding-bottom:10px;

padding-left:3px;

}

.welcome_info {

color: #900;

float: right;

}

.r {

color: #F00;

}

.retime{

color:#666;

}

.login_button a{

text-decoration:none;

}

#login_form{

display:none;}

回复讨论(解决方案)

文字?

.form_input textarea {

width: 500px;

height: 70px;

}

加上

text-align: center;

以后css 问题请发到相应的板块

文字?

.form_input textarea {

width: 500px;

height: 70px;

}

加上

text-align: center;

以后css 问题请发到相应的板块

对!

.文本框样式{width:100px;margin:0 auto;}

1428d0e076c3959ab11d28a39bc84fab.png

5268f80b9b1e01f982625ef6fac83ca1.png

本条技术文章来源于互联网,如果无意侵犯您的权益请点击此处反馈版权投诉

本文系统来源:php中文网

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值