CSS不在部分课程的主页上工作

发布于 2025-01-25 12:27:37 字数 1603 浏览 2 评论 0原文

尝试将CS​​S添加到我的网站中,但是当我创建一个新的部分类别并尝试向其添加CSS时,它不会与中心保持一致或编辑即时通讯尝试的文本。它适用于home.aspx中的其他部分类,但是不是一个。

.machinesetup {
  width: 80%;
  margin: auto;
  text-align: center;
  padding-top: 100px;
}

h1 {
  font-size: 36px;
  font-weight: 600;
}

p {
  color: #777;
  font-size: 14px;
  font-weight: 300;
  line-height: 22px;
  padding: 10px;
}
<section class="machinesetup">
  <h1>Employees </h1>
  <p>Hear What Our Recent Graduates Have To Say</p>
  <div class="row">
    <div class="course-col">
      <h3>James - Application Developer Analyst</h3>
      <p>"I'm a big fan of efficiency and engaging work, so it's been really satisfying to contribute to making processes better."</p>
    </div>
    <div class="course-col">
      <h3>Alisha - UX Designer</h3>
      <p>"It feels good to know our work directly promotes our business goals of consumer centricity and it enables leadership to take action to promote our shared purpose - helping our customers through life's uncertainties."</p>
    </div>
    <div class="course-col">
      <h3>PJ - Developer</h3>
      <p>"My favourite thing about my job is my team. Since the beginning, everyone has been very supportive of me and are always welcoming if I had any issues or questions."</p>
    </div>
  </div>
</section>

Trying to add css to my site however when I created a new section class and tried to add css to it, it will not align to the centre or edit the text that im trying to. It works for other section classes within home.aspx however not this one.

.machinesetup {
  width: 80%;
  margin: auto;
  text-align: center;
  padding-top: 100px;
}

h1 {
  font-size: 36px;
  font-weight: 600;
}

p {
  color: #777;
  font-size: 14px;
  font-weight: 300;
  line-height: 22px;
  padding: 10px;
}
<section class="machinesetup">
  <h1>Employees </h1>
  <p>Hear What Our Recent Graduates Have To Say</p>
  <div class="row">
    <div class="course-col">
      <h3>James - Application Developer Analyst</h3>
      <p>"I'm a big fan of efficiency and engaging work, so it's been really satisfying to contribute to making processes better."</p>
    </div>
    <div class="course-col">
      <h3>Alisha - UX Designer</h3>
      <p>"It feels good to know our work directly promotes our business goals of consumer centricity and it enables leadership to take action to promote our shared purpose - helping our customers through life's uncertainties."</p>
    </div>
    <div class="course-col">
      <h3>PJ - Developer</h3>
      <p>"My favourite thing about my job is my team. Since the beginning, everyone has been very supportive of me and are always welcoming if I had any issues or questions."</p>
    </div>
  </div>
</section>

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

聽兲甴掵 2025-02-01 12:27:37

如果您使用的是Visual Studio,则必须在CSS文件中将属性始终设置为输出»。

If you are using Visual Studio, you must set the property «copy always to output» in your css file.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文