顯示具有 webkit 標籤的文章。 顯示所有文章
顯示具有 webkit 標籤的文章。 顯示所有文章

2012年5月22日 星期二

[Webkit] CSS支援能力整理

針對各家的Browser,CSS的支援似乎是存在於其中的最大差異
很多web designer都需要針對不同的瀏覽器來最佳化CSS,來讓網頁能在各個瀏覽器上有最好的呈現效果。

這篇文章旨在整理一些沒有被廣泛支援的style ,能有個了解。

首先,針對Webkit
可以在 Webkit debug的網站上看到現時你正在使用的瀏覽器的webkit 版本
因為某些CSS或是property都是在某個版本之後才開始支援,
先清楚webkit的版本,很重要。



<marquee behavior="alternate" >

marquee,跑馬燈,這個tag並不是W3C所定義的,是IE早期自己發展的
因為歷史悠久,各家的瀏覽器也會支援
refer: http://msdn.microsoft.com/en-us/library/ms533502(v=VS.85).aspx

behavior 是指定其多動的行為
有{scroll | slide | alternate}這三種,沒有設置的話,default 為scroll

今天遇到了一個問題

<marquee behavior='alternate'>來回移動</marquee>

這樣的一句,可以正常顯示的話,
應該是會有"來回移動"這四個字在螢幕上左右來回

來回移動

而問題就是在Android4.0 的Browser上面卻沒有反應
當behavior為scroll / slide時都沒有問題,就只有alternate沒反應

經自己多方測試後,發現是Webkit 535之後的版本才有支援
而Android4.0上的Webkit是534.3,所以沒支援。

refer:
非IE瀏覽器對marquee的支援:
http://www.hoxing.net/Knowledge/Website/20111103326.html
mozilla: https://developer.mozilla.org/en/HTML/Element/marquee
safari: https://developer.apple.com/library/safari/#documentation/AppleApplications/Reference/SafariHTMLRef/Articles/Attributes.html



2012年5月20日 星期日

[Webkit] WCSS支援能力

WCSS (Wap CSS/Wiress CSS), 是WAP2.0專屬的CSS,屬於CSS 2.0的一個sub set 和一些WAP的特性所集結而成的,顧名思意,是應用於mobile上的CSS。
(refer:
http://www.developershome.com/wap/wcss/
http://baike.baidu.com/view/1689014.htm

WCSS應用於Xhtml MP文件中
關於WCSS的使用範疇
refer:
http://bbs.blueidea.com/thread-2905812-1-1.html



以下為一些我遇到過在Webkit支援上比較有問題的style

-wap-input-required : { true|false }

/*if true, 指定的input text 不能空白,submit時會發出alert */
根據測試,只有opera有support




vendor-prefixed 的CSS style在各家browser的支援度

OMA doc:
Powered By Blogger

Label Cloud

2009 (1) 不能連localhost (1) 內嵌音訊 (1) 求職 (1) 面試 (1) 音樂 (1) 動畫師 (1) 帳號管理 (1) 排程 (1) 畢展 (1) 創意市集 (1) 惡意程式 (1) 電腦動畫 (1) 權限管理 (1) adobe (1) android (4) animation (1) animator (1) apache (3) art (5) art taipei 2008 (1) audio (2) bbs (1) birthday (1) black and white (1) browser (2) career (2) certification (1) cgw (1) cinematography (1) code (3) Collie (1) color (2) command (16) competition (1) computer science (3) connection (1) cover (1) crafyJS (1) creative (1) CSS (1) DBN (2) design (7) developer (1) display (1) drawing (1) eclipse (3) embed (1) engine (1) EntityJS (1) exception (1) exhibition (1) flower (1) frame (1) freebsd (11) french (1) friends (3) function (1) game (1) google (2) graphic (3) html (2) HTML5 (1) https (1) illustrator (1) image processing (1) interactive storytelling (1) internet (3) interview (1) introduce (1) ip (1) japan (1) java (4) javascript (3) JIT (1) jmonkey (1) job (1) jquery (1) LAMP (1) LimeJS (1) linux (8) liquid galaxy (1) ListView (1) localhost (1) log (1) mail (1) marquee (1) midi (1) mime-type (1) mis (1) MIT (2) mo-cap (1) mobile (1) Modernizr (1) motion capture (1) movie (1) music (3) narrative (2) NCCU (3) news (1) note (10) originality (1) otaku (1) painting (4) performance (1) photography (2) photoshop (7) php (1) player modelling (1) poster (1) postfix (1) programming (5) QuarkJS (1) resource (1) schema (1) scroll (1) self aware (1) semantic (1) server (1) share (1) sketch (2) software (4) solve (2) Sonivox (1) speaking (1) ssl (1) SSLPeerUnverifiedException (1) streaming (1) Subversion (1) sunspider (1) SVN (3) svn server (1) system (1) taipei (1) test (1) tfam (1) tool (1) TortoiseSVN (1) tutor (1) ubuntu (3) update (1) uri (1) video (1) vim (1) w3c (1) wap wcss css css2.0 (1) web (8) WebGL (1) webkit (2) well-form (1) wiimote (1) wiiusej (1) workshop (1) xhtml (1) xml (2)