您的位置:首页 > Web前端 > CSS

CSS左侧固定宽 右侧自适应(兼容所有浏览器)

2016-03-13 18:15 507 查看
body,ul,li {
margin:0;
padding:0;
}
ul,li {
list-style:none;
}
.form-table {
width: 600px;
height: 330px;
margin:10px auto;
overflow: hidden;
padding: 0;
}
.form-table .list {
width: 100%;
height: auto;
overflow: hidden;
}
.form-table .list .item {
width: 100%;
height: auto;
margin-top: 10px;
font-size: 12px;
line-height: 40px;
overflow: hidden;
}
.form-table .list .item .name {
float: left;
width: 67px;
}
.form-table .list .item .info {
width: 100%;
height: auto;
margin-left: 67px;
}
.form-table .list .item .textarea {
position: relative;
width: auto;
}
.form-table .list .item .input {
width: 360px;
height: 40px;
line-height: 40px;
text-indent: 10px;
border: 1px solid #e5e5e5;
border-radius: 3px;
}
.form-table .list .item textarea {
width: 100%;
height: 100px;
border: 1px solid #e5e5e5;
border-radius: 3px;
box-sizing: border-box;
}

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: