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

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...