Jump to content

The priority between UniHTMLFrame->HTML and UniServerModule->CustomCss


55143681

Recommended Posts

I call "jsmind.css" to setup my page,but I find that:

if I call the code from  UniServerModule->CustomCss (files\jsmind-master\style\jsmind.css),

The page comes out abnormal.

2022-03-03_111044-abnormal.jpg.01af2a18513fa998040974a97f558afe.jpg

If I call some code to UniHTMLFrame->HTML,the page is normal.

UniHTMLFrame1->HTML->Add("<!doctype html>") ;
UniHTMLFrame1->HTML->Add("<html>") ;
UniHTMLFrame1->HTML->Add("<head>") ;
UniHTMLFrame1->HTML->Add("    <meta charset=\"utf-8\">") ;
UniHTMLFrame1->HTML->Add("    <meta http-equiv=\"Content-Type\" content=\"text/html\"; charset=\"utf-8\">") ;
UniHTMLFrame1->HTML->Add("    <title>我的年度计划思维导图</title>") ;
UniHTMLFrame1->HTML->Add("    <link type=\"text/css\" rel=\"stylesheet\" href=\"files/jsmind-master/style/jsmind.css\" />") ;
UniHTMLFrame1->HTML->Add("    <style type=\"text/css\">") ;
UniHTMLFrame1->HTML->Add("        #jsmind_container{") ;
UniHTMLFrame1->HTML->Add("            width:800px;") ;
UniHTMLFrame1->HTML->Add("            height:500px;") ;
UniHTMLFrame1->HTML->Add("            border:solid 1px #ccc;") ;
UniHTMLFrame1->HTML->Add("            background:#f4f4f4;") ;
UniHTMLFrame1->HTML->Add("        }") ;
UniHTMLFrame1->HTML->Add("    </style>") ;
UniHTMLFrame1->HTML->Add("</head>") ;

2022-03-03_111122normal.jpg.2f118e63f3c535df362ec12f8ac30c4e.jpg

 

 

My question is :

what is the priority between UniHTMLFrame->HTML and UniServerModule->CustomCss ?

 

 

Link to comment
Share on other sites

56 minutes ago, 55143681 said:

My question is :

what is the priority between UniHTMLFrame->HTML and UniServerModule->CustomCss ?

Hello,

CSS classes declared inside UniHTMLFrame will not see CSS rules declared inside CustomCSS.

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