举个例子
<!DOCTYPE html>
<html>
<link rel="stylesheet" href="//cdn.bootcss.com/uikit/2.25.0/css/uikit.css" />
<script src="http://libs.baidu.com/jquery/1.11.1/jquery.min.js">
</script>
<script src="//cdn.bootcss.com/uikit/2.25.0/js/uikit.js"></script>
<body>
<button class="uk-button uk-button-primary" type:"button">button1</button>
<button class="uk-button uk-button-success " type:"button">button2</button>
<button class="uk-button uk-button-danger" type:"button">button3</button>
</body>
</html>
效果如下
注意:
如果同一元素有多个class属性,那么把这多个属性写在一起,中间用空格隔开,之后用引号引起来。