選單
×
   ❮   
HTML CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C C++ C# BOOTSTRAP REACT MYSQL JQUERY EXCEL XML DJANGO NUMPY PANDAS NODEJS R TYPESCRIPT ANGULAR GIT POSTGRESQL MONGODB ASP AI GO KOTLIN SASS VUE DSA GEN AI SCIPY AWS CYBERSECURITY DATA SCIENCE
     ❯   

CSS 參考手冊

CSS 參考 CSS 瀏覽器支援 CSS 選擇符 CSS 偽元素 CSS 組合符 CSS 函式 CSS 參考 (聽覺) CSS 網頁安全字型 CSS 字型回退 CSS 可動畫屬性 CSS 單位 CSS PX 到 EM 轉換器 CSS 顏色 CSS 顏色值 CSS 預設值 CSS 實體

CSS 屬性

accent-color align-content align-items align-self all animation animation-delay animation-direction animation-duration animation-fill-mode animation-iteration-count animation-name animation-play-state animation-timing-function aspect-ratio backdrop-filter backface-visibility background background-attachment background-blend-mode background-clip background-color background-image background-origin background-position background-position-x background-position-y background-repeat background-size block-size border border-block border-block-color border-block-end border-block-end-color border-block-end-style border-block-end-width border-block-start border-block-start-color border-block-start-style border-block-start-width border-block-style border-block-width border-bottom border-bottom-color border-bottom-left-radius border-bottom-right-radius border-bottom-style border-bottom-width border-collapse border-color border-end-end-radius border-end-start-radius border-image border-image-outset border-image-repeat border-image-slice border-image-source border-image-width border-inline border-inline-color border-inline-end border-inline-end-color border-inline-end-style border-inline-end-width border-inline-start border-inline-start-color border-inline-start-style border-inline-start-width border-inline-style border-inline-width border-left border-left-color border-left-style border-left-width border-radius border-right border-right-color border-right-style border-right-width border-spacing border-start-end-radius border-start-start-radius border-style border-top border-top-color border-top-left-radius border-top-right-radius border-top-style border-top-width border-width bottom box-decoration-break box-reflect box-shadow box-sizing break-after break-before break-inside caption-side caret-color @charset clear clip clip-path color color-scheme column-count column-fill column-gap column-rule column-rule-color column-rule-style column-rule-width column-span column-width columns content counter-increment counter-reset counter-set cursor direction display empty-cells filter flex flex-basis flex-direction flex-flow flex-grow flex-shrink flex-wrap float font @font-face font-family font-feature-settings font-kerning font-size font-size-adjust font-stretch font-style font-variant font-variant-caps font-weight gap grid grid-area grid-auto-columns grid-auto-flow grid-auto-rows grid-column grid-column-end grid-column-start grid-row grid-row-end grid-row-start grid-template grid-template-areas grid-template-columns grid-template-rows hanging-punctuation height hyphens hyphenate-character image-rendering @import initial-letter inline-size inset inset-block inset-block-end inset-block-start inset-inline inset-inline-end inset-inline-start isolation justify-content justify-items justify-self @keyframes left letter-spacing line-height list-style list-style-image list-style-position list-style-type margin margin-block margin-block-end margin-block-start margin-bottom margin-inline margin-inline-end margin-inline-start margin-left margin-right margin-top marker marker-end marker-mid marker-start mask mask-clip mask-composite mask-image mask-mode mask-origin mask-position mask-repeat mask-size mask-type max-block-size max-height max-inline-size max-width @media min-block-size min-inline-size min-height min-width mix-blend-mode object-fit object-position offset offset-anchor offset-distance offset-path offset-position offset-rotate opacity order orphans outline outline-color outline-offset outline-style outline-width overflow overflow-anchor overflow-wrap overflow-x overflow-y overscroll-behavior overscroll-behavior-block overscroll-behavior-inline overscroll-behavior-x overscroll-behavior-y padding padding-block padding-block-end padding-block-start padding-bottom padding-inline padding-inline-end padding-inline-start padding-left padding-right padding-top page-break-after page-break-before page-break-inside paint-order perspective perspective-origin place-content place-items place-self pointer-events



