我想做這個網站,你可以下載我做的一些代碼,但我對HTML和CSS不是很精通。所以,如果我做了什么非常明顯的事情,請原諒。
無論如何,這是我的代碼:
<! DOCTYPE html>
<html>
<head>
<title>Downloads</title>
<link rel=" stylesheet" href="https://www. w3schools.com/w3css/4/w3.css"/span>>
<link rel="styleheet" href="css。 css">
</head>
<body>
<div class="w3-bar darktheme">
< a href="/" class="w3-bar-item w3-button w3-mobile" > <img src="img/logo. png" alt="CodeDownloads"></a>>
<a href="windows. html" class="w3-bar-item w3-button w3-mobile">My Main Projects</a>
<a href="linux. class="w3-bar-item w3-button w3-mobile">Other</a>
<a href="soft. html" class="w3-bar-item w3-button w3-mobile">Compiled</a> _/span>
<a href="about. html" class="w3-bar-item w3-button w3-mobile">About</a> //span>
</div>/span>
<br>/span>
<label class=white> 標題1</label>
<a href="https://drive.google.com/file/d/1GO9wvJV7oJViSou8yVCaSsNqWAsf7FxM/view?usp=sharing"/span>>
<button class=button> 下載</button>
<br>/span>
<br>
<label class=white> 標題2</label>
<a href="https://drive.google.com/file/d/1GO9wvJV7oJViSou8yVCaSsNqWAsf7FxM/view?usp=sharing"/span>>
<button class=button> 下載</button>
<br>/span>
<br>
<label class=white> 標題3</label>
<a href="https://drive.google.com/file/d/1GO9wvJV7oJViSou8yVCaSsNqWAsf7FxM/view?usp=sharing"/span>>
<button class=button> 下載</button>
<br>/span>
<br>
<label class=white> 標題4</label>
<a href="https://drive.google.com/file/d/1GO9wvJV7oJViSou8yVCaSsNqWAsf7FxM/view?usp=sharing"/span>>
<button class=button> 下載</button>
<br>/span>
<br>
<label class=white> 標題5</label>
<a href="https://drive.google.com/file/d/1GO9wvJV7oJViSou8yVCaSsNqWAsf7FxM/view?usp=sharing"/span>>
<button class=button> 下載</button>
<br>/span>
<br>
<label class=white> 標題6</label>
<a href="https://drive.google.com/file/d/1GO9wvJV7oJViSou8yVCaSsNqWAsf7FxM/view?usp=sharing"/span>>
<button class=button> 下載</button>
<br>/span>
<br>
<label class=white> 標題7</label>
<a href="https://drive.google.com/file/d/1GO9wvJV7oJViSou8yVCaSsNqWAsf7FxM/view?usp=sharing"/span>>
<button class=button> 下載</button>
<br>/span>
<br>
<label class=white> 標題8</label>
<a href="https://drive.google.com/file/d/1GO9wvJV7oJViSou8yVCaSsNqWAsf7FxM/view?usp=sharing"/span>>
<button class=button> 下載</button>
<br>/span>
<br>
<label class=white> 標題9</label>
<a href="https://drive.google.com/file/d/1GO9wvJV7oJViSou8yVCaSsNqWAsf7FxM/view?usp=sharing"/span>>
<button class=button> 下載</button>
<br>/span>
<br>
<label class=white> 標題10</label>
<a href="https://drive.google.com/file/d/1GO9wvJV7oJViSou8yVCaSsNqWAsf7FxM/view?usp=sharing"/span>>
<button class=button> 下載</button>
<br>/span>
<br>
<label class=white> 標題11</label>
<a href="https://drive.google.com/file/d/1GO9wvJV7oJViSou8yVCaSsNqWAsf7FxM/view?usp=sharing"/span>>
<button class=button> 下載</button>
</a>/span>
</body>
</html>
標簽(比如說,<label class=white>Title 10</label>)也會重定向。我根本不希望這樣。我只想讓它成為正常的文本。如果我嘗試使用段落標簽,它就會顯示在按鈕的上方,這可能會使一些人感到困惑。
謝謝你
uj5u.com熱心網友回復:
你需要在你的按鈕后面添加一個關閉的錨標簽。例如:
< label class=white>Title 1</label>/span>
<a href="https://drive.google.com..."/span>>
<button class=button> 下載</button>
</a> <--關閉錨標簽
uj5u.com熱心網友回復:
你的結構必須是這樣的:
< label class="white">Title 11</label>
<a class="button"/span> href="https://drive. google.com/file/d/1GO9wvJV7oJViSou8yVCaSsNqWAsf7FxM/view?usp=sharing">Download</a>
你必須關閉'a'標簽,并記住類必須在引號內
。轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/331826.html
標籤:
上一篇:如何組織成百上千的矢量可畫性?
