html - 主标题没有响应

标签 html css twitter-bootstrap

我的主标题没有改变大小以适应设备,它只是保持相同的大小而不是响应。 here is a picture of the problem.

HTML:

@media (min-width: 768px)
.middle-content .intro-text .name {
  font-size: 4.75em;
}

.middle-content  .intro-text .name {
  display: block;
  font-family: Montserrat,"Helvetica Neue",Helvetica,Arial,sans-serif;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 10em;
  color: white;
}
<!-- Intro Section -->
<section id="intro" class="intro-section">
  <div class="container">
    <div class="row">
      <div class="middle-content col-lg-12">
        <div class="intro-text">
          <h1 class="name">nlythdsgnr</h1>
          <span class="skills">graphic designer</span>
        </div>
      </div>
    </div>
</section>

最佳答案

1)change color: white; to color: #000; for better result.

2)you miss {} in @media code.

3) replace css Codes like this :

.middle-content  .intro-text .name {
    display: block;
    font-family: Montserrat,"Helvetica Neue",Helvetica,Arial,sans-serif;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 7em;
    color: #000;
}

@media screen and (max-width:740px) {
.middle-content .intro-text .name {
    font-size: 4.75em;
 }
}

4)Other Change.

这是 Demo

关于html - 主标题没有响应,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44342845/

相关文章:

javascript - owl carousel 2 不适用于循环和 1 个元素(错误已修复)

html - 按钮和文字不在一条线上

css - CSS3 webkit-transition使用div的多个属性和多个webkit-transition-delay

javascript - 如何将选定的行数据传递给 Bootstrap 模式

html - IE11 中的阿拉伯字体省略号问题

twitter-bootstrap - Liferay 中的 Bootstrap 模式

javascript - 如何在单页应用程序中重新获取图像?

c# - 名称 'image' 在当前上下文中不存在

css - 如何使用 CSS 中的网格区域隐藏具有内容的元素?

javascript - 我想使用 ChartJs 的多个数据工具提示