文字變變變
(建議以電腦閱讀此篇)
改變文字顏色
.demo {
color: #00ff00;
}
對其文字
.demo {
text-align: center;
}
靠左:left
置中:center
靠右:right
設定行高
.demo {
line-hight: 16px;
}
線段效果
.demo {
text-decoration: underline;
}
無效果:none
底 線:underline
頂 線:overline
刪除線:line-through
文字間距
.demo {
letter-spacing: 6px;
}
縮排效果
.demo {
text-indent: 32px;
}
斜體效果
.demo {
font-style: italic;
}
預設:normal
斜體:italic
粗體效果
.demo {
font-weight: bold;
}
預設:normal
粗體:bold
字體大小
.demo {
font-siz: 16px;
}
字型 (可依序多個)
.demo {
font-family: Courier New, 微軟正黑體;
}
如有錯誤,歡迎在下方留言討論喔 ~