<input type="file" name="file" readonly>

解决方案 »

  1.   

    xhbmj(笨鸟先飞) 
    你试验过吗?好像这么做没有用耶。。
      

  2.   

    服了你,我都試過了說明有..你還寫甚麼readonly
      

  3.   

    lightsun(lightsun) 不好意思没有理解你的意思看看这样
    <input type="file" name="file" readonly onclick="return dd();">
    <SCRIPT LANGUAGE="JavaScript">
    <!--
    function dd()
    {
      return false;
    }
    //-->
    </SCRIPT>
      

  4.   

    harryyang(crane) 
    你说的什么意思?
    (服了你,我都試過了說明有..你還寫甚麼readonly)
    你到底认为有还是没有?
      

  5.   

    我用過file.當然知道沒有此屬性了...
    我的意思是大家寫出來的代碼最好經過自己的驗證
    對別人.對自己都是負責任的!
      

  6.   

    harryyang(crane) 你是说我没有自己验证过吗?
    告说你,你试过没有我不知道。但是我的都是过了,不要太自以为是了。
    刚才没有看清题目,你也不用这样吧,大家都是来学习的。to lightsun(lightsun) :
    file控件的属性中没有你说的:
    有的属性
    accessKey
    controllers
    defaultValue
    disabled
    form
    name
    size
    tabIndex
    type
    value
    width
      

  7.   

    <input type=file id=ff style="display: none"
     onPropertyChange="document.all.f1.value=this.value">
    <input name=f1 readonly><input type=button value=浏览
     onclick="document.all.ff.click()">
      

  8.   

    <input type=file onfocus="this.blur()">
      

  9.   

    file不能设value,又要整成只读,那还有什么用?干脆摆个图片得了
      

  10.   

    呵呵. 就是就是啊. 
    直接一个<input readonly><button>...</button> 效果一样啊.
      

  11.   

    沒別的意思..xhbmj(笨鸟先飞)不要誤會....