.treat-desc-box{ float: left; width: 0; overflow: hidden; } .drug-desc-wrapper { height: 100%; overflow-y: auto } .drug-desc-title { height: 40px; line-height: 40px; border-bottom: 1px solid #e0e2e4; padding-left: 20px; width: 260px; position: absolute; background: #fff; top: 0px; margin-left: -20px; } .recommend-title, .drug-title { padding: 30px 0 15px 20px; width: 240px; } .drug-desc-item { padding: 0 0 0 20px; line-height: 26px; width: 240px; } .close-drug-desc { position: absolute; right: 0px; cursor: pointer; } .similar-drug-box { display: none; } .similar-drug-wrapper { position: absolute; width: 260px; left: 680px; height: 100%; top: 0; background: #fff; padding: 40px 0px 20px 20px; box-shadow: 2px 0px 5px -2px #7d7c7c; } .similar-drug { padding: 20px 20px 0 0; height: 100%; overflow-y: auto; } .drug-name-box { display: inline-block; height: 30px; position: relative; } .drug-name { border-bottom: 1px solid #666; display: inline-block; cursor: pointer; } .info-img { width: 15px; position: absolute; top: -15px; left: 50%; margin-left: -7px; cursor: pointer; } .info-flag { display: inline-block; width: 34px; height: 16px; line-height: 16px; border-radius: 4px; text-align: center; } .drug-desc-class-title { display: inline-block; width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }