Skip to Content
MOBILE WEB程式設計--第二版
book

MOBILE WEB程式設計--第二版

by Maximiliano Firtman
December 2013
Intermediate to advanced
752 pages
16h
Chinese
GoTop Information, Inc.
Content preview from MOBILE WEB程式設計--第二版
248
|
第八章
瀏覽器∕平台 基本支援 檔案選擇器∕擷取 accept 屬性 multiple 屬性 capture 屬性
Symbian Nokia
瀏覽器
選擇器 直向
(顯示警告)
S40 Nokia
Xpress 瀏覽器
選擇器
Firefox 選擇器、照相機與
音訊擷取
BlcakBerry
瀏覽器
4.2+ 選擇器 BB10
UC 瀏覽器 選擇器與照相機擷取
Opera Mobile 只有選擇器
Opera Mini 只有選擇器
非互動式表單元素
HTML5 除了支援標籤與隱藏欄位之外(
<input type="hidden">
),也加入一些與定義表
單或值有關的非互動式元素。這些新的元素為:
output
progress
meter
。並非所有瀏
覽器都能正常地顯示這些新元素,因此我們必須使用回退機制。
output
元素的用途是儲存表單的計算結果。它有一個
for
屬性,其值為一串與計算有
關的控制項,並且以空格分隔,如果我們要在
form
元素之外使用它的話,要使用一個
form
屬性。
你可以套用新的 HTML5 布林屬性
readonly
來讓所有互動式表單控制項變
成唯讀。
例如,如果我們要進行一個貨幣計算專案,可能會以下列方式製作表單:
<form id="currencyCalculator">
<label for="value">Value in US Dollars</label>
<input type="number" ...
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

成為卓越程式設計師的38項必修法則

成為卓越程式設計師的38項必修法則

Pete Goodliffe
精實企業|高績效組織如何達成創新規模化

精實企業|高績效組織如何達成創新規模化

Jez Humble, Joanne Molesky, Barry O'Reilly

Publisher Resources

ISBN: 9789862769522