jQuery Mobile 的 CSS 設定說明與重點記錄:以可開闔(collapsible-set)首頁設計為例
分類標籤: 手機版網頁設計(CSS/Javascript)
|
Moderator March 19, 2012 04:09PM 發表文章數: 1,006 |
.ui-btn-up-c, .ui-btn-down-c { border: none; border-bottom: 1px solid #003C64; background: #0070B8; background-image: -webkit-gradient(linear,left top,left bottom,color-stop(0, #0071B8),color-stop(1, #004370)); background-image: -webkit-linear-gradient(top, #0071B8 0%, #004370 100%); background-image: -moz-linear-gradient(top, #0071B8 0%, #004370 100%); background-image: -ms-linear-gradient(top, #0071B8 0%, #004370 100%); background-image: -o-linear-gradient(top, #0071B8 0%, #004370 100%); background-image: linear-gradient(top, #0071B8 0%, #004370 100%); }
.ui-btn-hover-a { border: none; border-bottom: 1px solid #728fa2; background: #d9e9f3; color: #005389; text-shadow: 0 -1px 1px #FFFFFF; background-image: -webkit-gradient(linear,left top,left bottom,color-stop(0, rgb(217,233,243)),color-stop(1, rgb(153,193,217))); background-image: -webkit-linear-gradient(top, rgb(217,233,243) 0%, rgb(153,193,217) 100%); background-image: -moz-linear-gradient(top, rgb(217,233,243) 0%, rgb(153,193,217) 100%); background-image: -ms-linear-gradient(top, rgb(217,233,243) 0%, rgb(153,193,217) 100%); background-image: -o-linear-gradient(top, rgb(217,233,243) 0%, rgb(153,193,217) 100%); background-image: linear-gradient(top, rgb(217,233,243) 0%, rgb(153,193,217) 100%); }
.ui-btn-icon-left .ui-icon { left: 22px; /* 原本為 10px */ } .ui-collapsible-heading a .ui-btn-inner { padding-left: 52px; /* 原本為 40px */ }
.ui-collapsible-set { margin: 0; /*原本是 margin: 0.5em 0;*/ }
.center-image { width: 1px; overflow: visible; margin: 0 auto; }
.center-image img { margin-left: -300px; }
.center-image img { margin-left: -300px; display: block; }