body, html { width: 100%; height: 100%; } .gantt { position: relative; box-sizing: border-box; box-sizing: border-box; box-sizing: border-box; width: 95%; height: 100%; margin: auto; border: 1px solid #ddd; border-radius: 6px; border-radius: 6px; border-radius: 6px; } .gantt::after { display: block; height: 0; clear: both; visibility: hidden; content: '.'; } .fn-gantt { width: 100%; height: 100%; } .fn-gantt *, .fn-gantt *::after, .fn-gantt *::before { box-sizing: border-box; box-sizing: border-box; box-sizing: border-box; } .fn-gantt .fn-content { position: relative; width: 100%; overflow: hidden; } .fn-gantt .row { float: left; height: 24px; margin: 0; line-height: 24px; } .fn-gantt .leftPanel { position: relative; z-index: 20; float: left; width: 400px; /* height: 655px; */ overflow: hidden; border-right: 1px solid #ddd; } .fn-gantt .leftPanel .fn-label { display: inline-block; width: 250px; overflow: hidden; color: #484a4d; text-align: center; text-overflow: ellipsis; white-space: nowrap; } .desc .fn-label { width: 90px !important; } .fn-gantt .leftPanel .row { border-bottom: 1px solid #ddd; } .fn-gantt .leftPanel .name, .fn-gantt .leftPanel .desc { float: left; width: 93px; height: 48px; line-height: 48px; background-color: #f6f6f6; } .fn-gantt .leftPanel .name { width: 305px; font-weight: bold; } .fn-gantt .leftPanel .fn-wide, .fn-gantt .leftPanel .fn-wide .fn-label { width: 100%; } .fn-gantt .leftPanel .spacer { width: 100%; background-color: #f6f6f6; } .spacer div { display: inline-block; font-weight: bold; line-height: 100px; text-align: center; } .spacer .pindex { width: 50px; } .spacer .pname { width: 255px; } .spacer .pstatus { width: 90px; } .fn-gantt .rightPanel { overflow: hidden; } .fn-gantt .dataPanel { position: relative; margin-left: 0; background-image: url(img/grid.png); background-repeat: repeat; outline: 1px solid #ddd; } .fn-gantt .row.header { width: 100%; margin-right: -1px; } .fn-gantt .day, .fn-gantt .date { width: 24px; overflow: visible; font-size: 11px; line-height: 24px; color: #484a4d; text-align: center; text-align: center; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75); border-right: 1px solid #ddd; border-bottom: 1px solid #ddd; } .fn-gantt .sa, .fn-gantt .sn, .fn-gantt .wd { height: 24px; text-align: center; } .fn-gantt .sa, .fn-gantt .sn { color: #939496; text-align: center; background-color: #f5f5f5; } .fn-gantt .wd { text-align: center; background-color: #f6f6f6; } .fn-gantt .holiday { height: 24px; background-color: #ffd263; } .fn-gantt .today { height: 24px; font-weight: bold; text-align: center; background-color: #fff8da; } .fn-gantt .rightPanel .month, .fn-gantt .rightPanel .year { float: left; height: 24px; overflow: hidden; font-size: 11px; font-weight: bold; color: #484a4d; text-align: center; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75); background-color: #f6f6f6; border-right: 1px solid #ddd; border-bottom: 1px solid #ddd; } .fn-gantt-hint { position: absolute; z-index: 11; display: none; /* padding: 10px; background-color: #fff5d4; border: 5px solid #edc332; */ border-radius: 4px; border-radius: 4px; border-radius: 4px; } .fn-gantt .bar { position: absolute; z-index: 10; height: 18px; margin: 0 3px 3px 0; text-align: center; background-color: #d0e4fd; border-radius: 3px; border-radius: 3px; border-radius: 3px; box-shadow: 0 0 1px rgba(0, 0, 0, 0.25) inset; box-shadow: 0 0 1px rgba(0, 0, 0, 0.25) inset; box-shadow: 0 0 1px rgba(0, 0, 0, 0.25) inset; } .fn-gantt .bar .fn-label { width: 100%; overflow: hidden; font-size: 11px; font-weight: bold; line-height: 18px; color: #414b57 !important; text-align: center; text-overflow: ellipsis; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4); white-space: nowrap; } .fn-gantt .ganttRed { background-color: #f5b878; } .fn-gantt .ganttLimit { background-color: #ff4848; } .fn-gantt .ganttRed .fn-label { color: #383838 !important; } .fn-gantt .ganttGreen { background-color: #6cf37c; } .fn-gantt .ganttGreen .fn-label { color: #383838 !important; } .fn-gantt .ganttOne { background-color: #6cf37c; } .fn-gantt .ganttOne .fn-label { color: #383838 !important; } .fn-gantt .ganttTwo { background-color: #64c6ff; } .fn-gantt .ganttTwo .fn-label { color: #383838 !important; } .fn-gantt .ganttThree { background-color: #ffa6a6; } .fn-gantt .ganttThree .fn-label { color: #383838 !important; } .fn-gantt .ganttOrange { background-color: #fcd29a; } .fn-gantt .ganttOrange .fn-label { color: #383838 !important; } .fn-gantt .bottom { width: 100%; clear: both; background-color: #f6f6f6; border-top: 1px solid #ddd; } .fn-gantt .navigate { padding: 10px 0 10px 225px; /* border-top: 1px solid #ddd; */ } .fn-gantt .navigate .nav-slider { display: inline-block; height: 20px; } .fn-gantt .navigate .nav-slider-left, .fn-gantt .navigate .nav-slider-right { display: inline-block; height: 20px; text-align: center; } .fn-gantt .navigate .nav-slider-left { float: left; } .fn-gantt .navigate .nav-slider-right { float: right; } .fn-gantt .navigate .nav-slider-content { display: inline-block; width: 160px; height: 20px; margin: 0 10px; text-align: left; } .fn-gantt .navigate .nav-slider-bar, .fn-gantt .navigate .nav-slider-button { position: absolute; display: block; } .fn-gantt .navigate .nav-slider-bar { width: 155px; height: 6px; margin: 8px 0 0 0; background-color: #838688; border-radius: 3px; border-radius: 3px; border-radius: 3px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6) inset; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6) inset; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6) inset; } .fn-gantt .navigate .nav-slider-button { top: 0; left: 0; width: 17px; height: 60px; margin: -26px 0 0 0; cursor: pointer; background: url(img/slider_handle.png) center center no-repeat; } .fn-gantt .navigate .page-number { display: inline-block; height: 20px; font-size: 10px; } .fn-gantt .navigate .page-number span { display: inline-block; height: 20px; margin: 0 6px; line-height: 20px; color: #666; } .fn-gantt .navigate a:link, .fn-gantt .navigate a:visited, .fn-gantt .navigate a:active { text-decoration: none; } .fn-gantt .nav-link { box-sizing: border-box; box-sizing: border-box; box-sizing: border-box; display: inline-block; width: 20px; height: 20px; margin: 0 3px 0 0; font-size: 0; vertical-align: top; cursor: pointer; background: #595959 url(img/icon_sprite.png) !important; border: 1px solid #454546; border-radius: 2px; border-radius: 2px; border-radius: 2px; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset, 0 1px 1px rgba(0, 0, 0, 0.2); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset, 0 1px 1px rgba(0, 0, 0, 0.2); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset, 0 1px 1px rgba(0, 0, 0, 0.2); } .fn-gantt .nav-link:active { box-shadow: 0 1px 1px rgba(0, 0, 0, 0.25) inset, 0 1px 0 #fff; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.25) inset, 0 1px 0 #fff; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.25) inset, 0 1px 0 #fff; } .fn-gantt .navigate .nav-page-back { margin: 0; background-position: 1px 0 !important; } .fn-gantt .navigate .nav-page-next { margin-right: 15px; background-position: 1px -16px !important; } .fn-gantt .navigate .nav-slider .nav-page-next { margin-right: 5px; } .fn-gantt .navigate .nav-begin { background-position: 1px -112px !important; } .fn-gantt .navigate .nav-prev-week { background-position: 1px -128px !important; } .fn-gantt .navigate .nav-prev-day { background-position: 1px -48px !important; } .fn-gantt .navigate .nav-next-day { background-position: 1px -64px !important; } .fn-gantt .navigate .nav-next-week { background-position: 1px -160px !important; } .fn-gantt .navigate .nav-end { background-position: 1px -144px !important; } .fn-gantt .navigate .nav-zoomOut { background-position: 1px -96px !important; } .fn-gantt .navigate .nav-zoomIn { margin-left: 15px; background-position: 1px -80px !important; } .fn-gantt .navigate .nav-now { background-position: 1px -32px !important; } .fn-gantt .navigate .nav-slider .nav-now { margin-right: 5px; } .fn-gantt-loader { position: absolute; top: 0; left: 0; z-index: 30; width: 100%; height: 100%; cursor: wait; background: rgba(0, 0, 0, 0.75); filter: progid:dximagetransform.microsoft.gradient(startColorstr='#bf000000',endColorstr='#bf000000',GradientType=0); } .fn-gantt-loader-spinner span { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 1em; margin: auto; font-size: 1em; font-weight: bold; line-height: 1em; color: #fff; text-align: center; } .row::after { clear: both; } /* 新增加样式 */ .indexspan { display: inline-block; width: 50px; overflow: hidden; line-height: 48px; color: #484a4d; text-align: center; } .nav-zoomIn, .nav-zoomOut, .nav-now { display: none !important; } .plan-hint-div { padding: 5px; background: #facd91; border: 2px solid #f6ac4a; border-radius: 5px; } .true-hint-div { padding: 5px; background: #6cf37c; border: 2px solid #6ae94f; border-radius: 5px; } .two-hint-div { padding: 5px; background: #64c6ff; border: 2px solid #64c6ff; border-radius: 5px; } .three-hint-div { padding: 5px; background: #ffa6a6; border: 2px solid #ffa6a6; border-radius: 5px; } .main-div-custom { height: calc(100% - 50px); /* overflow: auto; */ }