为什么我的HTML文件看起来与我的HTML文件不同

时间:2019-06-27 16:18:04

标签: javascript html css

因此,当我在http://adventureplus.ca/Characters.html这里打开我的网站时,看起来很乱,但是当我转到我创建的本地html文件时,该页面就可以了。我不知道发生了什么,这对我来说毫无意义。

我已经尝试过多次刷新页面,但是还是一样

我希望它看起来像HTML版本

ul#nav  {
	list-style: none;
	height: 134px;
	position: relative;
	background-image: url(Navigatertwo.png.jpg);
	background-repeat: no-repeat;
	padding-left: 0;
	margin: 12px  739px;
	margin-right: 594px;
}
ul#nav li a {
	height: 55px;
	display: block;
	position: absolute;

}
a.nav_about {
	width: 125px;
	height: 55px!important;
	top: 15px;
	left: 105px;
	color: #FF0000;
}
a.nav_archive  {
	width: 146px;
	top: 15px;
	left: 242px;
	color: #FF0000;
}
a.nav_extras {
	width: 123px;
	top: 15px;
	left: 435px;
	color: #FF0000;
}
a.nav_characters {
	width: 223px;
	top: 15px;
	left: 547px;
	color: #FF0000;

}
.titletext {
	display: inline-block;

}




}

 {box-sizing:border-box}

/* Slideshow container */
.slideshow-container {
  max-width: 870px;
  max-height: 860px;
  position: relative;
  margin: auto;
  margin-left: 695px;
  margin-top: -1777px;
}

/* Hide the images by default */
.mySlides {
  display: none;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  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: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  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: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active, .dot:hover {
  background-color: #717171;
}

/* 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}
}

@import url(https://fonts.googleapis.com/css?family=Kavivanar);
<!DOCTYPE html>
<html>
  <header>

   <img src="annapart2.jpg" height="1733" width="1866" alt="Ann" align="middle">

  

   

  </header>


  </div>
<div>
    <head>

         

           <body>
            <div class="body">
           <ul>
          <img src="bordersofmysite.jpg" height="1738" width="858">
          <link rel="stylesheet" type="text/css" href="Navi.css" />
           </ul>
          </body>


       

       
 





<div>
  <body>


         
         <link rel="stylesheet" type="text/css" href="Adventure.css" />
    
   </body>
</div>


<div>
    
         

             <body>
              <div class="Adbody">
             <ul>
            <a href="index.html">
  <img src="Pluslogoon.png" alt="HTML tutorial" style="width:770px;height:275px;border:0;">
<link rel="stylesheet" type="text/css" href="Navi.css">
             </ul>
            </body>


         
<div>
      <ul id="nav"><link rel="stylesheet" type="text/css" href="Nav.css">
    <li><a href="About.html" class="nav_about"><span class="titletext">About</span></a></li>
    <li><a href="Archive.html" class="nav_archive"><span class="titletext">Archive</span></a></li>
    <li><a href="Extras.html" class="nav_extras"><span class="titletext">Extras</span></a></li>
    <li><a href="Characters.html" class="nav_characters"><span class="titletext">Characters</span></a></li>
    <link href='https://fonts.googleapis.com/css?family=Kavivanar' rel='stylesheet' type='text/css'>
</ul>





 



<div id="disqus_thread"  style="max-height: : 1738px; max-width: 850px; margin-left: 705px; margin-top: 1345px;">

        <script>
          var disqus_config = function () {
            this.page.url = 'http://adventureplus.ca/Characters.html';
            this.page.identifier = 'Characters.html';
          };
          (function() {  
            var d = document, s = d.createElement('script');
            
            s.src = 'http://adventureplus-ca.disqus.com/embed.js';  
            
            s.setAttribute('data-timestamp', +new Date());
            (d.head || d.body).appendChild(s);
          })();
        </script>
        <link rel="stylesheet" type="text/css" href="Navi.css">
      </ul>
        <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
        </div>        </div>

</div>

<div>

<!-- Slideshow container -->
<div class="slideshow-container">

  <!-- Full-width images with number and caption text -->
  <div class="mySlides fade">
    <div class="numbertext">1 / 3</div>
    <img src="AnnaOcRef.jpg" style="width:100%">
    <div class="text">Caption Text</div>
  </div>

  <div class="mySlides fade">
    <div class="numbertext">2 / 3</div>
    <img src="AlexOcref.jpg" style="width:100%">
    <div class="text">Caption Two</div>
  </div>

  <div class="mySlides fade">
    <div class="numbertext">3 / 3</div>
    <img src="BenOcRef.jpg" style="width:100%">
    <div class="text">Caption Three</div>
  </div>

  <!-- Next and previous buttons -->
  <a class="prev" onclick="plusSlides(-1)">&#10094;</a>
  <a class="next" onclick="plusSlides(1)">&#10095;</a>
</div>
<br>

<!-- The dots/circles -->
<div style="text-align:center">
  <span class="dot" onclick="currentSlide(1)"></span> 
  <span class="dot" onclick="currentSlide(2)"></span> 
  <span class="dot" onclick="currentSlide(3)"></span> 
  <link rel="stylesheet" type="text/css" href="Nav.css">
  <script>
var slideIndex = 1;
showSlides(slideIndex);

function plusSlides(n) {
  showSlides(slideIndex += n);
}

function currentSlide(n) {
  showSlides(slideIndex = n);
}

function showSlides(n) {
  var i;
  var slides = document.getElementsByClassName("mySlides");
  var dots = document.getElementsByClassName("dot");
  if (n > slides.length) {slideIndex = 1}    
  if (n < 1) {slideIndex = slides.length}
  for (i = 0; i < slides.length; i++) {
      slides[i].style.display = "none";  
  }
  for (i = 0; i < dots.length; i++) {
      dots[i].className = dots[i].className.replace(" active", "");
  }
  slides[slideIndex-1].style.display = "block";  
  dots[slideIndex-1].className += " active";
}
</script>
</div>


<section>
       
      
      
 



  
     

 
    
   

    
        

  
    
    

 

    
   
</section>
  </head>

	<body>
   <div id="content">
     
     
 
 
</body>

</html>

0 个答案:

没有答案