我只是在自己的网站上工作(并认为我已经完成了),并测试了标题部分中的链接是否正常工作,当我发现单击链接时标题div的大小在瞬间改变了。虽然它有时只发生。另一个问题是,直到淡入淡出动画完成,我才能单击链接。
这些链接指向的HTML外观完全相同,只是主要更改中的内容。
如果有人可以帮助我,那就太好了!提前致谢! 这是该网站的代码:
https://jsfiddle.net/Kaschmir/ayo7n5dj/
$.tGet
@import url('https://fonts.googleapis.com/css?family=Astloch|Berkshire+Swash|Cherry+Swash|Merienda+One|Oleo+Script|Tulpen+One');
@keyframes fadeIn {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
html,
body {
margin: 0;
height: 100%;
}
header {
-webkit-box-sizing: content-box;
-moz-box-sizing: content-box;
box-sizing: content-box;
margin-top: 30px;
width: 10em;
position: fixed;
left: 2em;
padding: 1em;
border: 1px solid rgba(102, 140, 255, 0.8);
-webkit-border-radius: 2px;
border-radius: 2px;
font-family: 'Astloch', cursive;
font-size: 1.4vw;
color: rgba(102, 140, 255, 1);
-o-text-overflow: ellipsis;
text-overflow: ellipsis;
text-align: right;
}
#info {
-webkit-box-sizing: content-box;
-moz-box-sizing: content-box;
box-sizing: content-box;
margin-top: 30px;
width: 18em;
position: fixed;
left: 15em;
padding: 1em;
border: 1px solid rgba(102, 140, 255, 0.8);
-webkit-border-radius: 2px;
border-radius: 2px;
font-family: 'Astloch', cursive;
font-size: 1.4vw;
color: rgba(102, 140, 255, 1);
-o-text-overflow: ellipsis;
text-overflow: ellipsis;
text-align: justify;
}
#about {
-webkit-box-sizing: content-box;
-moz-box-sizing: content-box;
box-sizing: content-box;
margin-top: 30px;
width: 26em;
position: fixed;
left: 15em;
padding: 1em;
border: 1px solid rgba(102, 140, 255, 0.8);
-webkit-border-radius: 2px;
border-radius: 2px;
font-family: 'Astloch', cursive;
font-size: 1.4vw;
color: rgba(102, 140, 255, 1);
-o-text-overflow: ellipsis;
text-overflow: ellipsis;
text-align: justify;
}
#rightside {
float: right;
}
main {
animation: fadeIn 2s linear;
overflow: auto;
}
a {
color: inherit;
text-decoration: inherit;
}
a:hover {
text-decoration: underline;
}
.wrapper {
float: right;
width: 46%;
padding: 30px 2em 2em 2em;
}
.wrappermisc {
float: right;
width: 70%;
padding: 30px 0px 0px 0px;
font-size: 0px;
}
img.big {
width: 100%;
padding-bottom: 2em;
float: right;
}
img.small {
width: 50%;
padding-bottom: 2em;
float: right;
}
img.miscfirst {
width: 30%;
padding: 20px 0px 0px 30px;
}
img.misc {
width: 30%;
}
hr {
border: 0;
height: 0;
border-top: 0px solid rgba(0, 0, 0, 0.1);
border-bottom: 1px solid rgba(102, 140, 255, 1);
display: block;
margin-right: 30px;
}
.caption {
display: block;
padding: 20px 0px 20px 30px;
font-family: 'Astloch', cursive;
font-size: 1.4vw;
color: rgba(102, 140, 255, 1);
-o-text-overflow: ellipsis;
text-overflow: ellipsis;
text-align: justify;
}
a#hyper {
color: lightblue;
}