AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Netzwerke Delphi I can't change body style attribute
Thema durchsuchen
Ansicht
Themen-Optionen

I can't change body style attribute

Ein Thema von mr_fahrrad · begonnen am 4. Jan 2007 · letzter Beitrag vom 4. Jan 2007
Antwort Antwort
mr_fahrrad

Registriert seit: 28. Dez 2006
46 Beiträge
 
#1

I can't change body style attribute

  Alt 4. Jan 2007, 19:14
I need to change the body atribute style to background-attachment: fixed (to show background image)

IHTMldocument2(WebBrowser1.Document).body.setAttribute('style', 'background-attachment: fixed',0); but it does not work!! the style cant change (dont alter body tag in source code), but if I type something like 'styleE' then the attribute 'styleE' appers in source code...

so.. how I make to chance style of body tag? (prefer using setAttribute)

Thanks!
  Mit Zitat antworten Zitat
mr_fahrrad

Registriert seit: 28. Dez 2006
46 Beiträge
 
#2

Re: I can't change body style attribute

  Alt 4. Jan 2007, 19:20
I found the solution:

WebBrowser1.OleObject.Document.Body.Style.cssText:='background-attachment: fixed';
The code above works
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 20:44 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz