我最近用我的名字购买了一个域名,并且正在建立一个“恢复网站”,并且一直在慢慢添加内容。就像标题所说的那样,尽管当我在本地查看我的网站时一切正常,但是当我通过cPanel上传CSS时,部分CSS不能正常工作。以我的名字命名的东西可以很好地工作,但是在底部有一些介绍性文字,应该是白色等,但不是。您必须选择它才能看到它,因为背景是黑色的。 网址:http://www.arberesati.com/
对于查看代码,我没有做很多事情,看起来都不错:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Arber Esati</title>
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
<link rel="stylesheet"
href="http://fonts.googleapis.com/css?family=Exo:200,400|Montserrat:600|Open+Sans:300|Roboto:200|Text+Me+One%26effect=anaglyph"
type="text/css">
<link rel="stylesheet" href="style.css" type="text/css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="js/script.js"></script>
<script src="js/jquery.ba-throttle-debounce.min.js"></script>
</head>
<body>
<!-- Cover page -->
<div id="co">
<div class="name">
<h1 id="ae">Arber Esati</h1>
</div>
</div>
<div id="welcome">
<h1 id="hi">Hi.</h1>
<p id="intro">I'm a wannabe web designer, professionally tech-headed addicted to cars 17 year old.</p>
</div>
</body>
</html>
/*
font-family: 'Montserrat', sans-serif;
font-family: 'Roboto', sans-serif;
font-family: 'Open Sans', sans-serif;
font-family: 'Exo', sans-serif;
font-family: 'Text Me One', sans-serif;*/
* {
margin: 0;
}
html, body {
height: 100%;
background-color: black;
}
#co {
text-align: center;
vertical-align: middle;
min-height: 100%;
background-color: black;
}
.name {
padding-top: 18%;
}
@keyframes btw {
from {color: black;}
to {color: white;}
}
#ae {
text-shadow: 0 0 0;
color: white;
padding-top: 18%;
font-size: 200px;
font-family: 'Montserrat', sans-serif;
transition:text-shadow 0.5s ease-in-out;
padding: 0;
animation: btw;
animation-duration: 0.35s;
}
@keyframes wtb {
from {color: white;}
to {color: black;}
}
#ae.cool {
animation: wtb;
animation-duration: 0.35s;
font-size: 200px;
font-family: 'Montserrat', sans-serif;
-webkit-transition:text-shadow 0.35s ease-in-out;
-moz-transition:text-shadow 0.35s ease-in-out;
-o-transition:text-shadow 0.35s ease-in-out;
-ms-transition:text-shadow 0.35s ease-in-out;
transition:text-shadow 0.35s ease-in-out;
-webkit-animation-fill-mode: forwards;
-moz-animation-fill-mode: forwards;
-o-animation-fill-mode: forwards;
-ms-animation-fill-mode: forwards;
animation-fill-mode: forwards;
text-shadow: -0.03em -0.03em red, 0.045em 0.045em cyan;
padding: 0;
}
#welcome {
text-align: center;
color: white;
padding: 50px;
}
#hi {
font-size: 70px;
font-family: 'Exo', sans-serif;
font-weight: 400;
}
#intro {
font-size: 15px;
font-family: 'Roboto', sans-serif;
}
$(document).ready(function () {
$(window).scroll($.debounce(250, true, function(e){
$('#ae').toggleClass('cool');
}));
});
我希望有人知道到底怎么了。
答案 0 :(得分:-1)
我想现在可以了吗?因为对我来说,文字是白色的。在多种浏览器中进行了测试。