.ldBox{ float: left; } .xuanzeBox{ float: left; margin-right: 15px; cursor: pointer; width: 120px; height: 18px; outline:0; border:0; display: inline-block; } .xuanzeBox .qingxz{ position: absolute; top: -1px; left: -1px; width: 120px; text-indent: 1em; height: 18px; border: 1px solid #DDDDDD; line-height: 20px; font-size: 12px; } .xuanzeBox .qingxz span{ position: absolute; top: -1px; left: 0; width: 100px; height: 20px; line-height: 20px; outline:0; } .xuanzeBox .qingxz span p{ overflow: hidden; float: left; width: 100%; height: 100%; padding: 0; } .xuanzeBox .qingxz s{ outline:0; position: absolute; top: -1px; right: -1px; width: 20px; height: 20px; background: url("/staticbjmfbfcom/static/mfzxcn/img/public/iocn.png") no-repeat -80px -116px; } .sel-xuanzeBox .qingxz{ border: 1px solid #ff3030; } .xuanzeBox:hover .qingxz{ border: 1px solid #ff3030; } .sel-xuanzeBox .qingxz s{ background: url("/staticbjmfbfcom/static/mfzxcn/img/public/iocn.png") no-repeat -116px -116px; } .xuanzeBox:hover s{ background: url("/staticbjmfbfcom/static/mfzxcn/img/public/iocn.png") no-repeat -116px -116px; } .conbox{ padding: 0; display: none; top: 19px; left: -1px; width: 120px; border: 1px solid #FF3030; position: absolute; z-index: 88; background: #ffffff; max-height: 240px; overflow-x: hidden; overflow-y: auto; } .conbox li{ margin:0 ; line-height: 20px; width: 120px; height: 20px; overflow: hidden; text-indent: 1em; } .conbox li:hover{ background-color: #FF3030; color: #ffffff; } .conbox .sel-li{ background-color: #FF3030; color: #ffffff; }