我在我的網頁中使用引導程序。現在我想達到一個特定的效果。我有一個類名爲「容器流體」的div和帶有文本的h2標籤。就像下面:引導程序崩潰問題及其對DOM的影響
<div class="container-fluid" style="background-color: #f8f8f8;text-align: center;height: 76px;">
<br>
<h2 id="mesheading" style="color: #a76281; font-size: 14px; cursor: pointer; margin-top: -4px; font-family: 'brandon_grotesquebold'; text-transform: uppercase; letter-spacing: 2px;">
Helping manufacturers save 20%-30% of the store cost
<span>
<button class="button_one" type="button" onclick="open_win_two()">
LEARN MORE
</button>
</span>
</h2><br>
</div>
我的要求是,當瀏覽器窗口將被摺疊H2標籤的字體尺寸將變得更小。例如它將變成10px。
並擴大其實際大小的瀏覽器窗口,將回至原來的字體大小即14px的
我已經做了關於jQuery的崩潰相關的事件相當多的研究。但它沒有幫助我。
所以請幫我實現這一點。
在此先感謝!
查找CSS媒體查詢 –