宽度
width: calc(100vw - 120px);
input的隐藏
html
<li class="pdfshangchuang">
<h2>PDF简历</h2>
<p>点击上传</p>
<from id="formAttachment" action=""+httpurl2+"ShangLuCheng_API/Pdf_shangchuangshiping" method="post" enctypr="multipart/form-data">
<input type="file" name="file" accept="application/pdf" class="file-btn" placeholder="请上传" readonly/>
</from>
</li>
CSS
/*---上传pdf---*/
.pdfshangchuang{
display: inline-block;
width:100%;
position: relative;
}
.pdfshangchuang p{
float:right;
line-height:50px;
margin-right:10px;
color:rgba(0,0,0,0.8);
font-family:"黑体";
font-size:15px;
}
.file-btn{
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
outline: none;
background-color: transparent;
filter:alpha(opacity=0);-moz-opacity:0;-khtml-opacity: 0;opacity: 0;
}
/*---end上传pdf---*/
width: calc(100vw - 120px);
input的隐藏
html
<li class="pdfshangchuang">
<h2>PDF简历</h2>
<p>点击上传</p>
<from id="formAttachment" action=""+httpurl2+"ShangLuCheng_API/Pdf_shangchuangshiping" method="post" enctypr="multipart/form-data">
<input type="file" name="file" accept="application/pdf" class="file-btn" placeholder="请上传" readonly/>
</from>
</li>
CSS
/*---上传pdf---*/
.pdfshangchuang{
display: inline-block;
width:100%;
position: relative;
}
.pdfshangchuang p{
float:right;
line-height:50px;
margin-right:10px;
color:rgba(0,0,0,0.8);
font-family:"黑体";
font-size:15px;
}
.file-btn{
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
outline: none;
background-color: transparent;
filter:alpha(opacity=0);-moz-opacity:0;-khtml-opacity: 0;opacity: 0;
}
/*---end上传pdf---*/