在实际应用中,有时候我们希望在一个主体的dashbaord中添加一个链接去引入它的一个相关的dashboard,如何添加这个链接:
...
<fieldset>
...
</fieldset>
<row>
<panel>
<html>
<div class="my-link">
<a href="http...." target="_blank">跳转至xxx dashboard</a>
</div>
</html>
</panel>
</row>
<row>
<panel>
<html>
<style>
.my-link{
border-radius: 5px;
bottom: 65px;
color: blue;
right: 8px;
padding: 5px 15px;
position: absolute;
z-index: 98;
width: 150px;
}
</style>
</html>
</panel>
</row>
由于splunk中无法按照我们自己的需求去实现在某个部位添加某个元素的功能,所以这里的超链接的定位也是通过css中的style来调试出合适的距离。