嗨,我只想问我的程序有什么问题。我正在做这个程序,我必须选择一个文件。但该按钮是一个图像,我想添加一个工具提示,该图像用于选择一个文件。这块代码完全适用于Chrome。但是当我在IE11中运行它时,标题“选择文件”在IE11中没有显示。我不知道IE有很多限制。不像在铬。标题属性在IE11中不工作
.image-upload>input {
visibility: hidden;
width: 0px;
height: 0px;
margin: -10%;
}
div.item {
vertical-align: top;
display: inline-block;
text-align: center;
width: 250px;
img {
width: 90px;
height: 50px;
}
.caption {
display: block;
color: white;
}
div.space {
margin-top: -15px;
}
<div class="image-upload">
<label for="file-input">
<p align="left"><font face="Arial" color="black" size = "5"><b>   Select File    </b><span style="cursor:pointer" alt="Select File" title="Select File">
<img src="http://icons.veryicon.com/ico/Folder/Black%20glamour/Files.ico" style="pointer-events: none" id="img" title="Select File"/></span></font></p></label>
</label>
<input id="file-input" type="file" name="file" onchange="onFileSelected(event)" onclick=getName() required>
</div>
是https://stackoverflow.com/questions/36606868/tooltip-using-title-attribute-in-ie-11适用? – apokryfos
我的程序是关于执行python脚本,这就是为什么我使用php –
代码中没有任何与python或PHP相关的代码 – mplungjan