CSS 參考


CSS 屬性

A

accent-color 為使用者介面控制元件指定強調色
align-content 當專案不使用所有可用空間時,指定彈性容器內行之間的對齊方式
align-items 指定彈性容器內專案的對齊方式
align-self 指定彈性容器內選定專案的對齊方式
all 重置所有屬性(unicode-bidi 和 direction 除外)
animation 所有animation-*屬性的簡寫屬性
animation-delay 指定動畫開始的延遲
animation-direction 指定動畫是向前播放、向後播放還是以交替週期播放
animation-duration 指定動畫完成一個週期所需的時間
animation-fill-mode 指定動畫未播放時(開始之前、結束之後或兩者)元素的樣式
animation-iteration-count 指定動畫應播放的次數
animation-name 為 @keyframes 動畫指定一個名稱
animation-play-state 指定動畫是正在執行還是已暫停
animation-timing-function 指定動畫的速度曲線
aspect-ratio 指定元素的首選寬高比

B

backdrop-filter 為元素後面的區域定義圖形效果
backface-visibility 定義當元素的背面朝向使用者時是否可見
background 所有background-*屬性的簡寫屬性
background-attachment 設定背景影像是否隨頁面其餘部分滾動,還是固定
background-blend-mode 指定每個背景層(顏色/影像)的混合模式
background-clip 定義背景(顏色或影像)在元素內應延伸多遠
background-color 指定元素的背景顏色
background-image 為元素指定一個或多個背景影像
background-origin 指定背景影像的起始位置
background-position 指定背景影像的位置
background-position-x 在 x 軸上指定背景影像的位置
background-position-y 在 y 軸上指定背景影像的位置
background-repeat 設定背景影像是否/如何重複
background-size 指定背景影像的大小
block-size 指定元素在塊方向上的大小
border border-width, border-styleborder-color 的簡寫屬性
border-block border-block-width, border-block-styleborder-block-color 的簡寫屬性
border-block-color 設定塊方向上開始和結束邊框的顏色
border-block-end border-block-end-width, border-block-end-styleborder-block-end-color 的簡寫屬性
border-block-end-color 設定塊方向上結束邊框的顏色
border-block-end-style 設定塊方向上結束邊框的樣式
border-block-end-width 設定塊方向上結束邊框的寬度
border-block-start border-block-start-width, border-block-start-styleborder-block-start-color 的簡寫屬性
border-block-start-color 設定塊方向上開始邊框的顏色
border-block-start-style 設定塊方向上開始邊框的樣式
border-block-start-width 設定塊方向上開始邊框的寬度
border-block-style 設定塊方向上開始和結束邊框的樣式
border-block-width 設定塊方向上開始和結束邊框的寬度
border-bottom border-bottom-width, border-bottom-styleborder-bottom-color 的簡寫屬性
border-bottom-color 設定底部邊框的顏色
border-bottom-left-radius 定義左下角邊框的半徑
border-bottom-right-radius 定義右下角邊框的半徑
border-bottom-style 設定底部邊框的樣式
border-bottom-width 設定底部邊框的寬度
border-collapse 設定表格邊框是合併為單個邊框還是分開
border-color(邊框顏色) 設定四個邊框的顏色
border-end-end-radius 設定塊結束和行結束邊之間的角的半徑
border-end-start-radius 設定塊結束和行開始邊之間的角的半徑
border-image 所有border-image-*屬性的簡寫屬性
border-image-outset 指定邊框影像區域超出邊框框的量
border-image-repeat 指定邊框影像應重複、圓角還是拉伸
border-image-slice 指定如何切分邊框影像
border-image-source 指定用作邊框的影像路徑
border-image-width 指定邊框影像的寬度
border-inline border-inline-width, border-inline-styleborder-inline-color 的簡寫屬性
border-inline-color 設定行方向上開始和結束邊框的顏色
border-inline-end border-inline-end-width, border-inline-end-styleborder-inline-end-color 的簡寫屬性
border-inline-end-color 設定行方向上結束邊框的顏色
border-inline-end-style 設定行方向上結束邊框的樣式
border-inline-end-width 設定行方向上結束邊框的寬度
border-inline-start border-inline-start-width, border-inline-start-styleborder-inline-start-color 的簡寫屬性
border-inline-start-color 設定行方向上開始邊框的顏色
border-inline-start-style 設定行方向上開始邊框的樣式
border-inline-start-width 設定行方向上開始邊框的寬度
border-inline-style 設定行方向上開始和結束邊框的樣式
border-inline-width 設定行方向上開始和結束邊框的寬度
border-left 所有border-left-*屬性的簡寫屬性
border-left-color 設定左邊框的顏色
border-left-style 設定左邊框的樣式
border-left-width 設定左邊框的寬度
border-radius 四個border-*-radius屬性的簡寫屬性
border-right 所有border-right-*屬性的簡寫屬性
border-right-color 設定右邊框的顏色
border-right-style 設定右邊框的樣式
border-right-width 設定右邊框的寬度
border-spacing 設定相鄰單元格邊框之間的距離
border-start-end-radius 設定塊開始和行結束邊之間的角的半徑
border-start-start-radius 設定塊開始和行開始邊之間的角的半徑
border-style(邊框樣式) 設定四個邊框的樣式
border-top border-top-width, border-top-styleborder-top-color 的簡寫屬性
border-top-color 設定頂部邊框的顏色
border-top-left-radius 定義左上角邊框的半徑
border-top-right-radius 定義右上角邊框的半徑
border-top-style 設定頂部邊框的樣式
border-top-width 設定頂部邊框的寬度
border-width(邊框寬度) 設定四個邊框的寬度
bottom 設定元素相對於其父元素底部的位置
box-decoration-break 設定元素在分頁時,或對於內聯元素在換行時的背景和邊框的行為。
box-reflect box-reflect 屬性用於建立元素的反射。
box-shadow 為元素附加一個或多個陰影
box-sizing 定義元素的寬度和高度如何計算:是否包含內邊距和邊框
break-after 指定在指定元素之後是否應發生分頁、列分頁或區域分頁
break-before 指定在指定元素之前是否應發生分頁、列分頁或區域分頁
break-inside 指定在指定元素內部是否應發生分頁、列分頁或區域分頁

