61,111
社区成员
发帖
与我相关
我的任务
分享
<div class="input-group con" role="group">
<span class="input-group-btn left">
<a class="file">选择文件<input type="file" id="file" onchange="selectFile()"></a>
</span>
<input type="text" class="form-control input" placeholder="弹幕发送(゜-゜)つロ 干杯~">
<span class="input-group-btn right">
<button class="btn btn-info send" type="button">发送弹幕</button>
<button class="btn btn-info clear" type="button">清除弹幕</button>
</span>
</div>
div.con {
overflow: hidden;
width: 60%;
margin: auto;
}
span.left {
position: relative;
z-index: 0;
}
.file {
display: inline-block;
height: 34px;
width: 80px;
background-color: #5bc0de;
border: 1px solid #46b8da;
border-top-left-radius: 4px;
border-bottom-left-radius: 4px;
padding: 4px 12px;
overflow: hidden;
color: white;
text-decoration: none;
text-indent: 0;
line-height: 20px;
}
.file input {
position: absolute;
font-size: 100px;
right: 0;
top: 0;
z-index: 1;
opacity: 0;
}
.file:hover {
background: #31b0d5;
border-color: #269abc;
color: white;
cursor: pointer;
text-decoration: none;
}