作者:sonichuang
版本:v.1
依赖:mocha.css
1 2 3
| <p> <a href="javascript:;" class="mocha-button mocha-button-scheme1 mocha-button-skin1">主按钮</a> </p>
|
1 2 3 4
| <p> <a href="javascript:;" class="mocha-button mocha-button-scheme2 mocha-button-skin1">次按钮1</a> <a href="javascript:;" class="mocha-button mocha-button-scheme2 mocha-button-skin1">次按钮2</a> </p>
|
1 2 3 4 5
| <p> <a href="javascript:;" class="mocha-button mocha-button-scheme3 mocha-button-skin1">次按钮1</a> <a href="javascript:;" class="mocha-button mocha-button-scheme3 mocha-button-skin1">次按钮2</a> <a href="javascript:;" class="mocha-button mocha-button-scheme3 mocha-button-skin1 mocha-button-disable">次按钮3</a> </p>
|
1 2 3 4 5 6
| <p> <a href="javascript:;" class="mocha-button mocha-button-scheme4 mocha-button-skin1">按钮1</a> <a href="javascript:;" class="mocha-button mocha-button-scheme4 mocha-button-skin1">按钮2</a> <a href="javascript:;" class="mocha-button mocha-button-scheme4 mocha-button-skin1">按钮3</a> <a href="javascript:;" class="mocha-button mocha-button-scheme4 mocha-button-skin1 mocha-button-disable">按钮4</a> </p>
|
修改模块皮肤CSS
模块的默认皮肤类.mocha-button-skin1
,您可以在您项目的page.css
里修改.mocha-button-skin1
皮肤类,或者新增.mocha-button-skin2
。
1 2 3 4
| .mocha-button-skin1{font-size:0.16rem;color: #fff;background-color: #ee3e45;border-radius:0.032rem;box-shadow:inset 0 -0.03rem 0 #be3237;} .mocha-button-skin1:active{background-color: #be3237;box-shadow:inset 0 0.03rem 0 #9d2c2c;} .mocha-button-skin1.mocha-button-disable{background-color: #898989;box-shadow:inset 0 -0.03rem 0 #6f6f6f;}
|