lindsayzhao103011
<html>
<head>
<title>input file</title>
<style>
.wrapper{position: absolute;top: 50px;left: 400px;width: 35px;height: 31px;overflow: hidden;}
.spanStyle{background-image: url(1.JPG);display: inline-block;width: 35px;height: 31px;position: absolute;}
.inputStyle{cursor: pointer;position: absolute;right: 0px;}
</style>
</head>
<body>
<div class="wrapper">
<span class="spanStyle"></span>
<input type="file" class="inputStyle"/>
</div>
</body>
</html> 

input file分两部分,前半部分是是一个按钮后半部分是一个文本,如果加样式只在后半部分起作用。

分类:

技术点:

相关文章:

  • 2021-11-29
  • 2021-11-29
  • 2021-09-05
  • 2022-12-23
  • 2021-04-23
  • 2021-11-25
  • 2022-12-23
  • 2021-11-29
猜你喜欢
  • 2021-11-29
  • 2021-11-29
  • 2021-11-29
  • 2022-12-23
  • 2021-11-29
  • 2022-12-23
相关资源
相似解决方案