如何使用CSS添加文件上传控件 [英] how we can add file upload control with css
本文介绍了如何使用CSS添加文件上传控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何将CSS添加到文件上传控件中.我从net.net得到了一个代码,但是它不起作用.下面是代码.请帮助我.
how we can add css to file upload control. i got a code from net.but it is not working. below is the code. plese help me.
<head runat="server">
<title></title>
<script src="jquery.js" type="text/javascript"></script>
<script src="jquery.filestyle.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function () {
$("input[type=file]").filestyle({
image: "images/choose-file.gif",
imageheight: 22,
imagewidth: 82,
width: 250
});
});
</script>
</head>
<body>
<form id="form1" runat="server">
<%----%>
<input type="file" id="file" />
<%----%>
</form>
</body>
</html>
[edit]已添加代码块-OriginalGriff [/edit]
[edit]Code block added - OriginalGriff[/edit]
推荐答案
(文档).ready(功能(){
(document).ready(function () {
(" ).filestyle({ 图片:" , imageheight: 22 , imagewidth: 82 , 宽度: 250 }); }); < / 脚本 > < /head > < 正文 > < 表单 =" form1" =" 服务器" <%- -% > < 输入 类型 =" id =" 文件" / > <%- -% > < /form > < /body > < /html >
("input[type=file]").filestyle({ image: "images/choose-file.gif", imageheight: 22, imagewidth: 82, width: 250 }); }); </script> </head> <body> <form id="form1" runat="server"> <%----%> <input type="file" id="file" /> <%----%> </form> </body> </html>
[edit]已添加代码块-OriginalGriff [/edit]
[edit]Code block added - OriginalGriff[/edit]
这篇关于如何使用CSS添加文件上传控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文