在使用bootstrap框架时,表单的<fieldset>
标签样式会被重写。
要想回复需要修改bootstrap重写部分:
注意:在直接用标签选择器重写时需要注意css权重问题
fieldset {
//在bootstrap中,下方属性全部为零。这里宽度请视情况改变
width: 300px;
padding: .35em .625em .75em;
margin: 0 2px;
border: 1px solid silver;
}
legend {
//在bootstrap中未重写legend标签内容,这里对样式进行调整,使其美观。
//清除下外边距
margin-bottom: 0px;
//增加标题内边距
padding: .5em;
//去除下边框
border: 0;
//宽度自适应
width: auto;
}
*如有错误,请在底部留言。