所以我有这段代码,当您单击一个段落时,它会将您链接到另一个 html 页面,简单的代码对吗?但它以某种方式不起作用,我想知道为什么。不起作用的功能是“tshirt”、“astronautcapa”和“capasmovel”,我觉得这很奇怪,因为它们与我所做的所有功能相同,并且在那里工作,但这些没有
网页:
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Nativus Clothing</title>
<meta name="description" content="An interactive getting started guide for Brackets.">
<link rel="stylesheet" href="main.css">
<script src ="shop.js" async>
</script>
</head>
<body>
<center>
<nobr style="font-family:cute; color: #4a7bb5;font-weight: 600;line-height: 0;font-size: 110px;"><img src="" alt="logo" style="width:150px;height:150px;vertical-align: middle" ></nobr>
</center>
<HR size=2 style="color: aqua"></HR>
<button class="button" onclick="mainpage();"><b>Home</b></button>
<div class="dropdown">
<button class="button" onclick="products();"><b>Produtos</b></button>
<div class="dropdown-content">
<a href="#" onclick="tshirt();">T-Shirts</a>
<a href="#" onclick="hoodies();">Hoodies</a>
<a href="#" onclick="capasmovel();">Capas de telemovel</a>
</div>
</div>
<button class="button"><b>Personalização</b></button>
<div class="dropdown">
<button class="button"><b>Sobre nós</b></button>
<div class="dropdown-content">
<a href="#" onclick="empresa();">Empresa</a>
<a href="#" onclick="capasmovel();">Artistas</a>
</div>
</div>
<img src="shopping_cart.png" alt="carrinho" style="width:40px;height:40px;float:right;margin-right: 100px" onclick="gotocarrinho();" >
<HR size=2 style="color: #002366"></HR>
<div class="card">
<img src="nave.png" alt="nave t-shirt" style="width:100%;height: 300px">
<p class="product_name" onclick="tshirt_world();">T-Shirt World</p>
<p class="price">14.99€</p>
波斯汪
相关分类