自分でイントロサイトを開発していますが、エラーが発生しました。私はビデオの背景を使用して、私はリンクを維持し、私の問題を解決することを願っています。 https://gyazo.com/d3f9c4f933f5b54c70835451d62d258fCSSでページを小さくするには?
「激浪」リンクは、技術的にページの中央に配置されますが、私は、ページが同じ幅そのままであることしたくない:ここでは
は、問題のスクリーンショットです。ページ幅を最小にすると、リンクが移動します。これは私の現在のコードです:
@import url('https://fonts.googleapis.com/css?family=Raleway');
body {
max-width: 100%;
}
.fullscreen-bg {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
overflow: hidden;
z-index: -100;
}
.fullscreen-bg__video {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
@media (min-aspect-ratio: 16/9) {
.fullscreen-bg__video {
height: 300%;
top: -100%;
}
}
@media (max-aspect-ratio: 16/9) {
.fullscreen-bg__video {
width: 300%;
left: -100%;
}
}
@media (max-width: 767px) {
.fullscreen-bg {
background: url('../img/videoframe.jpg') center center/cover no-repeat;
}
.fullscreen-bg__video {
display: none;
}
}
#riptide {
font-size: 4.5em;
text-decoration: none;
font-family: "Raleway", sans-serif;
font-weight: 900;
color: white;
position: relative;
padding: 15px;
top: 40%;
margin-left: 50%;
margin-right: 50%;
border-radius: 10px;
transition: color 0.6s, background-color 0.6s;
}
#riptide:hover {
color: black;
background-color: white;
}
を試してみてください。あなたのバイブルは明らかにそのトリックですが、試してみると次のようになります:https://gyazo.com/f95aee08f35f51fb01e6c0c92cc64973 –
問題ありません。しかし、あなたのコードを少し追加して、違いが何を引き起こしているのか把握できるかもしれません。あなたが見ることができないものを判断するのは難しいことです。 – Sicae
問題が見つかりました.HTMLにあります:https://jsfiddle.net/yrscgvek/6/ –