老师看一下哪里错误?
来源:3-5 编程练习
前后1
2020-05-06 00:10:14
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>全屏的云南旅游相册</title>
<link rel="stylesheet" type="text/css" href="css/index.css"/>
<script type="text/javascript" src="js/JQuery.js"></script>
<script type="text/javascript" src="js/index.js"></script>
</head>
<body>
<span></span>
<nav>
<a href="#">泸沽湖</a>
<a href="#">丽江古城</a>
<a href="#">茶马古道</a>
<a href="#">就这家·云逸客栈</a>
<a href="#">西双版纳</a>
<a href="#">云南红酒庄</a>
<a href="#">轿子雪山</a>
<a href="#">普者黑</a>
<a href="#">海埂大坝</a>
<a href="#">玉龙湾</a>
<a href="#">昆明郊野公园</a>
<a href="#">欧洲风琴小镇</a>
</nav>
<div>
<img src="img/1.jpg">
<img src="img/2.jpg">
<img src="img/3.jpg">
<img src="img/4.jpg">
<img src="img/5.jpg">
<img src="img/6.jpg">
<img src="img/7.jpg">
<img src="img/8.jpg">
<img src="img/9.jpg">
<img src="img/10.jpg">
<img src="img/11.jpg">
<img src="img/12.jpg">
</div>
</body>
</html>
*{
margin:0;
padding:0;
border:none;
}
html,body{
overflow:hidden;
height:100%;
background:#93b3c36;
}
span{
display:block;
width:16px;
height:16px;
margin:30px auto 40px;
border-radius:50%;
background:#fff;
}
nav{
position:relative;
display:flex;
width:78.125vw;
margin:0 auto 45px;
justify-content:space-between;
}
nav:before{
position:absolute;
top:20px;
display:block;
width:100%;
height:10px;
content:"";
background:#fff;
}
nav > a{
font-size:20px;
position:relative;
padding:10px;
text-decoration:none;
color:#255d7e;
border:2px solid #5395b4;
background:#fff;
}
div{
positon:relative;
overflow:hidden;
width:78.125vw;
height:75vh;
margin:0 auto;
background:#fff;
bo-shadow:0 0 30px 0 rgba(8,1,3.3);
}
div > img{
position:absolute;
top:0;
right:0;
bottom:0;
left:0;
width:98%;
height:96%;
margin:auto;
}
$(document).ready(function(){
$('a').click(function(){
$('img').eq($(this).index()).css({'opacity':'1'}).siblings().css('opacity':'0')
});
});
1回答
好帮手慕夭夭
2020-05-06
同学你好,有语法错误和单词拼错,如下修改:
1.背景色属性值是无效的,#后面的数字和字母一共是6个,如下修改:

2.单词拼错,要细心哦

3.设置样式时,忘记加花括号,如下

如果我的回答帮助到了你,欢迎采纳,祝学习愉快~
相似问题