C

caption-side 指定表格標題的位置
caret-color 指定輸入框、文字區域或任何可編輯元素的插入符(caret)的顏色
@charset 指定樣式表中使用的字元編碼
清除 指定浮動元素旁邊的元素應如何處理
clip 已棄用,推薦使用 clip-path。裁剪絕對定位的元素
clip-path 將元素裁剪為基本形狀或 SVG 源
color 設定文字的顏色
color-scheme 指示元素應以何種作業系統顏色方案進行渲染
column-count 指定元素應分為多少列
column-fill 指定如何填充列,平衡或不平衡
column-gap 指定列之間的間隙
column-rule 所有column-rule-*屬性的簡寫屬性
column-rule-color 指定列之間規則的顏色
column-rule-style 指定列之間規則的樣式
column-rule-width 指定列之間規則的寬度
column-span 指定元素應跨越多少列
column-width 指定列的寬度
columns column-widthcolumn-count 的簡寫屬性
content 與 :before 和 :after 偽元素一起使用,以插入生成的content
counter-increment 增加或減少一個或多個 CSS 計數器的值
counter-reset 建立或重置一個或多個 CSS 計數器
counter-set 建立或設定一個或多個 CSS 計數器
cursor 指定滑鼠指標懸停在元素上時顯示的滑鼠指標

D

direction 指定文字方向/書寫方向
display 指定某個 HTML 元素的顯示方式

E

empty-cells 指定是否在表格的空單元格上顯示邊框和背景

F

