日韩无码专区无码一级三级片|91人人爱网站中日韩无码电影|厨房大战丰满熟妇|AV高清无码在线免费观看|另类AV日韩少妇熟女|中文日本大黄一级黄色片|色情在线视频免费|亚洲成人特黄a片|黄片wwwav色图欧美|欧亚乱色一区二区三区

RELATEED CONSULTING
相關(guān)咨詢
選擇下列產(chǎn)品馬上在線溝通
服務(wù)時(shí)間:8:30-17:00
你可能遇到了下面的問題
關(guān)閉右側(cè)工具欄

新聞中心

這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
Web表單美化CSS框架Topcoat

Topcoat同樣是一款簡潔的Web表單構(gòu)建應(yīng)用,和Semantic UI、BootMetro等CSS框架不同的是,Topcoat主要用于構(gòu)建美化的Web表單,包括提交按鈕、輸入框、單選框/復(fù)選框、滑動桿、搜索框等表單元素。

創(chuàng)新互聯(lián)技術(shù)團(tuán)隊(duì)十載來致力于為客戶提供網(wǎng)站建設(shè)、成都做網(wǎng)站、品牌網(wǎng)站制作、網(wǎng)絡(luò)營銷推廣、搜索引擎SEO優(yōu)化等服務(wù)。經(jīng)過多年發(fā)展,公司擁有經(jīng)驗(yàn)豐富的技術(shù)團(tuán)隊(duì),先后服務(wù)、推廣了數(shù)千家網(wǎng)站,包括各類中小企業(yè)、企事單位、高校等機(jī)構(gòu)單位。

Topcoat的特點(diǎn)

  • 小巧、簡單、易用

  • 專注表單元素設(shè)計(jì),每一個(gè)表單元素都非常精美

  • 支持移動化,讓這些表單元素在移動端同樣有著不錯的效果

Topcoat相關(guān)組件實(shí)例

按鈕

以藍(lán)色按鈕為例,相關(guān)代碼如下:

HTML

 
 
  1. Button
  2. Button
  3. CSS
  4. .topcoat-button--large--cta {
  5.   font-size: 0.875rem;
  6.   font-weight: 600;
  7.   line-height: 1.688rem;
  8.   padding: 0 0.875rem;
  9. }
  10. input[type="checkbox"] {
  11.   position: absolute;
  12.   overflow: hidden;
  13.   padding: 0;
  14.   border: 0;
  15.   opacity: 0.001;
  16.   z-index: 1;
  17.   vertical-align: top;
  18.   outline: none;
  19. }
  20. .checkbox {
  21.   -moz-box-sizing: border-box;
  22.   box-sizing: border-box;
  23.   background-clip: padding-box;
  24.   position: relative;
  25.   display: inline-block;
  26.   vertical-align: top;
  27.   cursor: default;
  28.   -webkit-user-select: none;
  29.   -moz-user-select: none;
  30.   -ms-user-select: none;
  31.   user-select: none;
  32. }
  33. .checkbox__label {
  34.   position: relative;
  35.   display: inline-block;
  36.   vertical-align: top;
  37.   cursor: default;
  38.   -webkit-user-select: none;
  39.   -moz-user-select: none;
  40.   -ms-user-select: none;
  41.   user-select: none;
  42. }
  43. .checkbox--disabled {
  44.   opacity: 0.3;
  45.   cursor: default;
  46.   pointer-events: none;
  47. }
  48. .checkbox:before,
  49. .checkbox:after {
  50.   content: '';
  51.   position: absolute;
  52. }
  53. .checkbox:before {
  54.   -moz-box-sizing: border-box;
  55.   box-sizing: border-box;
  56.   background-clip: padding-box;
  57. }
  58. input[type="checkbox"] {
  59.   position: absolute;
  60.   overflow: hidden;
  61.   padding: 0;
  62.   border: 0;
  63.   opacity: 0.001;
  64.   z-index: 1;
  65.   vertical-align: top;
  66.   outline: none;
  67. }
  68. .checkbox,
  69. .topcoat-checkbox__checkmark {
  70.   -moz-box-sizing: border-box;
  71.   box-sizing: border-box;
  72.   background-clip: padding-box;
  73.   position: relative;
  74.   display: inline-block;
  75.   vertical-align: top;
  76.   cursor: default;
  77.   -webkit-user-select: none;
  78.   -moz-user-select: none;
  79.   -ms-user-select: none;
  80.   user-select: none;
  81. }
  82. .checkbox__label,
  83. .topcoat-checkbox {
  84.   position: relative;
  85.   display: inline-block;
  86.   vertical-align: top;
  87.   cursor: default;
  88.   -webkit-user-select: none;
  89.   -moz-user-select: none;
  90.   -ms-user-select: none;
  91.   user-select: none;
  92. }
  93. .checkbox--disabled,
  94. input[type="checkbox"]:disabled + .topcoat-checkbox__checkmark {
  95.   opacity: 0.3;
  96.   cursor: default;
  97.   pointer-events: none;
  98. }
  99. .checkbox:before,
  100. .checkbox:after,
  101. .topcoat-checkbox__checkmark:before,
  102. .topcoat-checkbox__checkmark:after {
  103.   content: '';
  104.   position: absolute;
  105. }
  106. .checkbox:before,
  107. .topcoat-checkbox__checkmark:before {
  108.   -moz-box-sizing: border-box;
  109.   box-sizing: border-box;
  110.   background-clip: padding-box;
  111. }

