首頁 web前端 html教學 html常用標籤及屬性

html常用標籤及屬性

Oct 22, 2019 pm 03:23 PM
html 屬性 標籤

html常用標籤及屬性

HTML中的標籤及屬性

HTML頁面結構

標籤 描述
定義文件類型。
#定義 HTML 文件。
</td> <td style="border-color: rgb(221, 221, 221);" width="438">定義文件的標題。 </td> </tr> <tr> <td style="border-color: rgb(221, 221, 221);" width="372"><body></td> <td style="border-color: rgb(221, 221, 221);" width="438">定義文件的主體。 </td> </tr> <tr> <td style="border-color: rgb(221, 221, 221);" width="372"><h1> to <h6></td> <td style="border-color: rgb(221, 221, 221);" width="438">定義 HTML 標題。 </td> </tr> <tr> <td style="border-color: rgb(221, 221, 221);" width="372"><p></td> <td style="border-color: rgb(221, 221, 221);" width="438">#定義段落。 </td> </tr> <tr> <td style="border-color: rgb(221, 221, 221);" width="372"><br></td> <td style="border-color: rgb(221, 221, 221);" width="438">定義簡單的折行。 </td> </tr> <tr> <td style="border-color: rgb(221, 221, 221);" width="372"><hr></td> <td style="border-color: rgb(221, 221, 221);" width="438">#定義水平線。 </td> </tr> <tr> <td style="border-color: rgb(221, 221, 221);" width="372"><!--...--></td> <td style="border-color: rgb(221, 221, 221);" width="438">定義註解。 </td> </tr> </tbody> </table> <p><strong>表單</strong><br></p> <table width="811"> <thead><tr class="firstRow"> <th style="border-color: rgb(221, 221, 221);" width="254">#標籤</th> <th style="border-color: rgb(221, 221, 221);" width="556">描述</th> </tr></thead> <tbody> <tr> <td style="border-color: rgb(221, 221, 221);" width="254"><form></td> <td style="border-color: rgb(221, 221, 221);" width="556">定義供使用者輸入的HTML 表單。 </td> </tr> <tr> <td style="border-color: rgb(221, 221, 221);" width="254"><input></td> <td style="border-color: rgb(221, 221, 221);" width="556">定義輸入控制項。 </td> </tr> <tr> <td style="border-color: rgb(221, 221, 221);" width="254"><textarea></td> <td style="border-color: rgb(221, 221, 221);" width="556">定義多行的文字輸入控制項。 </td> </tr> <tr> <td style="border-color: rgb(221, 221, 221);" width="254"><button></td> <td style="border-color: rgb(221, 221, 221);" width="556">定義按鈕。 </td> </tr> <tr> <td style="border-color: rgb(221, 221, 221);" width="254"><select></td> <td style="border-color: rgb(221, 221, 221);" width="556">定義選擇清單(下拉清單)。 </td> </tr> <tr> <td style="border-color: rgb(221, 221, 221);" width="254"><optgroup></td> <td style="border-color: rgb(221, 221, 221);" width="556">定義選擇清單中相關選項的組合。 </td> </tr> <tr> <td style="border-color: rgb(221, 221, 221);" width="254"><option></td> <td style="border-color: rgb(221, 221, 221);" width="556">定義選擇清單中的選項。 </td> </tr> <tr> <td style="border-color: rgb(221, 221, 221);" width="254"><label></td> <td style="border-color: rgb(221, 221, 221);" width="556">定義 input 元素的標註。 </td> </tr> <tr> <td style="border-color: rgb(221, 221, 221);" width="254"><fieldset></td> <td style="border-color: rgb(221, 221, 221);" width="556">定義圍繞表單中元素的邊框。 </td> </tr> <tr> <td style="border-color: rgb(221, 221, 221);" width="254"><legend></td> <td style="border-color: rgb(221, 221, 221);" width="556">定義 fieldset 元素的標題。 </td> </tr> <tr> <td style="border-color: rgb(221, 221, 221);" width="254"><datalist></td> <td style="border-color: rgb(221, 221, 221);" width="556">定義下拉清單。 </td> </tr> <tr> <td style="border-color: rgb(221, 221, 221);" width="254"><keygen></td> <td style="border-color: rgb(221, 221, 221);" width="556">定義產生金鑰。 </td> </tr> <tr> <td style="border-color: rgb(221, 221, 221);" width="254"><output></td> <td style="border-color: rgb(221, 221, 221);" width="556">定義輸出的一些型別。 </td> </tr> </tbody> </table> <p><strong>框架</strong></p> <table width="811"> <thead><tr class="firstRow"> <th style="border-color: rgb(221, 221, 221);" width="225">標籤</th> <th style="border-color: rgb(221, 221, 221);" width="585">#描述</th> </tr></thead> <tbody> <tr> <td style="border-color: rgb(221, 221, 221);" width="225"></td> <td style="border-color: rgb(221, 221, 221);" width="585"></td> </tr> <tr> <td style="border-color: rgb(221, 221, 221);" width="225"></td> <td style="border-color: rgb(221, 221, 221);" width="585"></td> </tr> <tr># #<frame><td style="border-color: rgb(221, 221, 221);" width="225"></td>定義框架集的視窗或框架。 <td style="border-color: rgb(221, 221, 221);" width="585"></td> </tr> <tr><frameset><td style="border-color: rgb(221, 221, 221);" width="225"></td>定義框架集。 <td style="border-color: rgb(221, 221, 221);" width="585"></td> </tr> </tbody><noframes></table> <p>定義針對不支援框架的使用者的替代內容。 <strong></strong></p> <table width="811"><iframe><thead><tr class="firstRow">定義內嵌框架。 <th style="border-color: rgb(221, 221, 221);" width="232"></th> <th style="border-color: rgb(221, 221, 221);" width="578"></th> </tr></thead>圖片<tbody> <tr> <td style="border-color: rgb(221, 221, 221);" width="232"></td> <td style="border-color: rgb(221, 221, 221);" width="578"></td> </tr> <tr>#描述<td style="border-color: rgb(221, 221, 221);" width="232"></td> <td style="border-color: rgb(221, 221, 221);" width="578"></td> </tr> <tr> <td style="border-color: rgb(221, 221, 221);" width="232"></td> <td style="border-color: rgb(221, 221, 221);" width="578"></td> </tr> <tr> <td style="border-color: rgb(221, 221, 221);" width="232"></td> <td style="border-color: rgb(221, 221, 221);" width="578"></td> </tr> <tr><img><td style="border-color: rgb(221, 221, 221);" width="232"></td>定義映像。 <td style="border-color: rgb(221, 221, 221);" width="578"></td> </tr> <tr><map><td style="border-color: rgb(221, 221, 221);" width="232"></td>#定義映像映射。 <td style="border-color: rgb(221, 221, 221);" width="578"></td> </tr> </tbody><area></table> <p>定義圖片地圖內部的區域。 <strong></strong></p> <table width="811"><canvas><thead><tr class="firstRow">定義圖形。 <th style="border-color: rgb(221, 221, 221);" width="198"></th> <th style="border-color: rgb(221, 221, 221);" width="612"></th><figcaption></tr></thead>定義 figure 元素的標題。 <tbody> <tr> <td style="border-color: rgb(221, 221, 221);" width="198"></td><figure><td style="border-color: rgb(221, 221, 221);" width="612"></td>定義媒介內容的分組,以及它們的標題。 </tr> <tr> <td style="border-color: rgb(221, 221, 221);" width="198"></td> <td style="border-color: rgb(221, 221, 221);" width="612"></td>連結</tr> <tr> <td style="border-color: rgb(221, 221, 221);" width="198"></td> <td style="border-color: rgb(221, 221, 221);" width="612"></td>#標籤</tr> </tbody>描述</table>### #############<a>######定義錨。 ############<link>######定義文件與外部資源的關係。 ############<nav>#######定義導覽連結。 ############<p><strong>清單</strong><br></p> <table width="811"> <thead><tr class="firstRow"> <th style="border-color: rgb(221, 221, 221);" width="208">標籤</th> <th style="border-color: rgb(221, 221, 221);" width="602"></th> </tr></thead> <tbody> <tr> <td style="border-color: rgb(221, 221, 221);" width="208">#<ul></td> <td style="border-color: rgb(221, 221, 221);" width="602">定義無序列表。 </td> </tr> <tr> <td style="border-color: rgb(221, 221, 221);" width="208"><ol></td> <td style="border-color: rgb(221, 221, 221);" width="602">#定義有序列表。 </td> </tr> <tr> <td style="border-color: rgb(221, 221, 221);" width="208"><li></td> <td style="border-color: rgb(221, 221, 221);" width="602">#定義清單的項目。 </td> </tr> <tr> <td style="border-color: rgb(221, 221, 221);" width="208"><dir></td> <td style="border-color: rgb(221, 221, 221);" width="602">不贊成使用。定義目錄列表。 </td> </tr> <tr> <td style="border-color: rgb(221, 221, 221);" width="208"><dl></td> <td style="border-color: rgb(221, 221, 221);" width="602">#定義定義清單。 </td> </tr> <tr> <td style="border-color: rgb(221, 221, 221);" width="208"><dt></td> <td style="border-color: rgb(221, 221, 221);" width="602">#定義定義清單中的項目。 </td> </tr> <tr> <td style="border-color: rgb(221, 221, 221);" width="208"><dd></td> <td style="border-color: rgb(221, 221, 221);" width="602">定義定義清單中項目的描述。 </td> </tr> <tr> <td style="border-color: rgb(221, 221, 221);" width="208"><menu></td> <td style="border-color: rgb(221, 221, 221);" width="602">定義指令的選單/清單。 </td> </tr> <tr> <td style="border-color: rgb(221, 221, 221);" width="208"><menuitem></td> <td style="border-color: rgb(221, 221, 221);" width="602">定義使用者可以從彈出式選單呼叫的命令/選單項目。 </td> </tr> <tr> <td style="border-color: rgb(221, 221, 221);" width="208"><command></td> <td style="border-color: rgb(221, 221, 221);" width="602">定義指令按鈕。 </td> </tr> </tbody> </table> <p><strong>表格</strong></p> <table width="811"> <thead> <tr class="firstRow"> <th style="border-color: rgb(221, 221, 221);" width="239">#標籤</th> <th style="border-color: rgb(221, 221, 221);" width="571">描述</th> </tr> </thead> <tbody> <tr> <td style="border-color: rgb(221, 221, 221);" width="239">#<table></td> <td style="border-color: rgb(221, 221, 221);" width="571">定義表格</td> </tr> <tr> <td style="border-color: rgb(221, 221, 221);" width="239">#<caption></td>##定義表格標題。 <td style="border-color: rgb(221, 221, 221);" width="571"></td> </tr> <tr><th><td style="border-color: rgb(221, 221, 221);" width="239"></td>定義表格中的表頭單元格。 <td style="border-color: rgb(221, 221, 221);" width="571"></td> </tr> <tr><tr><td style="border-color: rgb(221, 221, 221);" width="239"></td>#定義表格中的行。 <td style="border-color: rgb(221, 221, 221);" width="571"></td> </tr> <tr><td><td style="border-color: rgb(221, 221, 221);" width="239"></td>定義表格中的單元。 <td style="border-color: rgb(221, 221, 221);" width="571"></td> </tr> <tr><thead><td style="border-color: rgb(221, 221, 221);" width="239"></td>定義表格中的表頭內容。 <td style="border-color: rgb(221, 221, 221);" width="571"></td> </tr> <tr><tbody><td style="border-color: rgb(221, 221, 221);" width="239"></td>定義表格中的主體內容。 <td style="border-color: rgb(221, 221, 221);" width="571"></td> </tr> <tr><tfoot><td style="border-color: rgb(221, 221, 221);" width="239"></td>定義表格中的表註內容(註腳)。 <td style="border-color: rgb(221, 221, 221);" width="571"></td> </tr> <tr><col><td style="border-color: rgb(221, 221, 221);" width="239"></td>定義表格中一個或多個欄位的屬性值。 <td style="border-color: rgb(221, 221, 221);" width="571"></td> </tr> <tr><colgroup><td style="border-color: rgb(221, 221, 221);" width="239"></td>定義表格中供格式化的列組。 <td style="border-color: rgb(221, 221, 221);" width="571"></td> </tr> </tbody> <p><strong>樣式/節</strong></p> <table width="811"> <thead><tr class="firstRow"> <th style="border-color: rgb(221, 221, 221);" width="239">標籤</th> <th style="border-color: rgb(221, 221, 221);" width="571">#描述</th> </tr></thead> <tbody> <tr> <td style="border-color: rgb(221, 221, 221);" width="239"></td> <td style="border-color: rgb(221, 221, 221);" width="571"></td> </tr> <tr> <td style="border-color: rgb(221, 221, 221);" width="239"></td> <td style="border-color: rgb(221, 221, 221);" width="571">##<style></td> </tr>定義文件的樣式資訊。 <tr> <td style="border-color: rgb(221, 221, 221);" width="239"></td> <td style="border-color: rgb(221, 221, 221);" width="571"><div></td> </tr>定義文件中的節。 <tr> <td style="border-color: rgb(221, 221, 221);" width="239"></td> <td style="border-color: rgb(221, 221, 221);" width="571"><span></td> </tr>定義文件中的節。 <tr> <td style="border-color: rgb(221, 221, 221);" width="239"></td> <td style="border-color: rgb(221, 221, 221);" width="571"><header></td> </tr>定義 section 或 page 的頁首。 <tr> <td style="border-color: rgb(221, 221, 221);" width="239"></td> <td style="border-color: rgb(221, 221, 221);" width="571"><footer></td> </tr>定義 section 或 page 的頁尾。 <tr> <td style="border-color: rgb(221, 221, 221);" width="239"></td> <td style="border-color: rgb(221, 221, 221);" width="571"><section></td> </tr>定義 section。 <tr> <td style="border-color: rgb(221, 221, 221);" width="239"></td> <td style="border-color: rgb(221, 221, 221);" width="571"><article></td> </tr>定義文章。 <tr> <td style="border-color: rgb(221, 221, 221);" width="239"></td> <td style="border-color: rgb(221, 221, 221);" width="571"><aside></td> </tr>定義頁面內容以外的內容。 <tr> <td style="border-color: rgb(221, 221, 221);" width="239"></td> <td style="border-color: rgb(221, 221, 221);" width="571"><details></td> </tr>定義元素的細節。 <tr> <td style="border-color: rgb(221, 221, 221);" width="239"></td> <td style="border-color: rgb(221, 221, 221);" width="571"><dialog></td> </tr>定義對話方塊或視窗。 </tbody> </table> <p><strong><summary></strong></p>為 <details> 元素定義可見的標題。 <table width="811"> <thead><tr class="firstRow"> <th style="border-color: rgb(221, 221, 221);" width="173"></th> <th style="border-color: rgb(221, 221, 221);" width="637">員資訊</th> </tr></thead> <tbody> <tr> <td style="border-color: rgb(221, 221, 221);" width="173">#標籤</td>##描述<td style="border-color: rgb(221, 221, 221);" width="637"></td> </tr> <tr> <td style="border-color: rgb(221, 221, 221);" width="173"></td>#<head><td style="border-color: rgb(221, 221, 221);" width="637"></td>定義關於文件的資訊。 </tr> <tr> <td style="border-color: rgb(221, 221, 221);" width="173"></td><meta><td style="border-color: rgb(221, 221, 221);" width="637"></td>定義關於 HTML 文件的元資訊。 </tr> <tr> <td style="border-color: rgb(221, 221, 221);" width="173"></td><base><td style="border-color: rgb(221, 221, 221);" width="637"></td>定義頁面中所有連結的預設位址或預設目標。 </tr> </tbody> </table>###<basefont>######不贊成使用。定義頁面中文字的預設字體、顏色或尺寸。 ############<div><div id="cnblogs_post_body"> <strong>屬性</strong><table width="778" style="width: 811px;"> <thead><tr class="header firstRow"> <th style="border-color: rgb(221, 221, 221);" width="105">屬性名稱</th> <th style="border-color: rgb(221, 221, 221);" width="107">#英文</th> <th style="border-color: rgb(221, 221, 221);" width="218">英文意義</th> <th style="border-color: rgb(221, 221, 221);" width="193">取值</th> <th style="border-color: rgb(221, 221, 221);" width="169">應用場景</th> </tr></thead> <tbody> <tr class="odd"> <td style="border-color: rgb(221, 221, 221);" width="105">src</td> <td style="border-color: rgb(221, 221, 221);" width="107">#SouRCe</td> <td style="border-color: rgb(221, 221, 221);" width="218">資源位置</td> <td style="border-color: rgb(221, 221, 221);" width="193">資源的路徑</td> <td style="border-color: rgb(221, 221, 221);" width="169"><br></td> </tr> <tr class="even"> <td style="border-color: rgb(221, 221, 221);" width="105">border</td> <td style="border-color: rgb(221, 221, 221);" width="107">#border</td> <td style="border-color: rgb(221, 221, 221);" width="218">邊框</td> <td style="border-color: rgb(221, 221, 221);" width="193">數字(像素)</td> <td style="border-color: rgb(221, 221, 221);" width="169"><br></td> </tr> <tr class="odd"> <td style="border-color: rgb(221, 221, 221);" width="105">size</td> <td style="border-color: rgb(221, 221, 221);" width="107">size</td> <td style="border-color: rgb(221, 221, 221);" width="218"></td> <td style="border-color: rgb(221, 221, 221);" width="193">#數字(像素)</td> <td style="border-color: rgb(221, 221, 221);" width="169"><br></td> </tr> <tr class="even"> <td style="border-color: rgb(221, 221, 221);" width="105">width</td> <td style="border-color: rgb(221, 221, 221);" width="107">width</td> <td style="border-color: rgb(221, 221, 221);" width="218"></td> <td style="border-color: rgb(221, 221, 221);" width="193">#數字(像素)</td> <td style="border-color: rgb(221, 221, 221);" width="169"><br></td> </tr> <tr class="odd"> <td style="border-color: rgb(221, 221, 221);" width="105">height</td> <td style="border-color: rgb(221, 221, 221);" width="107">height</td> <td style="border-color: rgb(221, 221, 221);" width="218">高度</td> <td style="border-color: rgb(221, 221, 221);" width="193">#數字(像素)</td> <td style="border-color: rgb(221, 221, 221);" width="169"><br></td> </tr> <tr class="even">##bgcolor<td style="border-color: rgb(221, 221, 221);" width="105"></td>BackGround COLOR<td style="border-color: rgb(221, 221, 221);" width="107"></td>背景顏色<td style="border-color: rgb(221, 221, 221);" width="218"></td>顏色值:rea或#ffffff<td style="border-color: rgb(221, 221, 221);" width="193"></td> <td style="border-color: rgb(221, 221, 221);" width="169"><br></td> </tr> <tr class="odd">background<td style="border-color: rgb(221, 221, 221);" width="105"></td>background<td style="border-color: rgb(221, 221, 221);" width="107"></td>背景圖片<td style="border-color: rgb(221, 221, 221);" width="218"></td>圖片路徑<td style="border-color: rgb(221, 221, 221);" width="193"></td> <td style="border-color: rgb(221, 221, 221);" width="169"><br></td> </tr> <tr class="even">list-style<td style="border-color: rgb(221, 221, 221);" width="105"></td>list-style<td style="border-color: rgb(221, 221, 221);" width="107"></td>設定清單的所有屬性<td style="border-color: rgb(221, 221, 221);" width="218"></td> <td style="border-color: rgb(221, 221, 221);" width="193"><br></td>清單<td style="border-color: rgb(221, 221, 221);" width="169"></td> </tr> <tr class="odd"> <td style="border-color: rgb(221, 221, 221);" width="105"></td> <td style="border-color: rgb(221, 221, 221);" width="107"></td> <td style="border-color: rgb(221, 221, 221);" width="218"></td> <td style="border-color: rgb(221, 221, 221);" width="193"><br></td> <td style="border-color: rgb(221, 221, 221);" width="169"></td>##list-style-image</tr> <tr class="even">list-style-image<td style="border-color: rgb(221, 221, 221);" width="105"></td>將圖像設定為列表項目標記<td style="border-color: rgb(221, 221, 221);" width="107"></td>None##url<td style="border-color: rgb(221, 221, 221);" width="218"></td>列表<td style="border-color: rgb(221, 221, 221);" width="193"> <br><br>###list-style-type######list-style-type#######設定清單項目標記的型別######Disc(實心圓)###Cirle(空心圓)###Square(實心方塊)</td> <td style="border-color: rgb(221, 221, 221);" width="169">列表</td> </tr> <tr class="odd"> <td style="border-color: rgb(221, 221, 221);" width="105">line-height</td> <td style="border-color: rgb(221, 221, 221);" width="107">line-height</td> <td style="border-color: rgb(221, 221, 221);" width="218"></td>##line-height<td style="border-color: rgb(221, 221, 221);" width="193"></td>line-height<td style="border-color: rgb(221, 221, 221);" width="169"></td>行高(行間距)</tr> <tr class="even">數字(像素)<td style="border-color: rgb(221, 221, 221);" width="105"></td>佈局多行文字<td style="border-color: rgb(221, 221, 221);" width="107"></td> <td style="border-color: rgb(221, 221, 221);" width="218"></td>text-align<td style="border-color: rgb(221, 221, 221);" width="193"></td>text-align<td style="border-color: rgb(221, 221, 221);" width="169"></td>#對齊方式</tr> <tr class="odd">Left、right、center<td style="border-color: rgb(221, 221, 221);" width="105"></td>各種元素對齊<td style="border-color: rgb(221, 221, 221);" width="107"></td> <td style="border-color: rgb(221, 221, 221);" width="218"></td>#letter-spacing<td style="border-color: rgb(221, 221, 221);" width="193"></td>letter-spacing<td style="border-color: rgb(221, 221, 221);" width="169"></td> </tr> <tr class="even"> <td style="border-color: rgb(221, 221, 221);" width="105"></td> <td style="border-color: rgb(221, 221, 221);" width="107"></td> <td style="border-color: rgb(221, 221, 221);" width="218"></td> <td style="border-color: rgb(221, 221, 221);" width="193"></td> <td style="border-color: rgb(221, 221, 221);" width="169"></td> </tr>字元間距<tr class="odd"> <td style="border-color: rgb(221, 221, 221);" width="105">數字(像素)<br> </td>加大字元間間隔<td style="border-color: rgb(221, 221, 221);" width="107"><br></td> <td style="border-color: rgb(221, 221, 221);" width="218">text-decoration</td> <td style="border-color: rgb(221, 221, 221);" width="193">text-decoration</td> <td style="border-color: rgb(221, 221, 221);" width="169">文字修飾<br> </td>Underline、none</tr> <tr class="even">加上底線、中劃線等<td style="border-color: rgb(221, 221, 221);" width="105"><br></td> <td style="border-color: rgb(221, 221, 221);" width="107">margin-top<br>(right、bottom 、left)</td> <td style="border-color: rgb(221, 221, 221);" width="218"></td> <td style="border-color: rgb(221, 221, 221);" width="193"></td>外邊距<td style="border-color: rgb(221, 221, 221);" width="169"> <br>數字(像素)</td> </tr> <tr class="odd"> <td style="border-color: rgb(221, 221, 221);" width="105"></td> <td style="border-color: rgb(221, 221, 221);" width="107"></td>padding-top<td style="border-color: rgb(221, 221, 221);" width="218">(right、bottom、left)</td> <td style="border-color: rgb(221, 221, 221);" width="193"> <br><br> </td>#內邊距<td style="border-color: rgb(221, 221, 221);" width="169"> <br>數位(像素)</td> </tr> <tr class="even"> <td style="border-color: rgb(221, 221, 221);" width="105"></td> <td style="border-color: rgb(221, 221, 221);" width="107"></td>display<td style="border-color: rgb(221, 221, 221);" width="218"></td>display<td style="border-color: rgb(221, 221, 221);" width="193"> <br>改變區塊級元素與行內元素的預設顯示方式<br><br>block(行變區塊) </td>inline(區塊變行)<td style="border-color: rgb(221, 221, 221);" width="169">none(此元素不顯示在網頁中)</td> </tr> <tr class="odd"> <td style="border-color: rgb(221, 221, 221);" width="105"></td> <td style="border-color: rgb(221, 221, 221);" width="107"></td>position<td style="border-color: rgb(221, 221, 221);" width="218"></td> position<td style="border-color: rgb(221, 221, 221);" width="193"></td>定位<td style="border-color: rgb(221, 221, 221);" width="169"> <br>static(靜態定位)</td>relative(相對定位)</tr>absolute(絕對定位)<tr class="even">fixed(固定定位)<td style="border-color: rgb(221, 221, 221);" width="105"></td>#用於定位<td style="border-color: rgb(221, 221, 221);" width="107"></td> <td style="border-color: rgb(221, 221, 221);" width="218"></td>float<td style="border-color: rgb(221, 221, 221);" width="193"> <br>float<br><br> </td> <td style="border-color: rgb(221, 221, 221);" width="169">#None、left、right<br> </td> </tr> <tr class="odd"> <td style="border-color: rgb(221, 221, 221);" width="105"></td> <td style="border-color: rgb(221, 221, 221);" width="107"></td> <td style="border-color: rgb(221, 221, 221);" width="218"></td> <td style="border-color: rgb(221, 221, 221);" width="193"> <br><br>############## ###########clear######clear######處理浮動塌陷######left(清除左邊浮動)###right(清除右邊浮動)# ##both(清除兩邊浮動)###none(不清除浮動)#####################type######type#### ##列表類型######Disc(實心圓)###Cirle(空心圓)###Square(實心方塊)</td> <td style="border-color: rgb(221, 221, 221);" width="169">用於列表</td> </tr> <tr class="even"> <td style="border-color: rgb(221, 221, 221);" width="105">align</td> <td style="border-color: rgb(221, 221, 221);" width="107">align</td> <td style="border-color: rgb(221, 221, 221);" width="218">對齊</td> <td style="border-color: rgb(221, 221, 221);" width="193">Left、right 、center<br>top、middle、bottom</td> <td style="border-color: rgb(221, 221, 221);" width="169">段落內容水平對齊文字與圖片垂直對齊</td> </tr> <tr class="odd"> <td style="border-color: rgb(221, 221, 221);" width="105">type</td> <td style="border-color: rgb(221, 221, 221);" width="107">type</td> <td style="border-color: rgb(221, 221, 221);" width="218">表單元素類型</td> <td style="border-color: rgb(221, 221, 221);" width="193">text(文字)<br>checkbox(複選)<br>radio(單選)<br>password(密碼)<br>file(檔案)<br>submit(提交)<br>reset(重置)<br>button(按鈕)<br>image(圖片按鈕)<br>hidden(隱藏)<br> </td> <td style="border-color: rgb(221, 221, 221);" width="169">表單元素</td> </tr> <tr class="even"> <td style="border-color: rgb(221, 221, 221);" width="105">method</td> <td style="border-color: rgb(221, 221, 221);" width="107">method</td> <td style="border-color: rgb(221, 221, 221);" width="218">表單資料的提交方式</td> <td style="border-color: rgb(221, 221, 221);" width="193">get<br>post</td> <td style="border-color: rgb(221, 221, 221);" width="169"><br></td> </tr> <tr class="odd"> <td style="border-color: rgb(221, 221, 221);" width="105">alt</td> <td style="border-color: rgb(221, 221, 221);" width="107">alter</td> <td style="border-color: rgb(221, 221, 221);" width="218">改變、替換(圖片不顯示時提示訊息)</td> <td style="border-color: rgb(221, 221, 221);" width="193"><br></td>##圖片<td style="border-color: rgb(221, 221, 221);" width="169"></td> </tr> <tr class="even">cellpadding<td style="border-color: rgb(221, 221, 221);" width="105"></td>cell padding<td style="border-color: rgb(221, 221, 221);" width="107"></td>儲存格內邊距<td style="border-color: rgb(221, 221, 221);" width="218"></td>數字<td style="border-color: rgb(221, 221, 221);" width="193"></td>表格<td style="border-color: rgb(221, 221, 221);" width="169"></td> </tr> <tr class="odd"> <td style="border-color: rgb(221, 221, 221);" width="105"> </td>#cellspacing<td style="border-color: rgb(221, 221, 221);" width="107"></td>cell spacing<td style="border-color: rgb(221, 221, 221);" width="218"></td>#已儲存格之間距離<td style="border-color: rgb(221, 221, 221);" width="193"></td>數字<td style="border-color: rgb(221, 221, 221);" width="169"></td>表格</tr> <tr class="even"> <td style="border-color: rgb(221, 221, 221);" width="105"></td> href<td style="border-color: rgb(221, 221, 221);" width="107"></td>Hypertext REFerence<td style="border-color: rgb(221, 221, 221);" width="218"></td>超文本引用(跳到檔案位置)<td style="border-color: rgb(221, 221, 221);" width="193"><br></td> <td style="border-color: rgb(221, 221, 221);" width="169"><br></td> </tr> <tr class="odd"> <td style="border-color: rgb(221, 221, 221);" width="105">##rel</td> <td style="border-color: rgb(221, 221, 221);" width="107">RELationship</td> <td style="border-color: rgb(221, 221, 221);" width="218">關係(用於定義連結的檔案與HTML文件之間的關係)</td> <td style="border-color: rgb(221, 221, 221);" width="193">StyleSheet樣式表</td> <td style="border-color: rgb(221, 221, 221);" width="169"># link連結一個檔案時</td> </tr> <tr class="even"> <td style="border-color: rgb(221, 221, 221);" width="105">target</td> <td style="border-color: rgb(221, 221, 221);" width="107">target</td> <td style="border-color: rgb(221, 221, 221);" width="218">#目標(網頁開啟的位置)</td> <td style="border-color: rgb(221, 221, 221);" width="193">_blank(新視窗開啟) <br>_self(自身視窗開啟)<br>_top(以整個瀏覽器作業作為視窗顯示新頁面)<br>_parent(在父視窗中開啟新的頁面)</td> <td style="border-color: rgb(221, 221, 221);" width="169"><br></td> </tr> <tr class="odd"> <td style="border-color: rgb(221, 221, 221);" width="105">colspan</td> <td style="border-color: rgb(221, 221, 221);" width="107">COLumn span</td> <td style="border-color: rgb(221, 221, 221);" width="218">#單元格跨列</td> <td style="border-color: rgb(221, 221, 221);" width="193">數字(跨的列數)</td> <td style="border-color: rgb(221, 221, 221);" width="169">表格</td> </tr> <tr class="even"> <td style="border-color: rgb(221, 221, 221);" width="105">rowspan</td> <td style="border-color: rgb(221, 221, 221);" width="107">row span</td> <td style="border-color: rgb(221, 221, 221);" width="218">#單元格跨行</td> <td style="border-color: rgb(221, 221, 221);" width="193">數字(跨的行數)</td> <td style="border-color: rgb(221, 221, 221);" width="169">表格</td> </tr> <tr class="odd"> <td style="border-color: rgb(221, 221, 221);" width="105">readonly</td> <td style="border-color: rgb(221, 221, 221);" width="107">read only</td> <td style="border-color: rgb(221, 221, 221);" width="218">#只讀</td> <td style="border-color: rgb(221, 221, 221);" width="193"><br></td> <td style="border-color: rgb(221, 221, 221);" width="169"><br></td> </tr> <tr class="even"> <td style="border-color: rgb(221, 221, 221);" width="105"></td> <td style="border-color: rgb(221, 221, 221);" width="107"> </td> <td style="border-color: rgb(221, 221, 221);" width="218"></td>#value<td style="border-color: rgb(221, 221, 221);" width="193"> <br>value</td> <td style="border-color: rgb(221, 221, 221);" width="169">輸入框的初始值<br> </td> </tr> <tr class="odd"> <td style="border-color: rgb(221, 221, 221);" width="105"></td> <td style="border-color: rgb(221, 221, 221);" width="107"></td> <td style="border-color: rgb(221, 221, 221);" width="218">#maxlength</td> <td style="border-color: rgb(221, 221, 221);" width="193">max length<br> </td>最大長度<td style="border-color: rgb(221, 221, 221);" width="169"><br></td> </tr> <tr class="even"> <td style="border-color: rgb(221, 221, 221);" width="105"></td> <td style="border-color: rgb(221, 221, 221);" width="107"></td>##scrolldelay<td style="border-color: rgb(221, 221, 221);" width="218"></td>scroll delay<td style="border-color: rgb(221, 221, 221);" width="193"> <br>捲動延遲</td> <td style="border-color: rgb(221, 221, 221);" width="169"></td> </tr> <tr class="odd">< m arquee><td style="border-color: rgb(221, 221, 221);" width="105"></td> <td style="border-color: rgb(221, 221, 221);" width="107"></td>#direction<td style="border-color: rgb(221, 221, 221);" width="218"></td>direction<td style="border-color: rgb(221, 221, 221);" width="193"><br></td> <td style="border-color: rgb(221, 221, 221);" width="169"></td> </tr> </tbody> </table>##< m arquee<h2 id="选择器"> <br><br> </h2> </div></div>############################################### #########################</table><p>以上是html常用標籤及屬性的詳細內容。更多資訊請關注PHP中文網其他相關文章!</p> </div> </div> <div class="wzconShengming_sp"> <div class="bzsmdiv_sp">本網站聲明</div> <div>本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn</div> </div> </div> <ins class="adsbygoogle" style="display:block" data-ad-format="autorelaxed" data-ad-client="ca-pub-5902227090019525" data-ad-slot="2507867629"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> <div class="AI_ToolDetails_main4sR"> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-5902227090019525" data-ad-slot="3653428331" data-ad-format="auto" data-full-width-responsive="true"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> <!-- <div class="phpgenera_Details_mainR4"> <div class="phpmain1_4R_readrank"> <div class="phpmain1_4R_readrank_top"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/hotarticle2.png" alt="" /> <h2>熱門文章</h2> </div> <div class="phpgenera_Details_mainR4_bottom"> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/zh-tw/faq/1796789525.html" title="Windows 11 KB5054979中的新功能以及如何解決更新問題" class="phpgenera_Details_mainR4_bottom_title">Windows 11 KB5054979中的新功能以及如何解決更新問題</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <span>3 週前</span> <span>By DDD</span> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/zh-tw/faq/1796793874.html" title="如何修復KB5055523無法在Windows 11中安裝?" class="phpgenera_Details_mainR4_bottom_title">如何修復KB5055523無法在Windows 11中安裝?</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <span>2 週前</span> <span>By DDD</span> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/zh-tw/faq/1796787760.html" title="Inzoi:如何申請學校和大學" class="phpgenera_Details_mainR4_bottom_title">Inzoi:如何申請學校和大學</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <span>4 週前</span> <span>By DDD</span> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/zh-tw/faq/1796793871.html" title="如何修復KB5055518無法在Windows 10中安裝?" class="phpgenera_Details_mainR4_bottom_title">如何修復KB5055518無法在Windows 10中安裝?</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <span>2 週前</span> <span>By DDD</span> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/zh-tw/faq/1796788723.html" title="在哪裡可以找到Atomfall中的站點辦公室鑰匙" class="phpgenera_Details_mainR4_bottom_title">在哪裡可以找到Atomfall中的站點辦公室鑰匙</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <span>4 週前</span> <span>By DDD</span> </div> </div> </div> <div class="phpgenera_Details_mainR3_more"> <a href="https://www.php.cn/zh-tw/article.html">顯示更多</a> </div> </div> </div> --> <div class="phpgenera_Details_mainR3"> <div class="phpmain1_4R_readrank"> <div class="phpmain1_4R_readrank_top"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/hottools2.png" alt="" /> <h2>熱AI工具</h2> </div> <div class="phpgenera_Details_mainR3_bottom"> <div class="phpmain_tab2_mids_top"> <a href="https://www.php.cn/zh-tw/ai/undresserai-undress" title="Undresser.AI Undress" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" class="lazy" data-src="https://img.php.cn/upload/ai_manual/001/246/273/173411540686492.jpg?x-oss-process=image/resize,m_fill,h_50,w_50" src="/static/imghw/default1.png" alt="Undresser.AI Undress" /> </a> <div class="phpmain_tab2_mids_info"> <a href="https://www.php.cn/zh-tw/ai/undresserai-undress" title="Undresser.AI Undress" class="phpmain_tab2_mids_title"> <h3>Undresser.AI Undress</h3> </a> <p>人工智慧驅動的應用程序,用於創建逼真的裸體照片</p> </div> </div> <div class="phpmain_tab2_mids_top"> <a href="https://www.php.cn/zh-tw/ai/ai-clothes-remover" title="AI Clothes Remover" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" class="lazy" data-src="https://img.php.cn/upload/ai_manual/001/246/273/173411552797167.jpg?x-oss-process=image/resize,m_fill,h_50,w_50" src="/static/imghw/default1.png" alt="AI Clothes Remover" /> </a> <div class="phpmain_tab2_mids_info"> <a href="https://www.php.cn/zh-tw/ai/ai-clothes-remover" title="AI Clothes Remover" class="phpmain_tab2_mids_title"> <h3>AI Clothes Remover</h3> </a> <p>用於從照片中去除衣服的線上人工智慧工具。</p> </div> </div> <div class="phpmain_tab2_mids_top"> <a href="https://www.php.cn/zh-tw/ai/undress-ai-tool" title="Undress AI Tool" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" class="lazy" data-src="https://img.php.cn/upload/ai_manual/001/246/273/173410641626608.jpg?x-oss-process=image/resize,m_fill,h_50,w_50" src="/static/imghw/default1.png" alt="Undress AI Tool" /> </a> <div class="phpmain_tab2_mids_info"> <a href="https://www.php.cn/zh-tw/ai/undress-ai-tool" title="Undress AI Tool" class="phpmain_tab2_mids_title"> <h3>Undress AI Tool</h3> </a> <p>免費脫衣圖片</p> </div> </div> <div class="phpmain_tab2_mids_top"> <a href="https://www.php.cn/zh-tw/ai/clothoffio" title="Clothoff.io" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" class="lazy" data-src="https://img.php.cn/upload/ai_manual/001/246/273/173411529149311.jpg?x-oss-process=image/resize,m_fill,h_50,w_50" src="/static/imghw/default1.png" alt="Clothoff.io" /> </a> <div class="phpmain_tab2_mids_info"> <a href="https://www.php.cn/zh-tw/ai/clothoffio" title="Clothoff.io" class="phpmain_tab2_mids_title"> <h3>Clothoff.io</h3> </a> <p>AI脫衣器</p> </div> </div> <div class="phpmain_tab2_mids_top"> <a href="https://www.php.cn/zh-tw/ai/video-swap" title="Video Face Swap" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" class="lazy" data-src="https://img.php.cn/upload/ai_manual/001/246/273/173414504068133.jpg?x-oss-process=image/resize,m_fill,h_50,w_50" src="/static/imghw/default1.png" alt="Video Face Swap" /> </a> <div class="phpmain_tab2_mids_info"> <a href="https://www.php.cn/zh-tw/ai/video-swap" title="Video Face Swap" class="phpmain_tab2_mids_title"> <h3>Video Face Swap</h3> </a> <p>使用我們完全免費的人工智慧換臉工具,輕鬆在任何影片中換臉!</p> </div> </div> </div> <div class="phpgenera_Details_mainR3_more"> <a href="https://www.php.cn/zh-tw/ai">顯示更多</a> </div> </div> </div> <script src="https://sw.php.cn/hezuo/cac1399ab368127f9b113b14eb3316d0.js" type="text/javascript"></script> <div class="phpgenera_Details_mainR4"> <div class="phpmain1_4R_readrank"> <div class="phpmain1_4R_readrank_top"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/hotarticle2.png" alt="" /> <h2>熱門文章</h2> </div> <div class="phpgenera_Details_mainR4_bottom"> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/zh-tw/faq/1796789525.html" title="Windows 11 KB5054979中的新功能以及如何解決更新問題" class="phpgenera_Details_mainR4_bottom_title">Windows 11 KB5054979中的新功能以及如何解決更新問題</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <span>3 週前</span> <span>By DDD</span> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/zh-tw/faq/1796793874.html" title="如何修復KB5055523無法在Windows 11中安裝?" class="phpgenera_Details_mainR4_bottom_title">如何修復KB5055523無法在Windows 11中安裝?</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <span>2 週前</span> <span>By DDD</span> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/zh-tw/faq/1796787760.html" title="Inzoi:如何申請學校和大學" class="phpgenera_Details_mainR4_bottom_title">Inzoi:如何申請學校和大學</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <span>4 週前</span> <span>By DDD</span> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/zh-tw/faq/1796793871.html" title="如何修復KB5055518無法在Windows 10中安裝?" class="phpgenera_Details_mainR4_bottom_title">如何修復KB5055518無法在Windows 10中安裝?</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <span>2 週前</span> <span>By DDD</span> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/zh-tw/faq/1796788723.html" title="在哪裡可以找到Atomfall中的站點辦公室鑰匙" class="phpgenera_Details_mainR4_bottom_title">在哪裡可以找到Atomfall中的站點辦公室鑰匙</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <span>4 週前</span> <span>By DDD</span> </div> </div> </div> <div class="phpgenera_Details_mainR3_more"> <a href="https://www.php.cn/zh-tw/article.html">顯示更多</a> </div> </div> </div> <div class="phpgenera_Details_mainR3"> <div class="phpmain1_4R_readrank"> <div class="phpmain1_4R_readrank_top"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/hottools2.png" alt="" /> <h2>熱工具</h2> </div> <div class="phpgenera_Details_mainR3_bottom"> <div class="phpmain_tab2_mids_top"> <a href="https://www.php.cn/zh-tw/toolset/development-tools/92" title="記事本++7.3.1" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" class="lazy" data-src="https://img.php.cn/upload/manual/000/000/001/58ab96f0f39f7357.jpg?x-oss-process=image/resize,m_fill,h_50,w_72" src="/static/imghw/default1.png" alt="記事本++7.3.1" /> </a> <div class="phpmain_tab2_mids_info"> <a href="https://www.php.cn/zh-tw/toolset/development-tools/92" title="記事本++7.3.1" class="phpmain_tab2_mids_title"> <h3>記事本++7.3.1</h3> </a> <p>好用且免費的程式碼編輯器</p> </div> </div> <div class="phpmain_tab2_mids_top"> <a href="https://www.php.cn/zh-tw/toolset/development-tools/93" title="SublimeText3漢化版" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" class="lazy" data-src="https://img.php.cn/upload/manual/000/000/001/58ab97a3baad9677.jpg?x-oss-process=image/resize,m_fill,h_50,w_72" src="/static/imghw/default1.png" alt="SublimeText3漢化版" /> </a> <div class="phpmain_tab2_mids_info"> <a href="https://www.php.cn/zh-tw/toolset/development-tools/93" title="SublimeText3漢化版" class="phpmain_tab2_mids_title"> <h3>SublimeText3漢化版</h3> </a> <p>中文版,非常好用</p> </div> </div> <div class="phpmain_tab2_mids_top"> <a href="https://www.php.cn/zh-tw/toolset/development-tools/121" title="禪工作室 13.0.1" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" class="lazy" data-src="https://img.php.cn/upload/manual/000/000/001/58ab97ecd1ab2670.jpg?x-oss-process=image/resize,m_fill,h_50,w_72" src="/static/imghw/default1.png" alt="禪工作室 13.0.1" /> </a> <div class="phpmain_tab2_mids_info"> <a href="https://www.php.cn/zh-tw/toolset/development-tools/121" title="禪工作室 13.0.1" class="phpmain_tab2_mids_title"> <h3>禪工作室 13.0.1</h3> </a> <p>強大的PHP整合開發環境</p> </div> </div> <div class="phpmain_tab2_mids_top"> <a href="https://www.php.cn/zh-tw/toolset/development-tools/469" title="Dreamweaver CS6" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" class="lazy" data-src="https://img.php.cn/upload/manual/000/000/001/58d0e0fc74683535.jpg?x-oss-process=image/resize,m_fill,h_50,w_72" src="/static/imghw/default1.png" alt="Dreamweaver CS6" /> </a> <div class="phpmain_tab2_mids_info"> <a href="https://www.php.cn/zh-tw/toolset/development-tools/469" title="Dreamweaver CS6" class="phpmain_tab2_mids_title"> <h3>Dreamweaver CS6</h3> </a> <p>視覺化網頁開發工具</p> </div> </div> <div class="phpmain_tab2_mids_top"> <a href="https://www.php.cn/zh-tw/toolset/development-tools/500" title="SublimeText3 Mac版" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" class="lazy" data-src="https://img.php.cn/upload/manual/000/000/001/58d34035e2757995.png?x-oss-process=image/resize,m_fill,h_50,w_72" src="/static/imghw/default1.png" alt="SublimeText3 Mac版" /> </a> <div class="phpmain_tab2_mids_info"> <a href="https://www.php.cn/zh-tw/toolset/development-tools/500" title="SublimeText3 Mac版" class="phpmain_tab2_mids_title"> <h3>SublimeText3 Mac版</h3> </a> <p>神級程式碼編輯軟體(SublimeText3)</p> </div> </div> </div> <div class="phpgenera_Details_mainR3_more"> <a href="https://www.php.cn/zh-tw/ai">顯示更多</a> </div> </div> </div> <div class="phpgenera_Details_mainR4"> <div class="phpmain1_4R_readrank"> <div class="phpmain1_4R_readrank_top"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/hotarticle2.png" alt="" /> <h2>熱門話題</h2> </div> <div class="phpgenera_Details_mainR4_bottom"> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/zh-tw/faq/gmailyxdlrkzn" title="gmail信箱登陸入口在哪裡" class="phpgenera_Details_mainR4_bottom_title">gmail信箱登陸入口在哪裡</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <div class="phpgenera_Details_mainR4_bottoms_infos"> <img src="/static/imghw/eyess.png" alt="" /> <span>7864</span> </div> <div class="phpgenera_Details_mainR4_bottoms_infos"> <img src="/static/imghw/tiezi.png" alt="" /> <span>15</span> </div> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/zh-tw/faq/java-tutorial" title="Java教學" class="phpgenera_Details_mainR4_bottom_title">Java教學</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <div class="phpgenera_Details_mainR4_bottoms_infos"> <img src="/static/imghw/eyess.png" alt="" /> <span>1649</span> </div> <div class="phpgenera_Details_mainR4_bottoms_infos"> <img src="/static/imghw/tiezi.png" alt="" /> <span>14</span> </div> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/zh-tw/faq/cakephp-tutor" title="CakePHP 教程" class="phpgenera_Details_mainR4_bottom_title">CakePHP 教程</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <div class="phpgenera_Details_mainR4_bottoms_infos"> <img src="/static/imghw/eyess.png" alt="" /> <span>1407</span> </div> <div class="phpgenera_Details_mainR4_bottoms_infos"> <img src="/static/imghw/tiezi.png" alt="" /> <span>52</span> </div> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/zh-tw/faq/laravel-tutori" title="Laravel 教程" class="phpgenera_Details_mainR4_bottom_title">Laravel 教程</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <div class="phpgenera_Details_mainR4_bottoms_infos"> <img src="/static/imghw/eyess.png" alt="" /> <span>1301</span> </div> <div class="phpgenera_Details_mainR4_bottoms_infos"> <img src="/static/imghw/tiezi.png" alt="" /> <span>25</span> </div> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/zh-tw/faq/php-tutorial" title="PHP教程" class="phpgenera_Details_mainR4_bottom_title">PHP教程</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <div class="phpgenera_Details_mainR4_bottoms_infos"> <img src="/static/imghw/eyess.png" alt="" /> <span>1243</span> </div> <div class="phpgenera_Details_mainR4_bottoms_infos"> <img src="/static/imghw/tiezi.png" alt="" /> <span>29</span> </div> </div> </div> </div> <div class="phpgenera_Details_mainR3_more"> <a href="https://www.php.cn/zh-tw/faq/zt">顯示更多</a> </div> </div> </div> </div> </div> <div class="Article_Details_main2"> <div class="phpgenera_Details_mainL4"> <div class="phpmain1_2_top"> <a href="javascript:void(0);" class="phpmain1_2_top_title">Related knowledge<img src="/static/imghw/index2_title2.png" alt="" /></a> </div> <div class="phpgenera_Details_mainL4_info"> <div class="phphistorical_Version2_mids"> <a href="https://www.php.cn/zh-tw/faq/1796600245.html" title="HTML 中的表格邊框" class="phphistorical_Version2_mids_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/default1.png" class="lazy" data-src="https://img.php.cn/upload/article/202409/04/2024090416492486715.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="HTML 中的表格邊框" /> </a> <a href="https://www.php.cn/zh-tw/faq/1796600245.html" title="HTML 中的表格邊框" class="phphistorical_Version2_mids_title">HTML 中的表格邊框</a> <span class="Articlelist_txts_time">Sep 04, 2024 pm 04:49 PM</span> <p class="Articlelist_txts_p">HTML 表格邊框指南。在這裡,我們以 HTML 中的表格邊框為例,討論定義表格邊框的多種方法。</p> </div> <div class="phphistorical_Version2_mids"> <a href="https://www.php.cn/zh-tw/faq/1796600244.html" title="HTML 中的巢狀表" class="phphistorical_Version2_mids_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/default1.png" class="lazy" data-src="https://img.php.cn/upload/article/202409/04/2024090416491283996.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="HTML 中的巢狀表" /> </a> <a href="https://www.php.cn/zh-tw/faq/1796600244.html" title="HTML 中的巢狀表" class="phphistorical_Version2_mids_title">HTML 中的巢狀表</a> <span class="Articlelist_txts_time">Sep 04, 2024 pm 04:49 PM</span> <p class="Articlelist_txts_p">這是 HTML 中巢狀表的指南。這裡我們討論如何在表中建立表格以及對應的範例。</p> </div> <div class="phphistorical_Version2_mids"> <a href="https://www.php.cn/zh-tw/faq/1796600238.html" title="HTML 左邊距" class="phphistorical_Version2_mids_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/default1.png" class="lazy" data-src="https://img.php.cn/upload/article/202409/04/2024090416482056439.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="HTML 左邊距" /> </a> <a href="https://www.php.cn/zh-tw/faq/1796600238.html" title="HTML 左邊距" class="phphistorical_Version2_mids_title">HTML 左邊距</a> <span class="Articlelist_txts_time">Sep 04, 2024 pm 04:48 PM</span> <p class="Articlelist_txts_p">HTML 左邊距指南。在這裡,我們討論 HTML margin-left 的簡要概述及其範例及其程式碼實作。</p> </div> <div class="phphistorical_Version2_mids"> <a href="https://www.php.cn/zh-tw/faq/1796600271.html" title="HTML 表格佈局" class="phphistorical_Version2_mids_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/default1.png" class="lazy" data-src="https://img.php.cn/upload/article/202409/04/2024090416543391948.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="HTML 表格佈局" /> </a> <a href="https://www.php.cn/zh-tw/faq/1796600271.html" title="HTML 表格佈局" class="phphistorical_Version2_mids_title">HTML 表格佈局</a> <span class="Articlelist_txts_time">Sep 04, 2024 pm 04:54 PM</span> <p class="Articlelist_txts_p">HTML 表格佈局指南。在這裡,我們詳細討論 HTML 表格佈局的值以及範例和輸出。</p> </div> <div class="phphistorical_Version2_mids"> <a href="https://www.php.cn/zh-tw/faq/1796600269.html" title="HTML 輸入佔位符" class="phphistorical_Version2_mids_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/default1.png" class="lazy" data-src="https://img.php.cn/upload/article/202409/04/2024090416542577781.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="HTML 輸入佔位符" /> </a> <a href="https://www.php.cn/zh-tw/faq/1796600269.html" title="HTML 輸入佔位符" class="phphistorical_Version2_mids_title">HTML 輸入佔位符</a> <span class="Articlelist_txts_time">Sep 04, 2024 pm 04:54 PM</span> <p class="Articlelist_txts_p">HTML 輸入佔位符指南。在這裡,我們討論 HTML 輸入佔位符的範例以及程式碼和輸出。</p> </div> <div class="phphistorical_Version2_mids"> <a href="https://www.php.cn/zh-tw/faq/1796600210.html" title="HTML 有序列表" class="phphistorical_Version2_mids_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/default1.png" class="lazy" data-src="https://img.php.cn/upload/article/202409/04/2024090416432927533.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="HTML 有序列表" /> </a> <a href="https://www.php.cn/zh-tw/faq/1796600210.html" title="HTML 有序列表" class="phphistorical_Version2_mids_title">HTML 有序列表</a> <span class="Articlelist_txts_time">Sep 04, 2024 pm 04:43 PM</span> <p class="Articlelist_txts_p">HTML 有序列表指南。在這裡我們也分別討論了 HTML 有序列表和類型的介紹以及它們的範例</p> </div> <div class="phphistorical_Version2_mids"> <a href="https://www.php.cn/zh-tw/faq/1796600246.html" title="HTML onclick 按鈕" class="phphistorical_Version2_mids_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/default1.png" class="lazy" data-src="https://img.php.cn/upload/article/202409/04/2024090416493797970.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="HTML onclick 按鈕" /> </a> <a href="https://www.php.cn/zh-tw/faq/1796600246.html" title="HTML onclick 按鈕" class="phphistorical_Version2_mids_title">HTML onclick 按鈕</a> <span class="Articlelist_txts_time">Sep 04, 2024 pm 04:49 PM</span> <p class="Articlelist_txts_p">HTML onclick 按鈕指南。這裡我們分別討論它們的介紹、工作原理、範例以及各個事件中的onclick事件。</p> </div> <div class="phphistorical_Version2_mids"> <a href="https://www.php.cn/zh-tw/faq/1796600227.html" title="在 HTML 中移動文字" class="phphistorical_Version2_mids_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/default1.png" class="lazy" data-src="https://img.php.cn/upload/article/202409/04/2024090416455153019.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="在 HTML 中移動文字" /> </a> <a href="https://www.php.cn/zh-tw/faq/1796600227.html" title="在 HTML 中移動文字" class="phphistorical_Version2_mids_title">在 HTML 中移動文字</a> <span class="Articlelist_txts_time">Sep 04, 2024 pm 04:45 PM</span> <p class="Articlelist_txts_p">HTML 中的文字移動指南。在這裡我們討論一下marquee標籤如何使用語法和實作範例。</p> </div> </div> <a href="https://www.php.cn/zh-tw/web-designer.html" class="phpgenera_Details_mainL4_botton"> <span>See all articles</span> <img src="/static/imghw/down_right.png" alt="" /> </a> </div> </div> </div> </main> <footer> <div class="footer"> <div class="footertop"> <img src="/static/imghw/logo.png" alt=""> <p>公益線上PHP培訓,幫助PHP學習者快速成長!</p> </div> <div class="footermid"> <a href="https://www.php.cn/zh-tw/about/us.html">關於我們</a> <a href="https://www.php.cn/zh-tw/about/disclaimer.html">免責聲明</a> <a href="https://www.php.cn/zh-tw/update/article_0_1.html">Sitemap</a> </div> <div class="footerbottom"> <p> © php.cn All rights reserved </p> </div> </div> </footer> <input type="hidden" id="verifycode" value="/captcha.html"> <script>layui.use(['element', 'carousel'], function () {var element = layui.element;$ = layui.jquery;var carousel = layui.carousel;carousel.render({elem: '#test1', width: '100%', height: '330px', arrow: 'always'});$.getScript('/static/js/jquery.lazyload.min.js', function () {$("img").lazyload({placeholder: "/static/images/load.jpg", effect: "fadeIn", threshold: 200, skip_invisible: false});});});</script> <script src="/static/js/common_new.js"></script> <script type="text/javascript" src="/static/js/jquery.cookie.js?1746045725"></script> <script src="https://vdse.bdstatic.com//search-video.v1.min.js"></script> <link rel='stylesheet' id='_main-css' href='/static/css/viewer.min.css?2' type='text/css' media='all' /> <script type='text/javascript' src='/static/js/viewer.min.js?1'></script> <script type='text/javascript' src='/static/js/jquery-viewer.min.js'></script> <script type="text/javascript" src="/static/js/global.min.js?5.5.53"></script> <script> var _paq = window._paq = window._paq || []; /* tracker methods like "setCustomDimension" should be called before "trackPageView" */ _paq.push(['trackPageView']); _paq.push(['enableLinkTracking']); (function () { var u = "https://tongji.php.cn/"; _paq.push(['setTrackerUrl', u + 'matomo.php']); _paq.push(['setSiteId', '9']); var d = document, g = d.createElement('script'), s = d.getElementsByTagName('script')[0]; g.async = true; g.src = u + 'matomo.js'; s.parentNode.insertBefore(g, s); })(); </script> <script> // top layui.use(function () { var util = layui.util; util.fixbar({ on: { mouseenter: function (type) { layer.tips(type, this, { tips: 4, fixed: true, }); }, mouseleave: function (type) { layer.closeAll("tips"); }, }, }); }); document.addEventListener("DOMContentLoaded", (event) => { // 定义一个函数来处理滚动链接的点击事件 function setupScrollLink(scrollLinkId, targetElementId) { const scrollLink = document.getElementById(scrollLinkId); const targetElement = document.getElementById(targetElementId); if (scrollLink && targetElement) { scrollLink.addEventListener("click", (e) => { e.preventDefault(); // 阻止默认链接行为 targetElement.scrollIntoView({ behavior: "smooth" }); // 平滑滚动到目标元素 }); } else { console.warn( `Either scroll link with ID '${scrollLinkId}' or target element with ID '${targetElementId}' not found.` ); } } // 使用该函数设置多个滚动链接 setupScrollLink("Article_Details_main1L2s_1", "article_main_title1"); setupScrollLink("Article_Details_main1L2s_2", "article_main_title2"); setupScrollLink("Article_Details_main1L2s_3", "article_main_title3"); setupScrollLink("Article_Details_main1L2s_4", "article_main_title4"); setupScrollLink("Article_Details_main1L2s_5", "article_main_title5"); setupScrollLink("Article_Details_main1L2s_6", "article_main_title6"); // 可以继续添加更多的滚动链接设置 }); window.addEventListener("scroll", function () { var fixedElement = document.getElementById("Article_Details_main1Lmain"); var scrollTop = window.scrollY || document.documentElement.scrollTop; // 兼容不同浏览器 var clientHeight = window.innerHeight || document.documentElement.clientHeight; // 视口高度 var scrollHeight = document.documentElement.scrollHeight; // 页面总高度 // 计算距离底部的距离 var distanceToBottom = scrollHeight - scrollTop - clientHeight; // 当距离底部小于或等于300px时,取消固定定位 if (distanceToBottom <= 980) { fixedElement.classList.remove("Article_Details_main1Lmain"); fixedElement.classList.add("Article_Details_main1Lmain_relative"); } else { // 否则,保持固定定位 fixedElement.classList.remove("Article_Details_main1Lmain_relative"); fixedElement.classList.add("Article_Details_main1Lmain"); } }); </script> <script> document.addEventListener('DOMContentLoaded', function() { const mainNav = document.querySelector('.Article_Details_main1Lmain'); const header = document.querySelector('header'); if (mainNav) { window.addEventListener('scroll', function() { const scrollPosition = window.scrollY; if (scrollPosition > 84) { mainNav.classList.add('fixed'); } else { mainNav.classList.remove('fixed'); } }); } }); </script> </body> </html>