55143681 Posted March 3, 2022 Share Posted March 3, 2022 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. 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>") ; My question is : what is the priority between UniHTMLFrame->HTML and UniServerModule->CustomCss ? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 3, 2022 Share Posted March 3, 2022 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. Quote Link to comment Share on other sites More sharing options...
55143681 Posted March 3, 2022 Author Share Posted March 3, 2022 1 hour ago, Sherzod said: Hello, CSS classes declared inside UniHTMLFrame will not see CSS rules declared inside CustomCSS. Thank you very much,Sherzod. 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.