單選框/復(fù)選框

以單選框?yàn)槔?,相關(guān)代碼如下:

 
 
  1. HTML
  2.   
  3.   


  •   Left label
  •   
  •   


  •   
  •   
  •   Right label


  •   
  •   
  •   Disabled
  • CSS:
  • input[type="radio"] {
  •   height: 1.063rem;
  •   width: 1.063rem;
  •   margin-top: 0;
  •   margin-right: -1.063rem;
  •   margin-bottom: -1.063rem;
  •   margin-left: 0;
  • }
  • input[type="radio"]:checked + .topcoat-radio-button__checkmark:after {
  •   opacity: 1;
  • }
  • .topcoat-radio-button {
  •   color: #c6c8c8;
  •   line-height: 1.063rem;
  • }
  • .topcoat-radio-button__checkmark:before {
  •   width: 1.063rem;
  •   height: 1.063rem;
  •   background: #595b5b;
  •   border: 1px solid #333434;
  •   box-shadow: inset 0 1px #737373;
  • }
  • .topcoat-radio-button__checkmark {
  •   position: relative;
  •   width: 1.063rem;
  •   height: 1.063rem;
  • }
  • .topcoat-radio-button__checkmark:after {
  •   opacity: 0;
  •   width: 0.313rem;
  •   height: 0.313rem;
  •   background: #c6c8c8;
  •   border: 1px solid rgba(0,0,0,0.05);
  •   box-shadow: 0 1px rgba(255,255,255,0.1);
  •   -webkit-transform: none;
  •   -ms-transform: none;
  •   transform: none;
  •   top: 0.313rem;
  •   left: 0.313rem;
  • }
  • input[type="radio"]:focus + .topcoat-radio-button__checkmark:before {
  •   border: 1px solid #0036ff;
  •   box-shadow: inset 0 1px rgba(255,255,255,0.36), 0 0 0 2px #6fb5f1;
  • }
  • input[type="radio"]:active + .topcoat-radio-button__checkmark:before {
  •   border: 1px solid #333434;
  •   background-color: #3f4041;
  •   box-shadow: inset 0 1px rgba(0,0,0,0.05);
  • }
  • input[type="radio"]:disabled:active + .topcoat-radio-button__checkmark:before {
  •   border: 1px solid #333434;
  •   background: #595b5b;
  •   box-shadow: inset 0 1px #737373;
  • }
  • .range {
  •   padding: 0;
  •   margin: 0;
  •   font: inherit;
  •   color: inherit;
  •   background: transparent;
  •   border: none;
  •   -moz-box-sizing: border-box;
  •   box-sizing: border-box;
  •   background-clip: padding-box;
  •   vertical-align: top;
  •   outline: none;
  •   -webkit-appearance: none;
  • }
  • .range__thumb {
  •   cursor: pointer;
  • }
  • .range__thumb--webkit {
  •   cursor: pointer;
  •   -webkit-appearance: none;
  • }
  • .range:disabled {
  •   opacity: 0.3;
  •   cursor: default;
  •   pointer-events: none;
  • }
  • .range,
  • .topcoat-range {
  •   padding: 0;
  •   margin: 0;
  •   font: inherit;
  •   color: inherit;
  •   background: transparent;
  •   border: none;
  •   -moz-box-sizing: border-box;
  •   box-sizing: border-box;
  •   background-clip: padding-box;
  •   vertical-align: top;
  •   outline: none;
  •   -webkit-appearance: none;
  • }
  • .range__thumb,
  • .topcoat-range::-moz-range-thumb {
  •   cursor: pointer;
  • }
  • .range__thumb--webkit,
  • .topcoat-range::-webkit-slider-thumb {
  •   cursor: pointer;
  •   -webkit-appearance: none;
  • }
  • .range:disabled,
  • .topcoat-range:disabled {
  •   opacity: 0.3;
  •   cursor: default;
  •   pointer-events: none;
  • }
  • 更多關(guān)于Topcoat的組件,大家可以前往其官方網(wǎng)站進(jìn)行學(xué)習(xí)。


    文章題目:Web表單美化CSS框架Topcoat
    文章網(wǎng)址:http://www.5511xx.com/article/cdsoodp.html