Skip to Content
MOBILE HTML5學習手冊
book

MOBILE HTML5學習手冊

by Estelle Weyl
June 2014
Intermediate to advanced
488 pages
9h 56m
Chinese
GoTop Information, Inc.
Content preview from MOBILE HTML5學習手冊
擴充選項的 CSS3 特性值
|
245
就算使用關鍵字
transparent
,即使它寫起來比
rgba(0, 0, 0, 0)
還要快,也會產生一些
問題。如前所述,
transparent
是透明的黑色,當你將它轉變成其他顏色時,可能會產生
醜陋的灰色
2
。如果你想要從
'transparent'
轉變成 #
FF0000
紅色陰影,請改用透明的紅
rgba(255, 0, 0, 0)
。線上章節資源(
http://www.standardista.com/mobile
)中,有一個
表單列舉了十六進制、RGB HSL 值對應的顏色名稱。
CurrentColor
CSS3 加入了一個關鍵字:
currentColor
currentColor
會取出元素的
'color:'
特性值,
或元素文字顏色。
所有現代瀏覽器都支援
currentColor
,它非常適合與文字陰影一起使用,來建立較粗的
字型,類似 Helvetica Neue Light
.bolderText {text-shadow: 0 0 1px currentColor;}
在高 DPI 設備上,有一些字體太細,因此難以閱讀。你可以使用文字的顏色,在文字
後面加上一些陰影,讓它變得比較清楚。你甚至可以不需要知道文字顏色就能做到這一
點,只要宣告
currentCol
,將它當成陰影顏色即可。
瀏覽器顏色值
W3C CSS3 草案規格有
currentColor
transparent
關鍵字,CSS 2.1 也定義了許多系統
顏色
3
。這些顏色名稱與瀏覽器及作業系統不一樣, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

JAVASCRIPT網頁應用程式設計

JAVASCRIPT網頁應用程式設計

Alex MacCaw

Publisher Resources

ISBN: 9789863471240