篩選器 在元素顯示之前定義效果(例如模糊或顏色偏移)
flex flex-grow, flex-shrinkflex-basis 屬性的簡寫屬性
flex-basis 指定彈性專案的初始長度
flex-direction 指定彈性專案的方向
flex-flow flex-directionflex-wrap 屬性的簡寫屬性
flex-grow 指定專案相對於其他專案的增長比例
flex-shrink 指定專案相對於其他專案的收縮比例
flex-wrap 指定彈性專案是否應換行
float 指定元素是否應向左、向右浮動,或不浮動
font font-style, font-variant, font-weight, font-size/line-heightfont-family 屬性的簡寫屬性
@font-face 允許網站下載和使用非“網頁安全”字型的規則
font-family 指定文字的字體系列
font-feature-settings 允許控制 OpenType 字型中的高階排版功能
@font-feature-values 允許作者在 font-variant-alternate 中使用常用名稱,以在 OpenType 中以不同方式啟用的字型
font-kerning 控制字距資訊的使用(字母的間距)
font-language-override 控制字型中特定語言字形的用法
font-size 指定文字的字型大小
font-size-adjust 在回退字型發生時保持文字的可讀性和大小
font-stretch 從字體系列中選擇正常、壓縮或擴充套件的字型
font-style 指定文字的字型樣式
font-synthesis 控制瀏覽器可能合成的缺失字型(粗體或斜體)
font-variant 指定文字是否應以小型大寫字母字型顯示
font-variant-alternates 控制與 @font-feature-values 中定義的備用名稱關聯的備用字形的用法
font-variant-caps 控制大寫字母備用字形的用法
font-variant-east-asian 控制東亞指令碼(例如日語和中文)備用字形的用法
font-variant-ligatures 控制應用於元素中文字內容中使用的連字和上下文形式
font-variant-numeric 控制數字、分數和序數標記備用字形的用法
font-variant-position 控制與字型基線相比,尺寸較小且位於上標或下標位置的備用字形的用法
font-weight 指定字型的粗細

G

gap row-gapcolumn-gap 屬性的簡寫屬性
grid grid-template-rows, grid-template-columns, grid-template-areas, grid-auto-rows, grid-auto-columnsgrid-auto-flow 屬性的簡寫屬性
grid-area 指定網格項的名稱,或者此屬性是grid-row-startgrid-column-startgrid-row-endgrid-column-end 屬性的簡寫屬性
grid-auto-columns 指定預設列大小
grid-auto-flow 指定自動放置的專案在網格中的插入方式
grid-auto-rows 指定預設行大小
grid-column grid-column-startgrid-column-end 屬性的簡寫屬性
grid-column-end 指定網格項的結束位置
grid-column-start 指定網格項的開始位置
grid-row grid-row-startgrid-row-end 屬性的簡寫屬性
grid-row-end 指定網格項的結束位置
grid-row-start 指定網格項的開始位置
grid-template grid-template-rowsgrid-template-columnsgrid-areas 屬性的簡寫屬性
grid-template-areas 使用命名的網格項指定列和行的顯示方式
grid-template-columns 指定網格佈局中的列大小和數量
grid-template-rows 指定網格佈局中的行大小

H

hanging-punctuation 指定標點符號是否可以放在行框外
height 設定元素的高度
hyphens 設定如何分割單詞以改善文字佈局
hyphenate-character 設定行末使用的字元,在連字元斷點之前

I

image-rendering 指定影像縮放所使用的演算法型別
@import 允許您將一個樣式表匯入另一個樣式表
initial-letter 指定首字母的大小,以及可選的,首字母應下沉(在文字中向下)的行數
inline-size 指定元素在內聯方向上的大小
inset 指定元素與父元素之間的距離
inset-block 指定元素與父元素在塊方向上的距離
inset-block-end 指定元素結束端與父元素在塊方向上的距離
inset-block-start 指定元素開始端與父元素在塊方向上的距離
inset-inline 指定元素與父元素在內聯方向上的距離
inset-inline-end 指定元素結束端與父元素在內聯方向上的距離
inset-inline-start 指定元素開始端與父元素在內聯方向上的距離
isolation 定義一個元素是否必須建立新的堆疊上下文

J

