我要删除< br />的,并通过CSS做断开线。如果我改变跨度显示:块宽度将去100%,我需要的宽度正好是文本的长度,就像现在。有什么建议么?
<div class="fullscreen"> <p class="text"> <span class="medium">We</span> <br /> <span class="large">build</span> <br /> <span class="medium">the</span> <br /> <span class="large">Internet</span> </p> </div> .text span { background:rgba(165,220,79,0.8); display:inline-block; padding:7px 10px; color:white; } .fullscreen .large { font-size:80px }