CSS不在部分课程的主页上工作
尝试将CSS添加到我的网站中,但是当我创建一个新的部分类别并尝试向其添加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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您使用的是Visual Studio,则必须在CSS文件中将属性始终设置为输出»。
If you are using Visual Studio, you must set the property «copy always to output» in your css file.