localstorage
Wednesday, May 4th, 2011A simple test on localstorage object. The input fields keep retaining the previous values
A simple test on localstorage object. The input fields keep retaining the previous values
I had been reluctant to study CSS3 but finally took my first step today. What triggered my motivation was Jonathan Stark’s brilliant book about building applications for smart phones with ordinary web technologies. I randomly tried some CSS3 tutorials and packed my products into one web page.
The samples were only tested on Firefox(4.0.1 – Mac), Safari(5.0.3 – Mac) and Chrome(10 – Mac / Android 2.3). Some may not work propery on other environment. As my primal interest is in smartphones – Android and iPhone, I don’t really care others as long as they work on Webkit.
<link rel="stylesheet" href="css/phone.css" media="only screen and (max-width: 480px)" /> <link rel="stylesheet" href="css/desktop.css" media="only screen and (min-width: 481px)" /> <meta name="viewport" content="width="user-scalable=no, device-width" /> <!--[if IE]> Internet Exproler specific <![endif]-->
[max-device-width] and [min-device-width] can be also used for switching CSS.