以下の HTML デザインでは、メディア再生ラベルとコメント ラベルの省略記号に text-overflow を適用し、メディア再生 (最初の大きな行) を最初の行に、コメント (2 行目の行) を次の行に表示したいと考えています。ライン。Play と Stop および media-played と remarks はすべて同じ行に配置する必要があります。助けてもらえますか?
.oneline {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
#player-play, #player-stop
{
display: inline-block;
width: 48px;
height: 48px;
}
#player-play
{
background-image: url('../images/play.png');
}
#player-stop
{
background-image: url('../images/stop.png');
}
<div id="player" data-role="header">
<div data-role="navbar">
<ul>
<li class="oneline">
<a href="#" id="player-play" title="Play / Pause" style="float:left" ></a>
<a href="#" id="player-stop" title="Stop" style="float:left" ></a>
<label id="media-played" class="oneline">first big line first bing line first bing line first big line</label>
<label id="remarks">second big line second big line second big line second big line</label>
</li>
</ul>
</div>
<div data-role="navbar">
<ul>
<li>
<input type="range" id="time-slider" data-highlight="true" step=".1" data-mini="true" min="0" max="5.40" value="3.4" disabled>
</li>
</ul>
</div>
</div>