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.

22 lines
507 B

6 years ago
# 修改平台标题
js
```
// 顶部区域shortcut为"dec.header"
BI.Plugin.registerObject("dec.header", function (widget) {
// 创建一个<a>标签
var link = $("<a class='plugin-title' href=\"http://www.w3school.com.cn\">点击跳转到w3school</a>");
// 替换掉平台原有文字标题
var left = widget.element.children();
link.replaceAll(left.children()[1]);
});
```
css
```
.plugin-title {
font-size: 20px;
display: block;
text-decoration: none;
color: bisque;
}
```