我想在左侧栏中放一张小滑梯。 但我不能发现它工作,我不知道它有什么问题。 谷歌搜索计数找到任何可以帮助的东西。 如果有人知道我想听到你的任何消息。
ps:是的,css代码的一部分不是我使用的重置表,我的代码标记在/ ----- mycode ----- /。
/*!doctype CSS*/
/*
html5doctor.com Reset Stylesheet
v1.6.1
Last Updated: 2010-09-17
Author: Richard Clark - http://richclarkdesign.com
Twitter: @rich_clark
*/
html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
abbr, address, cite, code,
del, dfn, em, img, ins, kbd, q, samp,
small, strong, sub, sup, var,
b, i,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, figcaption, figure,
footer, header, hgroup, menu, nav, section, summary,
time, mark, audio, video {
margin:0;
padding:0;
border:0;
outline:0;
font-size:100%;
vertical-align:baseline;
background:transparent;
}
body {
line-height:1;
}
article,aside,details,figcaption,figure,
footer,header,hgroup,menu,nav,section {
display:block;
}
nav ul {
list-style:none;
}
blockquote, q {
quotes:none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content:'';
content:none;
}
a {
margin:0;
padding:0;
font-size:100%;
vertical-align:baseline;
background:transparent;
}
/* change colours to suit your needs */
ins {
background-color:#ff9;
color:#000;
text-decoration:none;
}
/* change colours to suit your needs */
mark {
background-color:#ff9;
color:#000;
font-style:italic;
font-weight:bold;
}
del {
text-decoration: line-through;
}
abbr[title], dfn[title] {
border-bottom:1px dotted;
cursor:help;
}
table {
border-collapse:collapse;
border-spacing:0;
}
/* change border colour to suit your needs */
hr {
display:block;
height:1px;
border:0;
border-top:1px solid #cccccc;
margin:1em 0;
padding:0;
}
input, select {
vertical-align:middle;
}
/*----------MY CODE----------*/
.wrapper {
width: 960px;
margin: auto;
}
a {
text-decoration: none;
}
/*-----NOT IN USE-----*/
.wrapperart {
width: 960px;
margin: auto;
border-width: 0px 5px 0px 5px;
border-style: solid;
}
/*-----NOT IN USE-----*/
/*-----Header-----*/
header {
width: 100%;
height: 120px;
background: #222;
}
header img {
width: 240px;
height: 120px;
float: left;
}
header nav {
float: right;
}
header nav ul {
margin-top: 40px;
}
header nav ul li {
display: inline-block;
margin-left: 20px;
list-style: none;
}
header nav ul li a {
font-family: arial;
font-size: 15px;
color: white;
position: relative;
}
nav ul li a:hover {
background-color: black;
}
nav ul li div{
display: none;
}
nav ul li:hover div{
position: absolute;
display: block;
float: left;
}
/*-----body-----*/
.mainbody {
width: 50%;
height: 800px;
background-color: #ccc;
overflow: hidden;
font-weigt: 400;
font-family: arial;
font-size: 20px;
text-align: center;
float: left;
}
div.mainbody div {
padding: 30px 0px;
}
.mainbody h1 {
font-weight: 400;
font-family: arial;
font-size: 25px;
text-align: center;
}
.luisterdiv {
width: 120px;
height: 150px;
background-color: #333;
z-index: 0;
}
.sidebarleft {
width: 25%;
height: 800px;
background-color: #ccc;
float: left;
overflow: hidden;
}
div.sidebarleft div {
height: 800px;
border-right: 2px solid black;
}
.sidebarright {
width: 25%;
height: 800px;
background-color: #ccc;
float: right;
}
div.sidebarright div {
width: 470px;
height: 800px;
border-left: 2px solid black;
overflow: hidden;
}
.slides {
display: block;
width: 940px;
height: 800px;
margin: 0;
padding: 0;
}
.slide {
float: left;
list-style-type: none;
width: 470px;
height: 800px;
}
li img {
height: 800px;
width: 470px;
float: left;
}
/*-----footer-----*/
footer {
width: 100%;
background-color: #222;
padding: 60px 0px;
clear: both;
}
footer nav {
float: left;
}
footer nav ul {
color: white;
}
footer nav ul li {
display: inline-block;
margin-left: 20px;
list-style: none;
}
footer nav ul li a {
font-family: arial;
font-size: 15px;
color: white;
}

<!doctype html>
<html>
<head>
<title>VeluweAM</title>
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body>
<header>
<div class="wrapper">
<img src="verzamelbak/image/Logo.png">
<nav>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="programma.html">Programma</a></li>
<li><a href="luisteren.html">Luisteren</a>
<div class="luisterdiv">
<ul>
<li><a href="http://93.190.142.179:8126/stream.html">In Browser</a></li>
<li><a href="https://tunein.com/radio/VeluweAM-s299064">Tunein</a></li>
<li><a href="http://panel.beheerstream.com:2199/tunein/veluweam.pls">Winamp</a></li>
<li><a href="http://panel.beheerstream.com:2199/tunein/veluweam.asx">Windows Media Player</a></li>
</div>
</li>
<li><a href="over ons.html">Over ons</a></li>
<li><a href="onze dj.html">Onze DJ's</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</nav>
</div>
</header>
<div class="sidebarleft">
<div>
<ul class="slides">
<li class="slide"><img src"verzamelbal/image/cpu.png"></li>
<li class="slide"><img src"verzamelbal/image/cpu2.png"></li>
</ul>
</div>
</div>
<div class="mainbody">
<div class="mainbodydiv">
<article>
<h1>Welcome op VeluweAM, Nieuws uit de regio.</h1>
<p>het radio stations die voor alles wat heeft.</p>
<p>heeft u nog niet gezien wat wij in huis hebben?<br>
bekijken ons programma, ik kan u garanderen dat u iets vind!</P>
</article>
</div>
</div>
<div class="sidebarright">
<div>
</div>
</div>
<footer>
<div class="wrapper">
<nav>
<ul>
©2017 VeluweAM
<li><a href="index.html">Home</a></li>
<li><a href="programma.html">Programma</a></li>
<li><a href="Luisteren.html">Luisteren</a>
<li><a href="over ons.html">Over ons</a></li>
<li><a href="onze dj.html">Onze DJ's</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</nav>
</div>
</footer>
</body>
</html>
&#13;
答案 0 :(得分:0)
如果您的图像位置正确,我认为您的html / php文件位于一个文件夹中,这就是您需要使用 ../ 然后使用图像位置找到它的原因。
答案 1 :(得分:0)
如果我改为在线图片,那就没关系
JSON.parse(data.payload).state;
答案 2 :(得分:0)
<ul class="slides">
<li class="slide"><img src"verzamelbal/image/cpu.png"></li>
<li class="slide"><img src"verzamelbal/image/cpu2.png"></li>
</ul>
这里有错误(缺少'='):它应该是img src =“” 但我认为你仍然缺少幻灯片的机制,现在它只显示第一张图片并覆盖第二张图片。
你需要一些javascript ..最简单的例子:https://www.w3schools.com/w3css/tryit.asp?filename=tryw3css_slideshow_self