2014-10-28 3 views
0

getOrgchart를 사용하여 getOrgChart에서 색상 및 글꼴 크기를 변경하려고 시도 했으므로 상자의 이름이 잘리지 않습니다. 또한 페이지 배경 색상과 상자 색상getOrgChart font size change

감사

답변

0

이 코드 조각 아래

\t $("#people").getOrgChart({ \t \t \t 
 
\t \t theme: "monica", 
 
\t \t primaryColumns: ["name", "title"], 
 
\t \t gridView: true, 
 
\t \t dataSource: [ 
 
\t \t \t { id: 1, parentId: null, name: "Amber McKenzie Field", title: "CEO", phone: "678-772-470", mail: "[email protected]", adress: "Atlanta, GA 30303" }, 
 
\t \t \t { id: 2, parentId: 1, name: "Ava Field", title: "Paper goods machine setter", phone: "937-912-4971", mail: "[email protected]" }, 
 
\t \t \t { id: 3, parentId: 1, name: "Evie Johnson", title: "Employer relations representative", phone: "314-722-6164", mail: "[email protected]"} 
 
\t \t ] 
 
\t });
html, body {margin: 0px; padding: 0px;height: 100%; overflow: hidden; } 
 
#people {width: 100%;height: 100%; } 
 

 

 

 
div.get-org-chart.get-darkred 
 
{ 
 
    background-color: white; 
 
} 
 

 
div.get-org-chart .get-text 
 
{ 
 
    font-size: 20px !important; 
 
} 
 

 
div.get-org-chart.get-darkred .get-oc-c .get-box 
 
{ 
 
    fill: blue; 
 
    stroke: darkblue; 
 
}
<script type='text/javascript' src='//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js'></script> 
 
<link rel="stylesheet" type="text/css" href="//www.getorgchart.com/GetOrgChart/getorgchart/getorgchart.css">  
 
<script type='text/javascript' src="//www.getorgchart.com/GetOrgChart/getorgchart/getorgchart.js"></script> 
 

 
<div id="people"></div>

+0

가 큰 작품 글꼴 크기 상자의 색상과 배경 색상을 변경을 변경하려면 ! 대단히 감사합니다. – Gui

관련 문제