thead > tr background-image disappearing IE lte 7
thead > tr background-image disappearing IE lte 7
I've added a background-image and styles to the header row of the database. This because the sorting images are added to the th cell so i couldn't apply it there. it does work in other browsers but not in IE lte 7.
Here's my code:
[code]
$('#<%=grdFacturen.ClientID %>').dataTable({
"bAutoWidth": false,
"bJQueryUI": false,
"bPaginate": true,
"aaSorting": [ [1, 'desc'] ],
"bFilter": navigator.appName != "Opera",
"sPaginationType": "full_numbers"
});
[/code]
I've tried to add them afterwords but thats not working
[code]
"fnDrawCallback": function() {
//alert( 'DataTables has redrawn the table' );
$('thead:eq(0)>tr').css('background-image', 'url("<%=ResolveUrl("images/table_bg.gif")%>")');
$('thead:eq(0)>tr').css('background-repeat', 'repeat-x');
$('thead:eq(0)>tr').css('background-position', 'top left');
}
[/code]
Here's my CSS:
[code]
.DataTable thead tr
{
background-image: url("../images/table_bg.gif");
background-repeat: repeat-x;
background-position: top left;
}
[/code]
I've also tried a seperate class with the styles but thats also not working in IE lte 7.
Does anybody have an idea?
Ps: I added the datatables to a DotNetNuke module (C#.NET)
Here's my code:
[code]
$('#<%=grdFacturen.ClientID %>').dataTable({
"bAutoWidth": false,
"bJQueryUI": false,
"bPaginate": true,
"aaSorting": [ [1, 'desc'] ],
"bFilter": navigator.appName != "Opera",
"sPaginationType": "full_numbers"
});
[/code]
I've tried to add them afterwords but thats not working
[code]
"fnDrawCallback": function() {
//alert( 'DataTables has redrawn the table' );
$('thead:eq(0)>tr').css('background-image', 'url("<%=ResolveUrl("images/table_bg.gif")%>")');
$('thead:eq(0)>tr').css('background-repeat', 'repeat-x');
$('thead:eq(0)>tr').css('background-position', 'top left');
}
[/code]
Here's my CSS:
[code]
.DataTable thead tr
{
background-image: url("../images/table_bg.gif");
background-repeat: repeat-x;
background-position: top left;
}
[/code]
I've also tried a seperate class with the styles but thats also not working in IE lte 7.
Does anybody have an idea?
Ps: I added the datatables to a DotNetNuke module (C#.NET)
This discussion has been closed.
Replies
nearly like this it is working for me:
[code]
table.display thead tr {
background: url(../images/table_bg.gif) repeat-x top left;
}
[/code]
Regards
Achlan.
[code]
$('#<%=grdFacturen.ClientID %>').dataTable({
"bAutoWidth": false,
"bJQueryUI": false,
"bPaginate": true,
"aaSorting": [ [1, 'desc'] ],
"bFilter": navigator.appName != "Opera",
"sPaginationType": "full_numbers",
"fnInitComplete": function() {
$("table.display thead tr").css("background":"url(../images/table_bg.gif) repeat-x top left");
}
});
[/code]
Regards,
Allan
[code]
.DataTable
{
background-image: url("../images/table_bg.gif");
background-repeat: repeat-x;
background-position: top left;
}
[/code]