我正在尝试在列表后面添加背景图片-它看起来很正确,但是当我滚动时,导航标题不会移动。如果我删除了ZStack和Image,它将起作用。我怎样才能做到?
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
$(".t1").click(function(){
$(".d1").toggle();
});
});
</script>
</head>
<body>
<h4 class="t1">About our page</h4>
<p class="d1">Lorem ipsum dolor sit amet consectetur adipisicing elit. Mollitia ducimus fuga illum non minus est.</p>
</body>
</html>