1.进入css界面,添加一个手动的最小化按钮样式
![](https://img.kancloud.cn/32/6b/326b2455ffdd79a67ba68a27bf61601f_864x955.png =x574)
![](https://img.kancloud.cn/2d/93/2d939f80f59dc5973cb3d8c045e76f76_864x673.png =x500)
2.最大化按钮和关闭按钮使用相同的方法创建并设置背景,这里就不再演示了
![](https://img.kancloud.cn/98/41/98414265bd2f5b132ae20ed611109401_864x338.png =x293)
3.按钮应用CSS,这里三个按钮是一样子的,修改按钮的类型,然后设置按钮的背景
![](https://img.kancloud.cn/78/ea/78ea80573f8e0d801a709c3a2180a6d9_864x960.png =x500)
![](https://img.kancloud.cn/ec/9e/ec9e6fe82cd2b4a50a0042d40a6bd3bf_864x565.png =x500)
## **火山加载**
1.保存修改后,打包,使用火山加载,这里我们不需要给这三个按钮起名称,甚至不需要在火山中取按钮对象的句柄,因为我们设置他们的按钮类型为最小化,最大化,关闭之后,程序内部会自行处理他们的事件。
2.来看一下预览图吧,这里我们不需要增加任何代码。本文到这里就结束啦。
![](https://img.kancloud.cn/70/82/708219be28c1549a025814d031b8d81c_864x630.png =x500)