Antonariy
2007-02-06 12:26:21 UTC
I'm using WebBrowser control and Microsoft HTML Object Library in many
applications and I found some bugs. Most of them are fixed in latest version
of MSHTML, but this one persists.
I'm maiking an HTML table in VB like that:
t = "<table class='list'>"
For x=0 to y
t = t & "<tr>"
...
and so on. Then I'm settin this table to div's innerHTML -
lDiv.innerHTML = t
CSS class "list" looks like this (it is for keeping headers up in div with
overflow:auto like in DataGrid):
table.list th
{
background-color:Gray;
Z-INDEX: 2;
POSITION: relative;
TOP: expression(ParentDiv(this).scrollTop-2);
}
The problem is in rule "TOP". It is ignored. Expressions in rules don't work
after assigning html text to some innerHTML. But only under VB! It works
only in IE itself. Is it possible to fix this problem?
applications and I found some bugs. Most of them are fixed in latest version
of MSHTML, but this one persists.
I'm maiking an HTML table in VB like that:
t = "<table class='list'>"
For x=0 to y
t = t & "<tr>"
...
and so on. Then I'm settin this table to div's innerHTML -
lDiv.innerHTML = t
CSS class "list" looks like this (it is for keeping headers up in div with
overflow:auto like in DataGrid):
table.list th
{
background-color:Gray;
Z-INDEX: 2;
POSITION: relative;
TOP: expression(ParentDiv(this).scrollTop-2);
}
The problem is in rule "TOP". It is ignored. Expressions in rules don't work
after assigning html text to some innerHTML. But only under VB! It works
only in IE itself. Is it possible to fix this problem?