在同一行上具有嵌套的<div>和<p>元素的两个<div>元素?

Sah*_*kin -2 html css twitter-bootstrap

如何test1, test2在同一行上显示?
我尝试使用float: left;display: inline;,但均未成功。

<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" rel="stylesheet" />

<div class="col-sm-12" id="oblgrad-text-class">
  <div class="form-group">
    <p name="oblgrad-text" id="oblgrad-text">test1, </p>
  </div>
</div>

<div class="col-sm-12" id="obshtina-text-class">
  <div class="form-group">
    <p name="obshtina-text" id="obshtina-text">test2</p>
  </div>
</div>
Run Code Online (Sandbox Code Playgroud)

Vik*_*hav 5

使用col-sm-6代替col-sm-12和检查