可以使用<br>标签将大字和小字分为两行,如下所示:

<div class="grid-item" onclick="window.open('https://www.baidu.com', '_blank')"">
    <span>大字</span><br>
    <span>小字</span>
</div>

其中,<br>标签表示换行。

div class=grid-item onclick=windowopenhttpswwwbaiducom _blank span格子1span divdiv 里需要写一行大字一行小字不在一行分两行表示。如何实现

原文地址: http://www.cveoy.top/t/topic/cw7F 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录