【发布时间】:2018-03-10 03:55:51
【问题描述】:
我正在尝试创建如下所示的行:
下面是我的“Row”的 React 组件代码:
/*
* The render method of this component
*/
render() {
return (
<form className="form-inline">
<FormGroup>
<InputGroup>
<InputGroup.Addon>
<input name="cb" type="checkbox" value={this.state.cb} onChange={this.handleInputChange} />
</InputGroup.Addon>
<div>
<FormControl name="remarks" type="text" value={this.state.remarks} onChange={this.handleInputChange} />
<FormControl name="amount" type="text" value={this.state.amount} onChange={this.handleInputChange} />
</div>
</InputGroup>
</FormGroup>
</form>
);
}
}
问题是我想增加“输入文本类型”字段的宽度,但可能不是 CSS 冠军,我无法增加它。经过一段时间的谷歌搜索和沮丧之后在这里问:)
有人帮忙吗?谢谢
【问题讨论】:
-
各位,有什么帮助吗?对于 css 人来说应该很简单:)
标签: html css reactjs react-bootstrap