我有两个文本框,一个用于第一个文本,另一个用于第二个文本。每个都有一个用于选择尺寸的下拉框(因此它们可以具有不同或相同的尺寸)。现在我可以选择不同的尺寸并且效果很好。我遇到的问题是它们显示在两条不同的行中,例如:
       first text
       second text
但我希望它们彼此相邻显示。例如
      first text second text
我现在拥有的代码如下:
 <c:choose>
   <c:when test="${! (empty (properties['first']) && empty (properties['second']))}">
    <c:choose>
        <c:when test="${properties['type'] == 'styled'}">
            <h1 class="aaaa">
                <span>first text</span>
            </h1>
        </c:when>
        <c:otherwise>
            <h2 class="bbb">
                <span class="putColor">first text</span>
            </h2>
        </c:otherwise>
    </c:choose>
    <c:choose>
        <c:when test="${properties['type1'] == 'styled'}">
            <h1 class="aaaa">
                <span class="putColor">second text</span>
            </h1>
        </c:when>
        <c:otherwise>
            <h2 class="bbb">
                <span class="putColor">second text</span>
            </h2>
        </c:otherwise>
    </c:choose>
</c:when>
<c:otherwise>       
    <div class="hhhh">
    </div>      
</c:otherwise>
 </c:choose>