cgarrotti Posted August 23, 2021 Share Posted August 23, 2021 TUniHTMLFrame does not accept CSS colour background I´m trying setting the background colour with css but does not work, does have any property to set on TUniHTMLFrame ? I tried load this html: <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en"> <head> <style> body { background-color: #00f000; color:rgb(233, 7, 7); } </style> </head> <body> <div style="text-align:center;background-color: #999;">Hello World!</div> </body> </html> Quote Link to comment Share on other sites More sharing options...
MVakili Posted September 8, 2021 Share Posted September 8, 2021 AHtmlFrame.JSInterface.JSCall('setBodyStyle', ['background', 'linear-gradient(to top, Ivory, AntiqueWhite )']); Quote Link to comment Share on other sites More sharing options...
Sherzod Posted September 8, 2021 Share Posted September 8, 2021 55 minutes ago, MVakili said: AHtmlFrame.JSInterface.JSCall('setBodyStyle', ['background', 'linear-gradient(to top, Ivory, AntiqueWhite )']); Hello, Can you check this approach? Quote Link to comment Share on other sites More sharing options...
MVakili Posted September 8, 2021 Share Posted September 8, 2021 56 minutes ago, Sherzod said: Hello, Can you check this approach? I didnt get what you mean dear sherzod but I painting all of my frames by this statment TUniHTMLFrame(Components[CI]).JSInterface.JSCall('setBodyStyle', ['background', 'linear-gradient(to top, Ivory, AntiqueWhite )']); Quote Link to comment Share on other sites More sharing options...
Sherzod Posted September 8, 2021 Share Posted September 8, 2021 30 minutes ago, MVakili said: I didnt get what you mean dear sherzod but I painting all of my frames by this statment I'm sorry, I thought you asked a question. Sorry. Quote Link to comment Share on other sites More sharing options...
MVakili Posted September 8, 2021 Share Posted September 8, 2021 its ok tank you Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.