justify-content 當專案不使用所有可用空間時,指定彈性容器內專案之間的對齊方式
justify-items 設定在網格容器上。指定網格項在內聯方向上的對齊方式
justify-self 設定在網格項上。指定網格項在內聯方向上的對齊方式

K

@keyframes 指定動畫程式碼

L

left 指定定位元素的左側位置
letter-spacing 增加或減少文字中字元之間的空格
line-break 指定如何/是否斷行
line-height 設定行高
list-style 在一行中設定列表的所有屬性
list-style-image 將影像指定為列表項標記
list-style-position 指定列表項標記(專案符號)的位置
list-style-type 指定列表項標記的型別

M

margin 在一行中設定所有 margin 屬性
margin-block 指定塊方向上的 margin
margin-block-end 指定塊方向上的結束 margin
margin-block-start 指定塊方向上的開始 margin
margin-bottom 設定元素的底部 margin
margin-inline 指定內聯方向上的 margin
margin-inline-end 指定內聯方向上的結束 margin
margin-inline-start 指定內聯方向上的開始 margin
margin-left 設定元素的左 margin
margin-right 設定元素的右 margin
margin-top 設定元素的頂部 margin
marker 指向將在元素路徑的所有頂點(第一個、中間和最後一個)上繪製的標記
marker-end 指向將在元素路徑的最後一個頂點上繪製的標記
marker-mid 指向將在元素路徑的所有中間頂點上繪製的標記
marker-start 指向將在元素路徑的第一個頂點上繪製的標記
mask mask-imagemask-mode mask-repeatmask-positionmask-clipmask-originmask-sizemask-composite 的簡寫屬性
mask-clip 指定哪個區域會受到蒙版影像的影響
mask-composite 指定用於當前蒙版層與下方蒙版層的混合操作
mask-image 指定用作元素蒙版層的影像
mask-mode 指定蒙版層影像是作為亮度蒙版還是作為 Alpha 蒙版處理
mask-origin 指定蒙版層影像的起始位置(相對於蒙版位置區域)
mask-position 設定蒙版層影像的起始位置(相對於蒙版位置區域)
mask-repeat 指定蒙版層影像的重複方式
mask-size 指定蒙版層影像的大小
mask-type 指定 SVG <mask> 元素是作為亮度蒙版還是作為 Alpha 蒙版處理
max-height 設定元素的最大高度
max-width 設定元素的最大寬度
@media 為不同媒體型別/裝置/大小設定樣式規則
max-block-size 設定元素在塊方向上的最大尺寸
max-inline-size 設定元素在內聯方向上的最大尺寸
min-block-size 設定元素在塊方向上的最小尺寸
min-inline-size 設定元素在內聯方向上的最小尺寸
min-height 設定元素的最小高度
min-width 設定元素的最小寬度
mix-blend-mode 指定元素的內容如何與其直接父背景混合

O

object-fit 指定已替換元素的內容如何適應由其使用的高度和寬度建立的框
object-position 指定已替換元素在其框內的對齊方式
offset offset-anchoroffset-distanceoffset-pathoffset-positionoffset-rotate 屬性的簡寫屬性
offset-anchor 指定一個點,該點固定在元素沿其動畫的路徑上
offset-distance 指定動畫元素沿路徑放置的位置
offset-path 指定元素沿其動畫的路徑
offset-position 指定元素沿路徑的初始位置
offset-rotate 指定元素沿路徑動畫時的旋轉
不透明度 設定元素的透明度級別
order 設定彈性專案相對於其他專案的順序
orphans 設定頁面或列底部必須留下的最小行數
outline outline-width, outline-styleoutline-color 屬性的簡寫屬性
outline-color 設定輪廓的顏色
outline-offset 偏移輪廓,並將其繪製在邊框邊緣之外
outline-style 設定輪廓的樣式
outline-width 設定輪廓的寬度
overflow
指定內容溢位元素框時會發生什麼
overflow-anchor
指定當新內容載入到可滾動容器的可視區域上方時,是否應將其向下推
overflow-wrap 指定瀏覽器是否可以根據容器溢位分割長單詞的行
overflow-x 指定當內容溢位元素的內聯區域時,是否裁剪內容的左右邊緣
overflow-y 指定當內容溢位元素的內聯區域時,是否裁剪內容的頂部/底部邊緣
overscroll-behavior 指定在 x 和 y 方向上是否具有滾動鏈或過滾動效果
overscroll-behavior-block 指定在塊方向上是否具有滾動鏈或過滾動效果
overscroll-behavior-inline 指定在內聯方向上是否具有滾動鏈或過滾動效果
overscroll-behavior-x 指定在 x 方向上是否具有滾動鏈或過滾動效果
overscroll-behavior-y 指定在 y 方向上是否具有滾動鏈或過滾動效果

