简体   繁体   English

"集成幻灯片html css后的布局问题"

[英]Layout problem after integrating a slideshow html css

one page of my website is locking like that: http:\/\/www.pflanzspass.bplaced.net\/<\/a>我网站的一页是这样锁定的: http<\/a> :\/\/www.pflanzspass.bplaced.net\/

Yesterdy I tried to integrate a slideshow: http:\/\/www.pflanzspass.bplaced.net\/indextest.php<\/a>昨天我试图整合幻灯片: http<\/a> :\/\/www.pflanzspass.bplaced.net\/indextest.php

The slideshow is working, but now there are some new layout problems:幻灯片正在运行,但现在出现了一些新的布局问题:

now:现在: 在此处输入图像描述<\/a> 在此处输入图像描述<\/a>

before:前: 在此处输入图像描述<\/a> 在此处输入图像描述<\/a>

I don't know why.我不知道为什么。

This is my new css-Code for the slideshow:这是我用于幻灯片的新 CSS 代码:

  * {box-sizing: border-box}
  /*body {
  font-family: Verdana, sans-serif; 
  margin:0
  }*/
  .mySlides {display: none}
  img {vertical-align: middle;}
  .slideshow-container {
  max-width: 1000px;
  position: relative;
  margin: auto;
  }
  /* Next & previous buttons */
  .prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  }
  /* Position the "next button" to the right */
  .next {
  right: 0;
  border-radius: 3px 0 0 3px;
  }
  /* On hover, add a black background color with a little bit see-through */
  .prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
  }
  /* Caption text */
  .text {
  color: #ffffff;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
  }
  /* Number text (1/3 etc) */
  .numbertext {
  color: #ffffff;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
  }
  /* The dots/bullets/indicators */
  .dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #999999;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
  }
  .active, .dot:hover {
  background-color: #111111;
  }
  /* Fading animation */
  .fade {
  -webkit-animation-name: fade;
  -webkit-animation-duration: 1.5s;
  animation-name: fade;
  animation-duration: 1.5s;
  }
  @-webkit-keyframes fade {
  from {opacity: .4} 
  to {opacity: 1}
  }
  @keyframes fade {
  from {opacity: .4} 
  to {opacity: 1}
  }
  /* On smaller screens, decrease text size */
  @media only screen and (max-width: 300px) {
  .prev, .next,.text {font-size: 11px}
  }

Remove height:20px form this style从这个样式中移除 height:20px

.link a{
    display: block;
    height: 20px;
    margin:2px;
    padding:10px 0 10px 9px;
    font-size:12px;
}
.link a {
    display: block;
    height: auto;
    margin: 2px;
    padding: 10px 0 10px 9px;
    font-size: 12px;
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM