如果你看看here你會發現默認的玻璃CSS。如果你看看列表部分,你會發現這個寶石:
ul li, ol li {
border-bottom: 1px solid #333;
padding: 6px 0;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
我不知道你是否可以在HTML中包含自定義CSS樣式。如果你可以這樣做:
<article>
<style>
.wrap-li {
white-space: normal;
text-overflow: clip;
overflow: visible;
}
</style>
<section>
<h1>Notes:</h1>
<ol class="text-x-small">
<li class="wrap-li">Don't take the green one</li>
<li class="wrap-li">Don't forget to check about the promotion we have tomorrow</li>
</ol>
</section>
<footer>
<p>Notes</p>
</footer>
</article>
如果API不接受以這種方式定義樣式,你必須嘗試這樣做內聯。每個鋰元素將需要:
<li style="white-space:normal;text-overflow:clip;overflow:visible">Don't take the green one</li>
真棒的想法!我想我會使用表格方法。謝謝。 –