P

padding 所有padding-*屬性的簡寫屬性
padding-block 指定塊方向上的內邊距
padding-block-end 指定塊方向上的結束內邊距
padding-block-start 指定塊方向上的開始內邊距
padding-bottom 設定元素的底部內邊距
padding-inline 指定內聯方向上的內邊距
padding-inline-end 指定內聯方向上的結束內邊距
padding-inline-start 指定內聯方向上的開始內邊距
padding-left 設定元素的左內邊距
padding-right 設定元素的右內邊距
padding-top 設定元素的頂部內邊距
page-break-after 設定元素之後的頁面分頁行為。已由 break-after 屬性取代
page-break-before 設定元素之前的頁面分頁行為。已由 break-before 屬性取代
page-break-inside 設定元素內部的頁面分頁行為。已由 break-inside 屬性取代
paint-order 設定 SVG 元素或文字的繪製順序。
perspective 為 3D 定位元素增加透視效果
perspective-origin 定義使用者觀看 3D 定位元素的哪個位置
place-content 為彈性盒子和網格佈局指定 align-content 和 justify-content 屬性值
place-items 為網格佈局指定 align-items 和 justify-items 屬性值
place-self 為網格佈局指定 align-self 和 justify-self 屬性值
pointer-events 定義元素是否對指標事件做出反應
position 指定用於元素的定位方法型別(static、relative、absolute 或 fixed)
@property 直接在樣式表中定義自定義 CSS 屬性,無需執行任何 JavaScript

Q

quotes 設定嵌入式引用的引號型別

R

resize 定義使用者是否可以(以及如何)調整元素的大小
right 指定已定位元素的右側位置
rotate 指定元素的旋轉
row-gap 指定網格行之間的間隙

S

scale 透過放大或縮小來指定元素的大小
scroll-behavior 指定是否在可滾動框中平滑地為滾動位置設定動畫,而不是直接跳轉
scroll-margin 指定吸附位置與容器之間的邊距
scroll-margin-block 指定在塊方向上吸附位置與容器之間的邊距
scroll-margin-block-end 指定在塊方向上吸附位置與容器之間的結束邊距
scroll-margin-block-start 指定在塊方向上吸附位置與容器之間的開始邊距
scroll-margin-bottom 指定底部吸附位置與容器之間的邊距
scroll-margin-inline 指定在內聯方向上吸附位置與容器之間的邊距
scroll-margin-inline-end 指定在內聯方向上吸附位置與容器之間的結束邊距
scroll-margin-inline-start 指定在內聯方向上吸附位置與容器之間的開始邊距
scroll-margin-left 指定左側吸附位置與容器之間的邊距
scroll-margin-right 指定右側吸附位置與容器之間的邊距
scroll-margin-top 指定頂部吸附位置與容器之間的邊距
scroll-padding 指定容器到子元素吸附位置的距離
scroll-padding-block 指定在塊方向上容器到子元素吸附位置的距離
scroll-padding-block-end 指定在塊方向上容器末尾到子元素吸附位置的距離
scroll-padding-block-start 指定在塊方向上容器開頭到子元素吸附位置的距離
scroll-padding-bottom 指定容器底部到子元素吸附位置的距離
scroll-padding-inline 指定在內聯方向上容器到子元素吸附位置的距離
scroll-padding-inline-end 指定在內聯方向上容器末尾到子元素吸附位置的距離
scroll-padding-inline-start 指定在內聯方向上容器開頭到子元素吸附位置的距離
scroll-padding-left 指定容器左側到子元素吸附位置的距離
scroll-padding-right 指定容器右側到子元素吸附位置的距離
scroll-padding-top 指定容器頂部到子元素吸附位置的距離
scroll-snap-align 指定使用者停止滾動時元素的定位位置
scroll-snap-stop 指定觸控板或觸控式螢幕快速滑動後的滾動行為
scroll-snap-type 指定滾動時的吸附行為方式
scrollbar-color 指定元素的捲軸顏色

