收錄實戰高頻 UI 元件樣式:按鈕(多色系)、輸入框(單行/多行/無邊框/底線)、下拉選單、表單陰影、頁面基調,可直接拷貝調整投入生產。
.buttoncss.buttoncss {
font-family: Tahoma, "微軟雅黑", sans-serif;
font-size: 9pt; color: #003399;
border: 1px solid #003399;
background: #e8f4ff url(../images/bluebuttonbg.gif) repeat-x;
cursor: pointer; /* 標準手型 */
width: 60px; height: 22px;
}
.bluebuttoncss.bluebuttoncss {
font: 9pt Tahoma, "微軟雅黑";
color: #003366;
border: 1px solid #93bee2;
background: #fff url(../images/blue_button_bg.gif) repeat-x;
cursor: pointer;
}
.redbuttoncss.redbuttoncss {
font: 9pt Tahoma, "微軟雅黑";
color: #0066cc;
border: 1px solid #93bee2;
background: #fff url(../images/redbuttonbg.gif) repeat-x;
cursor: pointer;
}
.selectbuttoncss.selectbuttoncss {
font: 9pt Tahoma, "微軟雅黑";
color: #0066cc;
border: 1px solid #93bee2;
background: #fff url(../images/blue_button_bg.gif) repeat-x;
cursor: pointer;
}
.greenbuttoncss.greenbuttoncss {
font: 9pt Tahoma, "微軟雅黑";
color: #0066cc;
border: 1px solid #93bee2;
background: #fff url(../images/greenbuttonbg.gif) repeat-x;
cursor: pointer;
}
.imagebutton.imagebutton { cursor: pointer; }
配合 <input type="image"> 或 <button><img/></button> 使用。
bodybody {
font-size: 9pt; color: #003366;
scrollbar-face-color: #ededf3; /* IE 專有滾動條美化 */
scrollbar-highlight-color: #fff;
scrollbar-shadow-color: #93949f;
scrollbar-3dlight-color: #ededf3;
scrollbar-arrow-color: #082468;
scrollbar-track-color: #f7f7f9;
scrollbar-darkshadow-color: #ededf3;
overflow: auto;
}
td, th { font-size: 12px; }
selectselect {
font-size: 12px; color: #003366;
border: 1px solid #000;
border-top-color: #fff; border-left-color: #fff;
background: #f4f4f4;
}
.editbox.editbox {
background: #fff;
border: 1px solid #b7b7b7;
color: #003366;
font: 9pt Arial;
height: 18px; padding: 1px;
cursor: text;
}
.multieditbox.multieditbox {
background: #f8f8f8;
border: 1px solid #b7b7b7;
color: #000;
font: 9pt Arial;
padding: 1px;
cursor: text;
}
.shadow(IE 濾鏡).shadow {
position: absolute; z-index: 1000;
top: 0; left: 0;
background: #ffcc00;
filter: progid:DXImageTransform.Microsoft.DropShadow(color=#404040, offx=2, offy=2, positive=true);
}
.logintxt.logintxt {
border: none;
border-bottom: 1px solid #c0c0c0;
background: #fff;
font-size: 9pt;
}
.noneinput.noneinput {
border: none;
background: #f6f6f6;
text-align: center;
width: 99%; height: 99%;
}
<button> 而非 <input>,語義更佳、支援圖標嵌套box-sizing:border-box,避免 padding 撐大:root { --primary:#0066cc; }::-webkit-scrollbar / scrollbar-colorbox-shadow 替代 IE 濾鏡