这是我正在使用的小提琴:
html代码是:
<div class="body">
<div class="variation1 font700 green1">
<h2>
sample <span class="divider"> arrowshape </span>
</h2>
</div>
<div class="clear"></div>
<div class="variation2 font700 green2">
<h2>
as the text increases the font size must decrease but the block height must remain same <span class="divider"> as the text increases the font size must decrease but the block height must remain same </span>
</h2>
</div>
<div class="clear"></div>
<!-- OTHER HTML -->
</div>
我想调整文本以使其适合 div 而不更改所示箭头块的尺寸(大小)(文本大小可以更改,但块大小不能更改)。箭头块必须看起来像示例箭头,并且我面临着变体 2 中所示的问题。有人可以帮我解决这个问题吗?