T

tab-size 指定製表符的寬度
table-layout 定義用於佈局表格單元格、行和列的演算法
text-align 指定文字的水平對齊方式
text-align-last 描述當 text-align 設定為 "justify" 時,塊的最後一行或強制換行符之前的行的對齊方式
text-combine-upright 指定將多個字元組合成單個字元的寬度空間
text-decoration 指定新增到文字的裝飾
text-decoration-color 設定文字裝飾的顏色
text-decoration-line 指定 text-decoration 中的線條型別
text-decoration-style 指定文字裝飾中線條的樣式
text-decoration-thickness 指定裝飾線的粗細
text-emphasis 用於 text-emphasis-style 和 text-emphasis-color 屬性的簡寫屬性
text-emphasis-color 指定強調標記的顏色
text-emphasis-position 指定強調標記的位置
text-emphasis-style 指定強調標記的樣式
text-indent 指定文字塊中第一行的縮排
text-justify 指定當 text-align 設定為 "justify" 時使用的對齊方法
text-orientation 定義行中字元的方向
text-overflow 指定當文字溢位包含元素時應發生的情況
text-shadow 為文字新增陰影
text-transform 控制文字的大小寫
text-underline-offset 指定下劃線文字裝飾的偏移距離
text-underline-position 指定下劃線文字裝飾的位置
top 指定已定位元素的頂部位置
轉換 對元素應用 2D 或 3D 變換
transform-origin 允許您更改變換元素上的位置
transform-style 指定巢狀元素在 3D 空間中的渲染方式
transition 所有 transition-* 屬性的簡寫屬性
transition-delay 指定過渡效果何時開始
transition-duration 指定過渡效果完成所需的秒數或毫秒數
transition-property 指定過渡效果的 CSS 屬性名稱
transition-timing-function 指定過渡效果的速度曲線
翻譯 指定元素的位置

U

unicode-bidi 與 direction 屬性一起使用,用於設定或返回文字是否應被覆蓋以支援同一文件中的多種語言
user-select 指定是否可以選擇元素的文字

V

vertical-align 設定元素的垂直對齊方式
可見性 指定元素是否可見

W

white-space 指定如何處理元素內部的空白符
widows 設定頁面或列頂部必須保留的最小行數
width 設定元素的寬度
word-break 指定單詞在到達行尾時如何換行
word-spacing 增加或減少文字中單詞之間的間距
word-wrap 允許長而不可斷開的單詞被斷開並換到下一行
writing-mode 指定文字行的佈局是水平還是垂直

Z

z-index 設定已定位元素的堆疊順序
zoom 指定元素的縮放因子。元素可以放大和縮小

×

聯絡銷售

如果您想將 W3Schools 服務用於教育機構、團隊或企業,請傳送電子郵件給我們
sales@w3schools.com

報告錯誤

如果您想報告錯誤,或想提出建議,請傳送電子郵件給我們
help@w3schools.com

W3Schools 經過最佳化,旨在方便學習和培訓。示例可能經過簡化,以提高閱讀和學習體驗。教程、參考資料和示例會不斷審查,以避免錯誤,但我們無法保證所有內容的完全正確性。使用 W3Schools 即表示您已閱讀並接受我們的使用條款Cookie 和隱私政策

版權所有 1999-2024 Refsnes Data。保留所有權利。W3Schools 由 W3.CSS 提供支援