现在我正在使用多个标题标签和一个css类来实现下图中显示的效果,有没有什么办法可以通过使用只是一个标题/行和CSS?如何用CSS和/或Javascript实现这种效果(换行符)
目前代码:
<h2 class="heading">Hi guys, How can i achieve this effect using just a single</h2>
<div class="clearfix"></div>
<h2 class="heading">line of text and css. Right now i am using</h2>
<h2 class="heading">multiple <h2> tags and a css class to achieve this effect.</h2>
<h2 class="heading">Is it possible to achieve this only with css or do i have to use Javascript as well?</h2>
期望码
<h2 class="heading">Hi guys, How can i achieve this effect using just a single line of text and css. Right now i am using multiple <h2> tags and a css class to achieve this effect. Is it possible to achieve this only with css or do i have to use Javascript as well?</h2>
这个根据我的是,我不能让它响应不降低的字体大小,填充,等我穿上”的主要问题不想要。
即使我让它响应我不能添加换行符,无论我想要什么,而无需使用其他标签或JavaScript。
你们是如何解决这个问题的?
简答题:No. – Tomalak
是什么让第一行比最后一行快? – PeeHaa
没有额外的html/css,这种情况不会发生,因为每一行都以不同的宽度断开,并且有些任意。我不知道如何让这段文字响应如果a)你想在每一行保留相同的文本,而b)不改变字体大小。 JavaScript不应该是必要的。 –