前端開發文件、規格書、錯誤訊息、屬性命名幾乎全英文。熟悉核心單字不僅能加速閱讀文件,更能精準命名類別、變數與元件。本表整理 150+ 高頻單字,按字母分類,附中文釋義與對應 CSS/HTML 語境。
| 單字 | 中文 | 前端語境 |
|---|---|---|
| absolute | 絕對的 | position: absolute 絕對定位 |
| active | 激活的 | :active 偽類、.active 狀態類別 |
| align | 對齊 | text-align, align-items, align-self |
| alpha | 透明度 | RGBA 色彩、opacity |
| anchor | 錨點 | <a> 標籤縮寫 |
| animation | 動畫 | @keyframes, animation 屬性 |
| attribute | 屬性 | HTML 標籤屬性、getAttribute() |
| auto | 自動 | margin: auto, width: auto, grid-auto-flow |
| background | 背景 | background-image, background-color |
| border | 邊框 | border: 1px solid #000 |
| box | 盒子 | 盒模型 (Box Model)、box-sizing |
| block | 區塊 | display: block, 區塊元素 |
| break | 中斷/換行 | <br>, page-break-after |
| button | 按鈕 | <button>, type="button" |
| cascade | 層疊 | CSS 全名 Cascading Style Sheets |
| cell | 儲存格 | <td>, <th>, table-cell |
| child | 子代 | :first-child, > 子代選擇器 |
| class | 類別 | class="btn", .className |
| clear | 清除 | clear: both 清除浮動 |
| color | 顏色 | color: red (文字色) |
| column | 欄/列 | CSS Columns、Grid column |
| content | 內容 | ::before { content: "" }, contenteditable |
| cursor | 游標 | cursor: pointer |
| decoration | 裝飾 | text-decoration: underline |
| display | 顯示 | display: flex/grid/none |
| document | 文件 | document 物件、DOM |
| element | 元素 | HTML Element, DOM Element |
| event | 事件 | addEventListener, onclick |
| float | 浮動 | float: left/right |
| flex | 彈性 | display: flex, Flexbox 佈局 |
| focus | 焦點 | :focus, focus(), 無障礙關鍵 |
| font | 字體 | font-family, font-size |
| form | 表單 | <form>, 表單驗證 |
| grid | 網格 | display: grid, Grid 佈局 |
| height | 高度 | height: 100vh, min-height |
| hidden | 隱藏 | hidden 屬性, visibility: hidden |
| hover | 懸停 | :hover 偽類 |
| id | 身分識別 | id="unique", #id 選擇器 |
| image | 圖像 | <img>, background-image |
| important | 重要 | !important 提高優先權 |
| index | 索引/層級 | z-index, tabindex |
| inline | 行內 | display: inline, 行內元素 |
| input | 輸入 | <input> 表單控制項 |
| justify | 對齊/伸展 | justify-content, text-align: justify |
| keyframe | 關鍵影格 | @keyframes 動畫定義 |
| layer | 圖層 | 疊層上下文, @layer CSS 層疊 |
| layout | 版面配置 | Layout 佈局, layout-shift (CLS) |
| margin | 外距 | margin: 0 auto 置中 |
| media | 媒體 | @media 響應式查詢 |
| model | 模型 | Box Model, CSSOM |
| navigation | 導航 | <nav>, 導航列 |
| none | 無 | display: none, border: none |
| object | 物件 | JS Object, <object> 標籤 |
| opacity | 不透明度 | opacity: 0.5 |
| overflow | 溢出 | overflow: hidden/auto/scroll |
| padding | 內距 | padding: 1rem |
| parent | 父代 | parentNode, :has() 父代選擇器 |
| position | 定位 | position: relative/absolute/fixed/sticky |
| property | 屬性/特性 | CSS Property, JS Property |
| pseudo | 偽 | Pseudo-class (:hover), Pseudo-element (::before) |
| query | 查詢 | querySelector, Media Query |
| relative | 相對 | position: relative, 相對單位 (rem, em) |
| render | 渲染 | Render Tree, Rendering Pipeline |
| responsive | 響應式 | RWD (Responsive Web Design) |
| root | 根 | :root 偽類, document.documentElement |
| scroll | 捲動 | scrollTop, scroll-behavior |
| select | 選擇/下拉 | <select>, ::selection |
| semantic | 語意化 | Semantic HTML (<article>, <header>) |
| shadow | 陰影 | box-shadow, text-shadow, Shadow DOM |
| size | 尺寸 | font-size, background-size |
| source | 來源 | <source> (video/audio/picture) |
| span | 跨度/行內框 | <span>, colspan, rowspan |
| style | 樣式 | style 屬性, CSS Style Sheet |
| table | 表格 | <table>, display: table |
| target | 目標 | target="_blank", Event Target |
| transform | 變形 | transform: rotate(45deg) |
| transition | 過渡 | transition: all 0.3s |
| typography | 排版 | 字體、行高、字間距設定 |
| unit | 單位 | px, rem, em, %, vw, vh, fr |
| value | 值 | 屬性值, value 屬性 (input) |
| variable | 變數 | CSS Custom Property (--var), JS 變數 |
| viewport | 視口 | meta viewport, vw/vh 單位 |
| visibility | 可見性 | visibility: hidden (佔空間但隱藏) |
| width | 寬度 | width: 100%, min-width, max-width |
| wrapper | 包裹器 | 容器類別命名慣例 .wrapper, .container |
| z-index | Z 軸層級 | 控制疊層順序 |
flex, grid, float, position, display, flow, container, wrapper, item, gap, align, justify, order, basis, grow, shrink
color, background, border, radius, shadow, gradient, opacity, filter, blend, transform, transition, animation
font, text, line-height, letter-spacing, word-spacing, white-space, overflow-wrap, direction, writing-mode
hover, active, focus, visited, disabled, checked, required, readonly, valid, invalid
margin 就聯想「外距、推開鄰居」)。min-/max- (最小/最大)、-start/-end (邏輯屬性)、auto- (自動)、re- (重複/反向)。.btn-primary, const userList = []),強制輸出應用。
5. 製作單字卡:Anki、Quizlet 等間隔重複軟體,利用碎片時間複習。
單字是溝通的橋樑。將這 150+ 核心詞彙內化為直覺,你將能流暢閱讀規格、精準搜尋解決方案、撰寫可讀性高的程式碼,並在國際技術社群中無障礙交流。