私のプロジェクトでは、ボタンがあります。ブラウザウィンドウのサイズを変更すると、画面の幅が1042pxに達すると、ボタンが魔法のように消えます。画面に表示されなくなったら、ブラウザの検査ツールを確認しましたが、要素はまだWebページのどこかにありますが、画面には表示されません。
HTML:
<div class ="section-1">
<button class="signupBodyBtn">Sign up free, today</button>
</div>
CSS:
.section-1 {
width: 100%;
position: relative;
height: 100vh;
background: url("https://images.paras.com/testimg/10100") no-repeat center center/cover;
}
.signupBodyBtn {
position: relative;
z-index: 2;
top: 263px;
right: 683px;
background-color: transparent;
color: white;
border-radius: 5px;
height: 60px;
width: 220px;
font-weight: bolder;
font-size: 18px;
border: 1px solid white;
}
誰かが問題を修正する方法を知っていますか?ありがとうございました。
この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。
侵害の場合は、連絡してください[email protected]
コメントを追加