我只是想问一下如何在调整大小时使字体大小响应性地改变(如缩放效果无剪切)?我得到了 bootstrap.css、jquery.js 和 bootstrap.js
<div class="full-width1">
<div class="container">
<h1 class="firstinfo">About SWA{PRO}SE</h1>
<p class="desc">The Software and Web Application Professionals and System Engineers (SWAPROSE) is a team of IT experts with vast experience in intranet business software, web application and game development.</p>
</div>
</div>
<div class="full-width2">
<div class="arrow-white"></div>
<div class="container">
<h1 style="color:#1798AA; font-weight:bold">Project Development</h1>
<p class="desc">Swaprose provides a variety of project developments, from games to software. we create the applications need for our clients. We also create independent mobile games to be released on Android and iOS.</p>
</div>
</div>
</div>
最佳答案
Auto adjust font size when resizing
您可以使用 vw
单位来做到这一点:
h2 {font-size: 8vw;}
关于javascript - 调整大小时自动调整字体大小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37145745/