为什么我的cpanel或网站不使用我刚刚添加的新CSS文件?

时间:2019-06-20 20:52:15

标签: css cpanel

因此,该公司希望我编辑其index.html页面。我进入了cpanel,注释了不再需要的html,并添加了一些新的html。 (我认为我会这样做,而不是删除文件并添加一个新文件,因为我所做的更改很少)但是我确实添加了一个新的CSS文件来替换另一个文件。这个文件的名称当然只是一堆新的CSS。无论如何,我添加了新内容,但看起来却不尽如人意。这是截至https://gilbertmovingandstorage.com/的站点,这就是每个部分应该看起来像https://imgur.com/a/6zXObsX的样子。使用我的devtools并转到源代码,我查看了CSS文件(css / template-style.css),它仍然具有原始文件吗?即使我删除了它并用新版本替换了它?

p.s摘录中的css是我的cpanel上的css thats,应该链接到索引。 html文件。

html {
	scroll-behavior: smooth;
}

#first-block, #second-block, #third-block, #fourth-block {
text-align:center;
padding:3.5rem 0;
}
#carousel {
text-align:center;
position: relative;
overflow: hidden;
/*display: flex;
flex-direction: column;*/
/*background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url(img/phone-slide.jpg);*/
}
#carousel .header-img {
width: 100%;
}
#carousel .phrase-wrap::after {
display: inline-block;
content: '';
position: absolute;
z-index: 1;
left: -990em;
right: -999em;
bottom: -999em;
top: -999em;
background-color: rgba(0, 0, 0, 0.3);
}
.phrase-wrap {
position: absolute;
z-index: 1;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: white;
font-size: 3rem;
}
.phrase-wrap div, .phrase-wrap a{
display: inline-block;	
position: relative;
z-index: 2;
}
#quote-btn {
color: white;
background-color: #ce1616;
font-size: 1.7rem;
border-radius: 25px;
padding: 5px 17px 10px 17px;
cursor: pointer;
transition: all .3s  ease;
}
#quote-btn:hover {
	background-color: white;
	color: #245877;
	/*background-color: #1a435b;*/
}
#first-block {
background:#fff;
}
#second-block {
background:#e5e5e5;
}
#third-block {
background:#fff;
padding-bottom: 1.5rem;
}
.review-wrap {
	display: flex;
	justify-content: space-around;
	margin: 0 100px 0 70px;
}
#testimonials {
display: flex;
flex-wrap: wrap;
padding: 0 10px;
}
#testimonials div{
flex: 1 20%;
margin: 30px;
}
#testimonials div span {
	margin-left: 8px;
}
#fourth-block {
background:#e5e5e5;
}
.hide {
	display: none;
}
.gallery-grid {
	padding: 15px 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(250px, 1fr));
	grid-template-rows: repeat(5, 250px);
	max-width: 80%;
	margin-right: auto;
	margin-left: auto;
	grid-gap: 15px;
}
.home-advisor {
	display: flex; 
	align-items: center; 
	position: relative; 
	top: 15px;
}
.scale {
	transform: scale(1.3);
}
.move-left {
	position: relative;
	left: -30px;
}
.img-wrap img {
	width: 100%;
	height: 100%;
}

footer {
background:#fff;
padding:3.5rem 0;
}

.footer-quote-btn {
	background-color: #e5e5e5;
	display: inline-block;
	padding: 4px 12px 4px 12px;

}

@media screen and (max-width: 1600px) {
	.review-wrap div img:not(.scale) {
		transform: scale(0.9);
	}

	.scale {
		transform: scale(1.1);
	}
}

@media Screen and (max-width: 1527px) {
	#quote-btn {
		font-size: 1.3rem;
	}

	.move-left {
		left: -15px;
	}

	.review-wrap {
		margin: 0 50px 0 20px;
	}
}

@media screen and (max-width: 1450px) {
	.gallery-grid {
		max-width: 90%;
	}
}

@media screen and (max-width: 1250px) {
	.gallery-grid {
		max-width: 97%;
	}
}

@media screen and (max-width: 1125px) {
	.hide {
		display: block;
	}

	.gallery-grid {
		grid-template-columns: repeat(3, minmax(250px, 1fr));
		grid-template-rows: repeat(7, 250px);
	}

	.review-wrap {
		margin-left: 20px;
		margin-right: 50px;
	}
}

@media screen and (max-width: 1080px) {
	.phrase-wrap {
		font-size: 2.7rem;
	}
}

@media screen and (max-width: 921px) {
	.home-advisor {
		top: 10px;
	}
}

@media screen and (max-width: 900px) {
#testimonials div{
	flex: 1 25%;
	margin: 30px;
}

.gallery-grid {
	grid-template-rows: repeat(7, 200px);
}

}

@media screen and (max-width: 805px) {
	.hide {
		display: none;
	}

	.gallery-grid {
		grid-template-columns: repeat(2, minmax(250px, 1fr));
		grid-template-rows: repeat(10, 250px);
	}
}

#third-block h1 {
	margin-left: 30px;
	margin-right: 30px;
}

@media screen and (max-width: 771px) {
	.top-nav li a {
    	padding: 1rem;
	}

	.phrase-wrap {
		font-size: 2.3rem;
	}

	#quote-btn {
		font-size: 1.1rem;
		padding: 5px 13px 10px 13px
	}

	.move-yelp {
		left: -5px;
	}
	
}

@media screen and (max-width: 768px) {
  .right {
  float:none;
  }
}

@media screen and (max-width: 650px) {
#testimonials div{
	flex: 1 100%;
}

.gallery-grid {
	padding: 8px 0;
	grid-gap: 8px;
	grid-template-rows: repeat(10, 200px);
}

.review-wrap {
	flex-wrap: wrap;
	margin: 0;
}

.google, .move-left {
	position: relative;
	top: -50px;
}

.move-left {
	left: 0;
}

.review-wrap div img:not(.scale) {
		transform: scale(0.8);
	}

	.scale {
		transform: scale(1);
	}
}

@media screen and (max-width: 530px) {
	.gallery-grid {
		max-width: 80%;
		grid-template-columns: repeat(1, minmax(250px, 1fr));
		grid-template-rows: repeat(20, 300px);
	}

	.phrase-wrap div {
		display: none;
	}

	#quote-btn {
    	font-size: 1.7rem;
    	padding: 5px 17px 10px 17px;
	}
}

@media screen and (max-width: 450px) {
	#third-block h1 {
		font-size: 2rem;
		margin: 0 15px 0 15px;
	}

	.gallery-grid {
		max-width: 90%;
		grid-template-rows: repeat(20, 250px);
	}

	#quote-btn {
    	font-size: 1.3rem;
    	padding: 5px 13px 10px 13px;
	}
}

@media screen and (max-width: 375px) {
	.review-wrap div img:not(.scale) {
		transform: scale(0.7);
	}

	.scale {
		transform: scale(0.9);
	}
}

@media screen and (max-width: 350px) {
	#testimonials div{
		margin: 15px;
	}

	.gallery-grid {
		max-width: 90%;
		grid-template-rows: repeat(20, 200px);
	}
}

0 个答案:

没有答案