<html>
<head>
<script src="https://libs.baidu.com/jquery/1.10.2/jquery.min.js">
</script>
<script>
$(document).ready(function(){
$(":file").css("background-color","red");
});
</script>
</head>
<body>
<form action="">
Name: <input type="text" name="user"><br>
File: <input type="file" name="myfile">
</form>
</body>
</html>