You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
543 B

5 years ago
# 修改平台LOGO
## js
```
// 顶部区域shortcut为"dec.header"
BI.Plugin.registerObject("dec.header", function (widget) {
// 取到logo对应的dom元素
var logo = widget.element.find("img");
// 添加类名
logo.addClass("plugin-logo");
});
```
## css
```
.plugin-logo {
cursor: pointer;
transform: rotate(0deg);
transition: transform .3s ease;
}
.plugin-logo:hover {
width: 30px !important;
height: 30px !important;
transform: rotate(180deg);
transition: transform .3s ease;
}
```
## 效果
![](../screenshorts/1.gif)