Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Position relative ignored in innerHTML
Message
De
26/02/2017 11:24:45
 
 
À
26/02/2017 03:01:04
Information générale
Forum:
CSS
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01648528
Message ID:
01648535
Vues:
25
>I think that the style element must be a child of head, so putting it in innerHTML of a body descendant element won't work.
>
>You can apply inline styling, though, so it would be something like this:
>
>
>window.parent.oDiv.innerHTML = "<div style='position: relative;'><div style='position: absolute; top: 10; right: 10;'>Test</div></div>";
>
Going inline does not change anything.

But, thanks for the suggestion
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform