出于某种原因,我的文字不会以任何大小的值回应:为什么文字大小不增加?
这是我有:
<section id="center" class="theLogo">
<div id="responsiveLogo">September</div>
</section>
<script src="js/fittext.js"></script>
<script>
jQuery("#responsiveLogo").fitText(1,{ minFontSize:'60px'});
</script>
CSS
#center {
position: absolute;
width: 60%;
height: auto;
text-align: center;
}
#responsiveLogo {
font-family: "utopia-std",sans-serif;
font-style: normal;
font-weight: 700;
font-size: 2em;
}
“9”是不是回应的人。它应该更大。
您有一个内嵌样式在你的主容器上'' –