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學習手冊
HTML5 Web 表單
|
105
根據目前的規格草案,
email
輸入類型應該支援的其他屬性包括:
name
disabled
form
autocomplete
autofocus
list
maxlength
pattern
readonly
required
size
placeholder
。在線上章節資源中,有一些範例可供你參考。
URL<input type="url">
如同
email
類型,
url
類型的外觀類似文字欄位,它的用途是指定網址。在許多設備的
觸控螢幕上聚焦這個元素會帶出一個專門用來輸入網址的鍵盤。在 iOS 設備上,
url
型會為智慧型手機使用者提供一個具有 A-Z、句點、斜線,與 ".com" 的鍵盤,但沒有冒
號,如圖 4-3 所示。BlackBerry 的鍵盤與它很像,但沒有斜線也沒有冒號。
4-3  Firefox OSiPodBlackberry 10Windows Phone 與平板上的 Chrome URL 動態
鍵盤
如果 URL 的開頭符合 Internet Protocol,甚至任何仿造的 Internet Protocol(如 Q:),
url
輸入類型的瀏覽器會將輸入內容回報為有效(Q:// 的動作與 ftp:// 一樣)。沒有使
用通訊協定的網址將會無法通過驗證,如
www.yahoo.com
105
106
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