Jump to content

TUniHTMLFrame does not accept CSS colour background


cgarrotti

Recommended Posts

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(23377);
}
</style>
 
</head>
 
<body>
 <div style="text-align:center;background-color: #999;">Hello World!</div>
</body>
 
</html>
 
Link to comment
Share on other sites

  • 3 weeks later...
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 )']);

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...