@@ -38,40 +38,40 @@ <h1>附加组件</h1>
3838 < h2 > 按钮</ h2 >
3939 </ div >
4040 < div class ="section-content ">
41- < p > 给 a 元素、input 按钮元素或 button 元素添加“ btn” 类,即可让此元素变成一个按钮。</ p >
41+ < p > 给 < code > a </ code > 元素、< code > input</ code > 按钮元素或 < code > button</ code > 元素添加 < code > btn</ code > 类,即可让此元素变成一个按钮。</ p >
4242 < p >
4343 < input class ="btn " type ="button " value ="input 按钮 "/>
4444 < button class ="btn "> button 按钮</ button >
4545 < a class ="btn "> a 按钮</ a >
4646 </ p >
47- < pre > < code > <input class="btn" type="button" value="input 按钮"/>
47+ < pre > <input class="btn" type="button" value="input 按钮"/>
4848<button class="btn">button 按钮</button>
49- <a class="btn">a 按钮</a></ code > </ pre >
50- < p > 给按钮添加类" small"和" large"可以实现小按钮和大按钮 </ p >
49+ <a class="btn">a 按钮</a></ pre >
50+ < p > 给按钮添加 < code > small</ code > 和 < code > large</ code > 扩展类,可以使按钮变小和变大。 </ p >
5151 < p >
5252 < button class ="btn small "> 按钮(小)</ button >
5353 < button class ="btn "> 按钮(一般)</ button >
5454 < button class ="btn large "> 按钮(大)</ button >
5555 </ p >
56- < pre > < code > <button class="btn small">按钮(小)</button>
56+ < pre > <button class="btn small">按钮(小)</button>
5757<button class="btn">按钮(一般)</button>
58- <button class="btn large">按钮(大)</button></ code > </ pre >
59- < p > 添加“ red”,“ yellow”,“ blue”,“ green” 类可以让按钮变成 红/黄/蓝/绿 的颜色</ p >
58+ <button class="btn large">按钮(大)</button></ pre >
59+ < p > 给按钮添加 < code > red</ code > , < code > yellow</ code > , < code > blue</ code > , < code > green</ code > 类可以让按钮变成 红/黄/蓝/绿 的颜色</ p >
6060 < p >
6161 < button class ="btn red "> 一枚红色按钮</ button >
6262 < button class ="btn yellow "> 一枚黄色按钮</ button >
6363 < button class ="btn blue "> 一枚蓝色按钮</ button >
6464 < button class ="btn green "> 一枚绿色按钮</ button >
6565 </ p >
66- < pre > < code > <button class="btn red">一枚红色按钮</button>
66+ < pre > <button class="btn red">一枚红色按钮</button>
6767<button class="btn yellow">一枚黄色按钮</button>
6868<button class="btn blue">一枚蓝色按钮</button>
69- <button class="btn green">一枚绿色按钮</button></ code > </ pre >
69+ <button class="btn green">一枚绿色按钮</button></ pre >
7070 < p > 禁用的按钮:</ p >
7171 < p >
7272 < button class ="btn red " disabled > 禁用的按钮</ button >
7373 </ p >
74- < pre > < code > </ code > <button class="btn red" disabled>禁用的按钮</button></ pre >
74+ < pre > <button class="btn red" disabled>禁用的按钮</button></ pre >
7575 </ div >
7676 </ section >
7777 < section id ="forms ">
@@ -80,13 +80,17 @@ <h2>表单</h2>
8080 </ div >
8181 < div class ="section-content ">
8282 < div class ="bk-form ">
83- < label > 活动的文本框:< input value ="2333 " title ="2333 "/> </ label >
84- < label > 禁用的文本框:< input value ="2333 " title ="2333 " disabled /> </ label >
85- < label > 只读的文本框:< input value ="2333 " title ="2333 " readonly /> </ label >
86- < label > 带按钮的文本框:< input value ="2333 " title ="2333 "/> < button class ="btn small blue "> 提交</ button > </ label >
87- < label > < input type ="checkbox "/> 多选选项</ label >
88- < label > < input type ="radio "/> 单选选项</ label >
89- < label > 滑动条:< input type ="range " name ="points " min ="1 " max ="10 " value ="5 "/> </ label >
83+ < div class ="bk-form-group ">
84+ < label > 活动的文本框:< input type ="text " value ="2333 " title ="2333 "/> </ label >
85+ < label > 禁用的文本框:< input type ="text " value ="2333 " title ="2333 " disabled /> </ label >
86+ < label > 只读的文本框:< input type ="text " value ="2333 " title ="2333 " readonly /> </ label >
87+ < label class ="submit "> 带按钮的文本框:< input type ="text " value ="2333 " title ="2333 "/> < button class ="btn small blue "> 提交</ button > </ label >
88+ < label > < input type ="checkbox "/> 多选选项</ label >
89+ < label > < input type ="radio "/> 单选选项</ label >
90+ < label > 滑动条:< input type ="range " name ="points " min ="1 " max ="10 " value ="5 "/> </ label >
91+ < label > 滑动按钮:< div class ="sw-btn "> </ div > </ label >
92+ < textarea placeholder ="自定义文本框 "> </ textarea >
93+ </ div >
9094 </ div >
9195 </ div >
9296 </ section >
@@ -110,7 +114,7 @@ <h3>单行:</h3>
110114 < label > < input type ="radio " name ="radio "/> 单选选项 3</ label >
111115 </ div >
112116 </ form >
113- < pre > < code > <form class="bk-form">
117+ < pre > <form class="bk-form">
114118 <h3>多行:</h3>
115119 <div class="bk-form-group">
116120 <label><input type="checkbox"/>多选选项 1</label>
@@ -123,7 +127,7 @@ <h3>单行:</h3>
123127 <label><input type="radio" name="radio"/>单选选项 2</label>
124128 <label><input type="radio" name="radio"/>单选选项 3</label>
125129 </div>
126- </form></ code > </ pre >
130+ </form></ pre >
127131 </ div >
128132 </ section >
129133 < section id ="alert ">
@@ -133,24 +137,24 @@ <h2>弹框与遮罩</h2>
133137 < div class ="section-content ">
134138 < blockquote > PS:弹框与遮罩采用了 Kico Style 内置的动画,如果您未使用内置的动画,则失去相应效果。</ blockquote >
135139 < p > < a class ="btn blue " onclick ="overlay_test_a() "> 点击弹出遮罩,并设定在3秒后删除</ a > </ p >
136- < pre > < code > overlay(3000);</ code > </ pre >
140+ < pre > <script> overlay(3000);</script> </ pre >
137141 < br />
138142 < blockquote > PS:这段代码等价于“alert_box("这是一个弹窗测试", 1000, true);”</ blockquote >
139143 < p > < a class ="btn blue " onclick ="alert_test_a() "> 点击弹出弹窗,弹出遮罩,并设定在1秒后删除</ a > </ p >
140- < pre > < code > alert_box("这是一个弹窗测试", 1000);</ code > </ pre >
144+ < pre > <script> alert_box("这是一个弹窗测试", 1000);</script> </ pre >
141145 < br />
142146 < p > < a class ="btn blue " onclick ="alert_test_b() "> 点击弹出弹窗,并设定在1秒后删除</ a > </ p >
143- < pre > < code > alert_box("这是一个弹窗测试", 1000, false);</ code > </ pre >
147+ < pre > <script> alert_box("这是一个弹窗测试", 1000, false);</script> </ pre >
144148 < br />
145- < blockquote > PS:可使用 " red"、" yellow"、" blue"、" green" 类名,实现不同颜色的弹窗</ blockquote >
149+ < blockquote > PS:可使用 < code > red</ code > 、 < code > yellow</ code > 、 < code > blue</ code > 、 < code > green</ code > 类名,实现不同颜色的弹窗</ blockquote >
146150 < p > < a class ="btn blue " onclick ="alert_test_c() "> 点击弹出绿色弹窗,并设定在1秒后删除</ a > </ p >
147- < pre > < code > alert_box("这是一个弹窗测试", 1000, true, "green");</ code > </ pre >
151+ < pre > <script> alert_box("这是一个弹窗测试", 1000, true, "green");</script> </ pre >
148152 < div class ="bk-table ">
149- < table >
153+ < table class =" border " >
150154 < thead >
151155 < tr >
152- < td > 参数</ td >
153- < td > 说明</ td >
156+ < th > 参数</ th >
157+ < th > 说明</ th >
154158 </ tr >
155159 </ thead >
156160 < tbody >
0 commit comments