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學習手冊
72
|
第三章
<bdi>
<bdi>
元素(相對於既有的
<bdo>
元素,它會改寫文字的方向)會將一段特定的雙向內容
獨立出來。之所以需要它,原因出在 Unicode 雙向演算法處理“弱(weak)”字元的方
式。
<bdo dir="rtl">
會將整行文字反轉,就算裡面只有一個 span
<bdi>
只會反轉開啟
標籤與
</bdi>
封閉標籤(必要的)之間的內容。CSS3 Writing Modes 規格已經加入一些
屬性,如
text-combine-horizontal
,來將顯示內容從 HTML 內容層移往 CSS
<wbr>
<wbr>
元素代表一個無空格的內容的斷行點,例如,有時 URL 非常、非常、非常長,長
到你的行寬無法容納它:
<p>
<a href="http://isCubeeDoo.partofhtml5.com/">Is<wbr/>CubeeDoo.<wbr/>
Part<wbr/>Of<wbr/>HTML5.com</a>?
</p>
若要以可被理解的方式將文字斷行,可使用
<wbr>
元素來分隔 URL 中的各個單字。你
可以添加
<wbr>
元素來指示瀏覽器換行的地方。
<wbr>
是一個空元素,沒有元素專用的
屬性。
變更的文字級語義元素
有一些 HTML 的元素在 HTML5 中已被修改,包括
a
small
s
cite
i
b
u
<a>
你已經知道
<a>
元素代表超連結。它不是新的元素,但我們會在此說明,是因為
HTML5 對這個元素做了一些改變,而且根據目前是選用的
href
屬性值,有一些特殊的 ...
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