html,body{ width: 100%; height: 100%; margin: 0px; padding: 0px; } .treePanel { width: 100%; height: 100%; } #newAndUpdateInput { z-index: 999; position: fixed; width: 260px; display: none; border: 1px solid #212e3e; background-color: rgba(45, 72, 68, .8); padding: 1px; left: 50%; height: 60px; top: 80px; transform: translate(-50%, 0); /* 50%为自身尺寸的一半 */ line-height: 60px; padding: 5px; } #newAndUpdateInput input { clear: both; width: 140px !important; height: 33px !important; font-size: 12px !important; float: left; position: inherit; top: 15px !important; } #newAndUpdateInput .addgroupbtn { right: 65px; top: 16px !important; position: inherit; } #newAndUpdateInput .cancelgroupbtn { right: 10px; top: 16px !important; position: inherit; } #rMenu { z-index: 999; position: absolute; /*width: 100px;*/ display: none; border: 1px solid #fff; /*background-color: rgba(25, 110, 169, .9);*/ /*background-color: #196ea9;*/ padding: 1px; } #rMenu ul { margin: 0px; padding: 0px; list-style: none; } #rMenu ul li { font-size: 14px; line-height: 40px; height: 40px; margin: 0px; padding: 0px; cursor: pointer; color: white; /*background-color: #DFDFDF;*/ /*border-bottom: 1px solid #fff;*/ padding-left: 10px; padding-right: 10px; } #rMenu ul li:hover { background: rgba(45, 52, 68, .8); }