简体   繁体   English

使用php上传图像文件

[英]Uploading image file using php

I am using this to upload file in php 我正在用它上传php文件

 Image <input type="file" name="file" />

It's working.but the background is white so it's not visible well, means it's not working as given in this link .I can't modify my background, it should be white.Also by default, the text is "no file selected", can i modify it ? 它可以正常工作。但是背景为白色,因此无法很好地显示,这意味着它无法按此链接中的说明工作 。我无法修改背景,应该为白色。默认情况下,文本为“未选择文件”,我可以修改吗? please help 请帮忙

The style of an file input is regulated by the browser you're using (propably chrome in your case i think). 文件输入的样式由您使用的浏览器控制(我认为您可能适合使用chrome)。 But there are opportunities to style them with Javascript or CSS, look here or here . 但是有机会用Javascript或CSS设置样式,请查看此处此处

Different browsers have different approach in displaying HTML elements. 不同的浏览器在显示HTML元素时有不同的方法。 For eg. 例如。
CSS: Size of buttons in Chrome is different than Firefox CSS:Chrome中的按钮大小与Firefox不同

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM