Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Position relative ignored in innerHTML
Message
De
26/02/2017 12:43:13
 
 
À
26/02/2017 11:24:45
Information générale
Forum:
CSS
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01648528
Message ID:
01648539
Vues:
49
This message has been marked as the solution to the initial question of the thread.
>>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

Sorry: "[...] top: 10px; right: 10px;[...]".
----------------------------------
António Tavares Lopes
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform