引导形式中<div>的高度

时间:2017-04-15 10:32:37

标签: forms twitter-bootstrap

我是以引导形式:

       名称               &#34; /&GT;             
difference() {
    import("outerShell_ml.stl");

    translate([-11.4,-9.8,-6.5])
    #cube(1);
}

solid outerShell_ml
 facet normal -0.685994 -0.514497 -0.514495
  outer loop
   vertex -11.440000 -9.540000 -6.400000
   vertex -11.259999 -9.780000 -6.400000
   vertex -11.320000 -9.719999 -6.380000
  endloop
 endfacet
 facet normal -0.665639 -0.554699 -0.499233
  outer loop
   vertex -11.440000 -9.540000 -6.400000
   vertex -11.620000 -9.360000 -6.360000
   vertex -11.740000 -9.179999 -6.400000
  endloop
 endfacet
endsolid outerShell_ml

我无法定义我的高度,因此我在字段之间有很多空间(200px)。不知道怎么解决这个问题?谢谢。

2 个答案:

答案 0 :(得分:1)

尝试这样做:

var el = document.querySelector(".form-group");
el.style.width = "200px";

答案 1 :(得分:0)

<!DOCTYPE html>
<html lang="en">
<head>
  <title>Bootstrap Example</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.0/jquery.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>

  <form class="form-inline">
    <div class="form-group">
      <label for="email">Email:</label>
       <?php echo @$_SESSION['ctform']['email_error'] ?>
      <input class="form-control" id="email" name="ct_email" type="text" value="<?php echo htmlspecialchars(@$_SESSION['ctform']['ct_email']) ?>"/>

    </div>
  </form>  
</body>
</html>

https://www.w3schools.com/code/tryit.asp?filename=FENK34MFH506