如何在同一行上获取labeltext?

时间:2016-11-02 01:10:14

标签: css twitter-bootstrap reactjs

我正在使用bootstrap 3作为我的风格。试图在1行上获得labeltext即'mycomp accountnumber':

.lab {
  display: inline-block;
  font-weight: 10px !important;
}
<section className="serviceDetails">
  <div className="row">
    <div className="col-lg-3">
      <div className="col-lg-2">
        <img src="/pic.png" width="30px" height="60px" alt="" />
      </div>
      <div className="col-lg-9 lab">
        <label className="lab" htmlFor="accountNr">mycomp account number</label>
        <span> 1378173871237817</span>
      </div>
    </div>
  </div>
</section>

我尝试了内联阻止,但我仍然获得mycomp帐户,然后在下一行编号。如何在1行获取mycomp帐号?

1 个答案:

答案 0 :(得分:0)

分为两栏

  <div className="col-lg-9 lab">
              <div className="col-sm-6">  <label className="lab" htmlFor="accountNr">mycomp account number</label></div>
         <div className="col-sm-6">
                <span> 1378173871237817</span>
        </div>
              </div>