Bootstrap表单组。一行中的三个元素

时间:2017-10-09 11:31:45

标签: html asp.net twitter-bootstrap twitter-bootstrap-3

我有一个select name as "User name" from users; select name as 'User name' from users; select name as {User name} from users; select name as [User name] from users; ,我有一个div。  它是form-group,旁边是label。我需要在TextAreaFor旁边显示一个文字,但文本总是位于TextArea下,正如您在此处所见。 enter image description here

TextArea

我试过 <div class="form-group"> @Html.LabelFor(m => m.Remarks, new { @class = "control-label col-md-offset-1 col-md-3" }) <div class="col-md-8"> @Html.TextAreaFor(m => m.Remarks, new { @class = "form-control", disabled = "disabled" }) <label for="textbox1" class="form-inline" > I need text here</label> </div> </div> 我试图为标签添加form-inline,但这些都没有解决我的问题。 你能告诉我吗?

1 个答案:

答案 0 :(得分:4)

试试这个

&#13;
&#13;
storeToarray();
function storeToarray(){
  let ItemArray = [];
  if(Object.keys(data).length > 1){
  var keus = Object.keys(data)[1];
    for(var i = 0; i < Object.keys(data[keus]).length; i++){
      var keusVal = Object.keys(data[keus])[i];
      var open = Object.keys(data[keus][keusVal])[0];
      var close = Object.keys(data[keus][keusVal])[1];
      var low = Object.keys(data[keus][keusVal])[2];
      var volume = Object.keys(data[keus][keusVal])[3];
      var high = Object.keys(data[keus][keusVal])[4];

     ItemArray.push({"open":data[keus][keusVal][open],"high" :data[keus][keusVal][high] ,"low" : data[keus][keusVal][low],"close":data[keus][keusVal][close],"volume":data[keus][keusVal][volume]})
    }
  }
  console.log(ItemArray);
}
&#13;
&#13;
&#13;

或尝试 form-inline http://getbootstrap.com/docs/4.0/components/forms/