Jump to content

How to remove <body> css style


i2u4ever

Recommended Posts

Create new uniGUI Application,

complie and run.

At the browser, 127.0.0.1:8077

and see view-source of it.

In this source,  you can see

 

<style type="text/css">.x-viewport > .x-body {position:relative !important;}</style>

<style type="text/css">body {overflow-y: hidden !important;}</style>

 

This may be default.

How to remove or clear the body style, 

<style type="text/css">body {overflow-y: hidden !important;}</style>
 

I use FMSoft_uniGUI_Complete_Professional_1.50.0.1480.exe

 

Link to comment
Share on other sites

Hello,

As a workaround, try for now (and need to analyze why it is added...)

MainForm -> Script:

document.getElementsByTagName('head')[0].childNodes.forEach(function(el){if (el.tagName=="STYLE" && el.innerHTML=="body {overflow-y: hidden !important;}") el.innerHTML=""});

 

Link to comment
Share on other sites

Thanks, it works fine.

And I want to make  the Browser scroll(vertical).

Which is better?

(1) UniServerModule->CustomCSS->Add  :  body    {overflow-y:scroll !important;}

(2)MainForm->Script->Add :

 document.getElementsByTagName('head')[0].childNodes.forEach(function(el){if (el.tagName=="STYLE" && el.innerHTML=="body {overflow-y: hidden !important;}") el.innerHTML="body {overflow-y: scroll !important;}"});

 

Either CSS or Script works fine. Browser scrolls vertical.

Which is better?

 

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...