我无法向下滚动网站,不知道如何解决?

时间:2019-05-07 19:12:45

标签: javascript html css bootstrap-4

所以我无法向下滚动我的网站,但是我想添加更多内容,因此我尝试了所有操作。试图增加CSS的高度但没有帮助。我是Web开发的初学者,请帮助我! 谢谢! 我认为问题可能出在CSS代码中。也许在身体标签中,但我不确定 如果没有完整的CSS代码,该网页将显得有些奇怪。 这是我网站的代码:

{
  "type": "FeatureCollection",
  "features": [
    {
      "type": "Feature",
      "properties": {},
      "geometry": {
        "type": "Point",
          "coordinates": [
            34.799339175224304,
            32.061136963943106
          ]
      }
    }]
}
$('.toggle').on('click', function() {
  $('.menu').toggleClass('active');
});
body {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 16px;
  overflow: hidden;
  text-transform: uppercase;
  font-weight: bold;
}

.menu {
  height: 70px;
  width: 70px;
  left: 70px;
  top: 20px;
  text-align: center;
  position: absolute;
  background: #0e0f0f;
  overflow: hidden;
  transition: all 0.2s ease;
  z-index: 999;
}

.menu.active {
  width: 85%;
  transition: width 0.3s;
  -webkit-transition: width .3s;
  -moz-transition: width 0.3s;
}

.menu.active .menuContent * {
  opacity: 1;
}

.menu.active span i:nth-child(1) {
  transform: rotate(-45deg) translate(-50%, -50%);
  top: 50%;
}

.menu.active span i:nth-child(2) {
  transform: translateX(-100px);
  opacity: 0;
}

.menu.active span i:nth-child(3) {
  transform: rotate(45deg) translate(-50%, -50%);
  top: 50%;
}

.menu span {
  width: 70px;
  height: 70px;
  position: absolute;
  left: 0px;
  cursor: pointer;
  background: #0e0f0f;
  opacity: 0.3;
  z-index: 1;
}

.menu span i {
  position: absolute;
  transform-origin: 50% 50%;
  width: 45%;
  height: 2px;
  left: 0;
  right: 0;
  margin: auto;
  background-color: #ccc;
  transition: transform 0.3s ease, opacity 0.1s ease 0.1s;
}

.menu span i:nth-child(1) {
  top: 40%;
}

.menu span i:nth-child(2) {
  top: 50%;
}

.menu span i:nth-child(3) {
  top: 60%;
}

.menu .menuContent {
  position: absolute;
  width: 100%;
  height: 100%;
  line-height: 40px;
  right: 0px;
  text-align: center;
}

.menu .menuContent * {
  opacity: 0;
}

.menu .menuContent ul li {
  display: inline-block;
  margin-left: 150px;
  margin-right: 50px;
  color: #2d3235;
  transition: opacity 0.3s ease 0.3s;
  cursor: pointer;
  position: relative;
}

.menu .menuContent ul li:hover:before {
  opacity: 0.8;
  top: 13px;
  left: 20px;
}

.menu .menuContent ul li:hover:after {
  opacity: 0.8;
  bottom: 13px;
  left: -20px;
}

body {
  margin: 0;
  padding: 0;
  display: flex;
  background-color: #112b38;
  align-items: center;
  justify-content: center;
}

ul {
  display: inline;
  margin-bottom: 500px;
}

ul li {
  margin: 12px 100px;
  transition: 0.5s;
}

ul li a {
  display: block;
  position: relative;
  text-decoration: none;
  padding: 0px;
  font-size: 18px;
  font-family: sans-serif;
  color: #fff;
  text-transform: uppercase;
  transition: 0.5s;
}

ul:hover li a {
  transform: scale(1.5);
  opacity: .2;
  filter: blur(5px);
}

ul li a:hover {
  transform: scale(2);
  opacity: 1;
  filter: blur(0);
}

ul li a:before {
  content: '';
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  transition: 0.5s;
  background: #43bc0b;
  transform-origin: right;
  transform: scaleX(0);
  z-index: -1;
}

ul li a:hover:before {
  transition: 0.5s;
  transform-origin: left;
  transform: scaleX(1);
}

a,
a:hover,
a:focus {
  text-decoration: none;
  color: white;
}

2 个答案:

答案 0 :(得分:0)

只需更改: overflow: hidden;overflow: auto;

body CSS选择器中

答案 1 :(得分:0)

从正文元素 String uName = request.getParameter("username"); String pass = request.getParameter("passwd"); String rpass = request.getParameter("rpasswd"); String email = request.getParameter("email"); if(uName == "" || pass == "" || rpass == "" || email == "") { //what must i put here to send notification to html page } 删除CSS代码

overflow: hidden;

可运行的解决方案是here