html随机页面,HTML - 页面随机打开滚动点

我创建了一个网页并发现了奇怪的问题。 当我尝试从主页进入子页面时,出现子页面,但是向下滚动。它可能会出现在顶部,它在电脑上确实 - 但在手机上不是。

有一个代码:

HTML(从主体部分):HTML - 页面随机打开滚动点

Some centered stuff there

Changelog

Download

Changelog

Some changelog stuff

Download

Header

Download file

CSS

@media only screen

and (min-device-width: 240px) {

html {

font-family: 'AtomicAge';

overflow-x: hidden;

background-attachment: fixed;

}

body {

margin: 0;

padding: 0;

background-attachment: fixed;

}

h1 {

margin: auto;

}

.space {

height: 25%;

display: block;

vertical-align: middle;

}

.slide {

width: 100vw;

height: 100vh;

text-align: center;

z-index: -1;

box-shadow: 0 -1px 10px rgba(0, 0, 0, .7);

}

#changelog_btn a, #dl_btn a {

display: inline-block;

vertical-align: top;

width: 20%;

height: 5%;

border: 1px solid;

margin: 15px auto;

}

#changelog_btn a, #dl_btn a {

text-decoration: none;

color: black;

transition: all 0.5s ease;

}

#changelog_btn a:hover, #dl_btn a:hover {

background-color: white;

}

textarea {

width: 80%;

height: 50%;

}

.centered, .centerer {

vertical-align: middle;

display: inline-block;

}

.centerer {

height: 100%;

}

.up_btn a {

text-decoration: none;

color: black;

transition: all 0.5s ease;

}

.up_btn a:hover {

color: white;

}

#title {

background-image: url("_images/bg1.jpg");

background-attachment: fixed;

background-size: cover;

}

#changelog:before, #changelog {

background-image: url("_images/bg2.jpg");

background-attachment: fixed;

background-size: cover;

}

#download {

background-image: url("_images/bg3.jpg");

background-attachment: fixed;

background-size: cover;

}

#top a {

display: inline-block;

width: 100%;

text-align: center;

color: white;

background-color: black;

text-decoration: none;

transition: all 0.5s ease;

}

#top a:hover {

color: black;

background-color: white;

}

}

@media only screen

and (max-width: 1080px) {

* {

margin: 0;

padding: 0;

background-attachment: fixed;

}

}

有什么我可以纠正?

+0

你确定你不是链接到一个锚点在自动对焦的属性在计算机上查看URL? –

+0

不同浏览器支持不同级别的html,css,js。你会发现问题的主要原因。 –

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值