如何在一行中获取文本

How to get text on one line

我正在尝试在一行中显示“是的,请”字样。我希望它完全对齐。但是它显示在两行上。

<section class="contactus">
  <div class="contactustitle">
    <h1>Where happy to hear from you</h1>
    <ion-icon style="width: 100%;" name="remove-outline"></ion-icon>

  </div>
  <div class="contactusinput" style="width: 60%">
    <div class="name">
      <p>Name</p> <input style="width: 70%;" placeholder="Your name" type="text"> </div>
    <div class="email">
      <p>Email</p> <input type="text" placeholder="Email" style="width: 70%;"> </div>
    <div class="refer">
      <p>How did you find us? </p> <input type="text" placeholder="Your erfferer" style="width: 70%;"> </div>
    <div style="border: 1px solid red; width: 42%;">
      <p>Newsletter?</p>
      <div style="display: inline-flex;  border: 1px solid red;"><input type="checkbox" name="" id="">yes, please</div>
    </div>
    <div>
      <p>drop us a line</p> <input type="textarea" placeholder="Your message" style="width: 70%; height: 100px;" style=""> </div>
    <div style=" display: flex; justify-content: center;"><button style="width: 20%; padding: 10px; border: 1px solid #e67e22; border-radius: 200px; background-color: #e67e22; color: #ffff; font-weight: 300;">Send it!</button></div>
  </div>

</section>

除了可以想到的所有 CSS 和内联样式之外,在这种特定情况下(即只有两个短词),实现这一目标的最简单方法是放置一个“non-breaking space" HTML 单词“是”和“请”之间的实体,而不是正常的 space。因此,您的文本(在代码中)不是“是的,请”,而是 yes,&nbsp;please