PHP8.1.21版本已发布
vue8.1.21版本已发布
jquery8.1.21版本已发布

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

原创
2016-06-24 12:13:38 2806浏览


*{      
        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;}

声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn核实处理。