如何让input type="file"里的字竖排?

类似左右两边这样文字竖排,调试了很久,都没效果,请大家帮帮忙

1590485820(1).png
<ul>

<li>

<input type="button" class="searImageThreeBtn" id="upload_input" value="外部图片"/>
<input class="layui-upload-file" type="file" name="file">

</li>

</ul>

阅读 1.6k
1 个回答
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
      .div {
        position: relative;
        width: 30px;
        height: 100px;
      }

      .searImageThreeBtn {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
      }

      .layui-upload-file {
        width: 100%;
        height: 100%;
      }
  </style>
</head>
<body>
  <div class="div">
    <button type="button" class="searImageThreeBtn" id="upload_input">
      <span>外部图片</span>
    </button>
    <input class="layui-upload-file" type="file" name="file">
  </div>
</body>
</html>
推荐问题