帆软报表-frm报表,报表块作为标题 下划线特效
效果:
设置方法:
setTimeout(function () {
var code = ‘.sideline:before{content : “”;width:100%;height:2px;display:block;position:relative;top:8px;} .sideline:before{background:radial-gradient(#2AFCF5 -10%, #090e27 100%)}}‘;
var style = document.createElement(‘style’);
style.type = ‘text/css’;
style.rel = ‘stylesheet’;
try {
//for Chrome Firefox Opera Safari
style.appendChild(document.createTextNode(code));
} catch (ex) {
//for IE
style.styleSheet.cssText = code;
}
var head = document.getElementsByTagName(‘head’)[0];
head.appendChild(style);
var d = document.getElementsByTagName(“table”)[0].rows[1];
d.setAttribute(‘class’, ‘sideline’);
}, 1000)
ps:报表块的[n] 是根据报表块拖进的先后 作为下标的
还没有评论,来说两句吧...