POI XSSF如何在单元格中设置文本垂直顶部

时间:2017-11-05 04:08:07

标签: java excel apache-poi xssf

最近,我遇到了如何使用XSSF将文本设置为垂直顶部的问题,我需要将文本放在一个单元格的顶部,但是当我使用

<h2>Animated Modal with Header and Footer</h2>

<!-- Trigger/Open The Modal -->
<button id="myBtn">Open Modal</button>

<!-- The Modal -->
<div id="myModal" class="modal">

  <!-- Modal content -->
  <div class="modal-content">
    <div class="modal-header">
      <span class="close">&times;</span>
      <h2>Modal Hecccccccccccccader</h2>
    </div>
    <div class="modal-body">
      <p>Some text in the Modal Body</p>
      <p>Some other cccccccccccctext...</p>
    </div>
    <div class="modal-footer">
      <h3>Modal ccccccccccccccFooter</h3>
    </div>
  </div>

</div>


<!-- Trigger/Open The Modal -->
<button id="myBtn2">Open Modal</button>

<!-- The Modal -->
<div id="myModal2" class="modal">

  <!-- Modal content -->
  <div class="modal-content">
    <div class="modal-header">
      <span class="close2">&times;</span>
      <h2>Modaldddddddddddd Header</h2>
    </div>
    <div class="modal-body">
      <p>Some textdddddddddddddddddd in the Modal Body</p>
      <p>Some otherdddddddddddddddddddd text...</p>
    </div>
    <div class="modal-footer">
      <h3>Modal Footer</h3>
    </div>
  </div>

</div>

它总是在单元格的中间显示文本,我很困惑,不知道我需要改变哪种方法,非常感谢有人可以给我一些提示,非常感谢前进!<​​/ p>

0 个答案:

没有答案