li{ list-style: none } table{ width: 300px; height: 100px; position:absolute; } select { /*Chrome和Firefox里面的边框是不一样的,所以复写了一下*/ position: absolute; border: solid 1px #000; /*很关键:将默认的select选择框样式清除*/ /* appearance:none; IE*/ -moz-appearance:none; -webkit-appearance:none; /*Chrome*/ /*在选择框的最右侧中间显示小箭头图片*/ background: url("./img/asdasd.jpg") no-repeat scroll right center transparent; /*为下拉小箭头留出一点位置,避免被文字覆盖*/ padding-right: 14px; border: solid 1px silver; appearance: none; -moz-appearance: none; -webkit-appearance: none; background: url(./img/asdasd.jpg) no-repeat scroll right center transparent; font-family: Microsoft yahie; width: 120px; height: 36px; padding: 7px 36px 8px 13px; } option { position: absolute; appearance:none; -moz-appearance:none; -webkit-appearance:none; } /*input[type='file']::-webkit-file-upload-button { padding: .4em 1.5em .4em; line-height: 30px; border: 1px solid #3389cc; background: #3389cc; border-radius: 5px; font-family: microsoft yahei; color: white; }*/ .fileUpload { position: absolute; overflow: hidden; margin: 10px; } .fileUpload input.upload { position: absolute; top: 0; right: 0; margin: 0; padding: 0; font-size: 20px; cursor: pointer; opacity: 0; filter: alpha(opacity=0); } label[for=upload] { border: 1px solid #3389cc; background-color: #3389cc; display: inline-block; line-height: 18px; padding: 0.8em 1.2em 0.8em; border-radius: 8px; color: white; font-family: microsoft yahei; } .file-name { display: inline-block; line-height: 41px; border: 1px solid silver; padding: 0 1.25em 0 9em; background: url(./img/wenjian.jpg) no-repeat scroll left center transparent; height: 2.5em; vertical-align: bottom; } .ul { position:absolute; }