不能了,它的隐藏办法是把它设为0,但是在样式中可以记住原来的大小
,如width
webiframe.mp.language = 
webiframe.mp.scrollHeight = 0
webiframe.mp.isTextEdit = false
webiframe.mp.currentStyle = [object]
webiframe.mp.document = [object]
webiframe.mp.onmouseup = null
webiframe.mp.oncontextmenu = null
webiframe.mp.isMultiLine = true
webiframe.mp.clientHeight = 0
webiframe.mp.onrowexit = null
webiframe.mp.onbeforepaste = null
webiframe.mp.onactivate = null
webiframe.mp.scrollLeft = 0
webiframe.mp.lang = 
webiframe.mp.onmousemove = null
webiframe.mp.onmove = null
webiframe.mp.onselectstart = null
webiframe.mp.parentTextEdit = [object]
webiframe.mp.oncontrolselect = null
webiframe.mp.canHaveHTML = false
webiframe.mp.onkeypress = null
webiframe.mp.oncut = null
webiframe.mp.onrowenter = null
webiframe.mp.onmousedown = null
webiframe.mp.onpaste = null
webiframe.mp.className = 
webiframe.mp.id = mp
webiframe.mp.onreadystatechange = null
webiframe.mp.onbeforedeactivate = null
webiframe.mp.hideFocus = false
webiframe.mp.dir = 
webiframe.mp.isContentEditable = false
webiframe.mp.onkeydown = null
webiframe.mp.clientWidth = 0
webiframe.mp.onlosecapture = null
webiframe.mp.parentElement = [object]
webiframe.mp.ondrag = null
webiframe.mp.ondragstart = null
webiframe.mp.oncellchange = null
webiframe.mp.recordNumber = null
webiframe.mp.onfilterchange = null
webiframe.mp.onrowsinserted = null
webiframe.mp.ondatasetcomplete = null
webiframe.mp.onmousewheel = null
webiframe.mp.ondragenter = null
webiframe.mp.onblur = null
webiframe.mp.onresizeend = null
webiframe.mp.onerrorupdate = null
webiframe.mp.onbeforecopy = null
webiframe.mp.ondblclick = null
webiframe.mp.scopeName = HTML
webiframe.mp.onkeyup = null
webiframe.mp.onresizestart = null
webiframe.mp.onmouseover = null
webiframe.mp.onmouseleave = null
webiframe.mp.outerText = 
webiframe.mp.innerText = 
webiframe.mp.onmoveend = null
webiframe.mp.tagName = IMG
webiframe.mp.title = 
webiframe.mp.offsetWidth = 0
webiframe.mp.onresize = null
webiframe.mp.contentEditable = inherit
webiframe.mp.runtimeStyle = [object]
webiframe.mp.filters = [object]
webiframe.mp.ondrop = null
webiframe.mp.onpage = null
webiframe.mp.onrowsdelete = null
webiframe.mp.tagUrn = 
webiframe.mp.offsetLeft = 0
webiframe.mp.clientTop = 0
webiframe.mp.style = [object]
webiframe.mp.onfocusout = null
webiframe.mp.clientLeft = 0
webiframe.mp.ondatasetchanged = null
webiframe.mp.canHaveChildren = false
webiframe.mp.ondeactivate = null
webiframe.mp.isDisabled = false
webiframe.mp.onpropertychange = null
webiframe.mp.ondragover = null
webiframe.mp.onhelp = null
webiframe.mp.ondragend = null
webiframe.mp.onbeforeeditfocus = null
webiframe.mp.disabled = false
webiframe.mp.onfocus = null
webiframe.mp.behaviorUrns = [object]
webiframe.mp.accessKey = 
webiframe.mp.onscroll = null
webiframe.mp.onbeforeactivate = null
webiframe.mp.onbeforecut = null
webiframe.mp.readyState = complete
webiframe.mp.all = [object]
webiframe.mp.sourceIndex = 4
webiframe.mp.onclick = null
webiframe.mp.scrollTop = 0
webiframe.mp.oncopy = null
webiframe.mp.onfocusin = null
webiframe.mp.tabIndex = 0
webiframe.mp.onbeforeupdate = null
webiframe.mp.outerHTML = <IMG id=mp style="DISPLAY: none; WIDTH: 15px; HEIGHT: 15px" src="http://community.csdn.net/images/ad/csdn0801300x60-2.gif">
webiframe.mp.innerHTML = 
webiframe.mp.ondataavailable = null
webiframe.mp.offsetHeight = 0
webiframe.mp.onmovestart = null
webiframe.mp.onmouseout = null
webiframe.mp.scrollWidth = 0
webiframe.mp.offsetTop = 0
webiframe.mp.onmouseenter = null
webiframe.mp.onlayoutcomplete = null
webiframe.mp.offsetParent = [object]
webiframe.mp.onafterupdate = null
webiframe.mp.ondragleave = null
webiframe.mp.children = [object]
webiframe.mp.start = fileopen
webiframe.mp.firstChild = null
webiframe.mp.href = http://community.csdn.net/images/ad/csdn0801300x60-2.gif
webiframe.mp.height = 0
webiframe.mp.alt = 
webiframe.mp.isMap = false
webiframe.mp.fileModifiedDate = 08/29/2005
webiframe.mp.fileUpdatedDate = 08/01/2005
webiframe.mp.dataSrc = 
webiframe.mp.onerror = null
webiframe.mp.hspace = 0
webiframe.mp.previousSibling = null
webiframe.mp.loop = 1
webiframe.mp.protocol = 超文本传送协议
webiframe.mp.lastChild = null
webiframe.mp.nodeName = IMG
webiframe.mp.nodeType = 1
webiframe.mp.dynsrc = 
webiframe.mp.attributes = [object]
webiframe.mp.childNodes = [object]
webiframe.mp.src = http://community.csdn.net/images/ad/csdn0801300x60-2.gif
webiframe.mp.dataFld = 
webiframe.mp.ownerDocument = [object]
webiframe.mp.parentNode = [object]
webiframe.mp.onabort = null
webiframe.mp.fileSize = 8482
webiframe.mp.dataFormatAs = 
webiframe.mp.width = 0
webiframe.mp.vrml = 
webiframe.mp.onload = null
webiframe.mp.align = 
webiframe.mp.useMap = 
webiframe.mp.lowsrc = 
webiframe.mp.fileCreatedDate = 08/29/2005
webiframe.mp.complete = true
webiframe.mp.nextSibling = [object]
webiframe.mp.vspace = 0
webiframe.mp.mimeType = GIF 图像
webiframe.mp.nodeValue = null
webiframe.mp.nameProp = csdn0801300x60-2.gif
webiframe.mp.border = 
webiframe.mp.longDesc = 
webiframe.mp.name = 

解决方案 »

  1.   


    webiframe.mp.style.clear = 
    webiframe.mp.style.posRight = 0
    webiframe.mp.style.backgroundRepeat = 
    webiframe.mp.style.borderTopStyle = 
    webiframe.mp.style.marginTop = 
    webiframe.mp.style.fontVariant = 
    webiframe.mp.style.listStylePosition = 
    webiframe.mp.style.backgroundPositionX = 
    webiframe.mp.style.lineHeight = 
    webiframe.mp.style.scrollbarHighlightColor = 
    webiframe.mp.style.overflowX = 
    webiframe.mp.style.paddingLeft = 
    webiframe.mp.style.borderLeftWidth = 
    webiframe.mp.style.padding = 
    webiframe.mp.style.listStyleType = 
    webiframe.mp.style.borderLeftColor = 
    webiframe.mp.style.display = none
    webiframe.mp.style.textDecorationLineThrough = false
    webiframe.mp.style.marginBottom = 
    webiframe.mp.style.textKashidaSpace = 
    webiframe.mp.style.borderCollapse = 
    webiframe.mp.style.textDecorationBlink = false
    webiframe.mp.style.scrollbarFaceColor = 
    webiframe.mp.style.backgroundAttachment = 
    webiframe.mp.style.borderRightStyle = 
    webiframe.mp.style.fontStyle = 
    webiframe.mp.style.textUnderlinePosition = 
    webiframe.mp.style.textIndent = 
    webiframe.mp.style.textDecorationOverline = false
    webiframe.mp.style.layoutGridMode = 
    webiframe.mp.style.right = 
    webiframe.mp.style.pageBreakAfter = 
    webiframe.mp.style.background = 
    webiframe.mp.style.filter = 
    webiframe.mp.style.borderColor = 
    webiframe.mp.style.posWidth = 15
    webiframe.mp.style.left = 
    webiframe.mp.style.minHeight = 
    webiframe.mp.style.accelerator = false
    webiframe.mp.style.rubyOverhang = 
    webiframe.mp.style.layoutGrid = 
    webiframe.mp.style.visibility = 
    webiframe.mp.style.verticalAlign = 
    webiframe.mp.style.borderBottomWidth = 
    webiframe.mp.style.scrollbarShadowColor = 
    webiframe.mp.style.textTransform = 
    webiframe.mp.style.lineBreak = 
    webiframe.mp.style.scrollbarArrowColor = 
    webiframe.mp.style.margin = 
    webiframe.mp.style.borderBottomColor = 
    webiframe.mp.style.borderTopWidth = 
    webiframe.mp.style.behavior = 
    webiframe.mp.style.letterSpacing = 
    webiframe.mp.style.layoutFlow = 
    webiframe.mp.style.font = 
    webiframe.mp.style.borderTopColor = 
    webiframe.mp.style.paddingBottom = 
    webiframe.mp.style.whiteSpace = 
    webiframe.mp.style.overflow = 
    webiframe.mp.style.borderBottomStyle = 
    webiframe.mp.style.cssText = DISPLAY: none; WIDTH: 15px; HEIGHT: 15px
    webiframe.mp.style.width = 15px
    webiframe.mp.style.clip = 
    webiframe.mp.style.cursor = 
    webiframe.mp.style.fontSize = 
    webiframe.mp.style.imeMode = 
    webiframe.mp.style.backgroundPosition = 
    webiframe.mp.style.color = 
    webiframe.mp.style.paddingRight = 
    webiframe.mp.style.textAutospace = 
    webiframe.mp.style.pageBreakBefore = 
    webiframe.mp.style.direction = 
    webiframe.mp.style.bottom = 
    webiframe.mp.style.fontFamily = 
    webiframe.mp.style.unicodeBidi = 
    webiframe.mp.style.posHeight = 15
    webiframe.mp.style.posBottom = 0
    webiframe.mp.style.borderRightColor = 
    webiframe.mp.style.styleFloat = 
    webiframe.mp.style.textJustify = 
    webiframe.mp.style.backgroundColor = 
    webiframe.mp.style.posTop = 0
    webiframe.mp.style.zIndex = 0
    webiframe.mp.style.borderLeftStyle = 
    webiframe.mp.style.zoom = 
    webiframe.mp.style.listStyleImage = 
    webiframe.mp.style.wordSpacing = 
    webiframe.mp.style.textDecoration = 
    webiframe.mp.style.borderBottom = 
    webiframe.mp.style.layoutGridChar = 
    webiframe.mp.style.tableLayout = 
    webiframe.mp.style.border = 
    webiframe.mp.style.textAlign = 
    webiframe.mp.style.backgroundPositionY = 
    webiframe.mp.style.backgroundImage = 
    webiframe.mp.style.borderWidth = 
    webiframe.mp.style.borderTop = 
    webiframe.mp.style.textJustifyTrim = 
    webiframe.mp.style.scrollbar3dLightColor = 
    webiframe.mp.style.fontWeight = 
    webiframe.mp.style.scrollbarDarkShadowColor = 
    webiframe.mp.style.textAlignLast = 
    webiframe.mp.style.posLeft = 0
    webiframe.mp.style.borderRightWidth = 
    webiframe.mp.style.paddingTop = 
    webiframe.mp.style.wordBreak = 
    webiframe.mp.style.textOverflow = 
    webiframe.mp.style.rubyPosition = 
    webiframe.mp.style.borderStyle = 
    webiframe.mp.style.borderRight = 
    webiframe.mp.style.wordWrap = 
    webiframe.mp.style.position = 
    webiframe.mp.style.overflowY = 
    webiframe.mp.style.textDecorationUnderline = false
    webiframe.mp.style.layoutGridLine = 
    webiframe.mp.style.top = 
    webiframe.mp.style.textDecorationNone = false
    webiframe.mp.style.writingMode = 
    webiframe.mp.style.height = 15px
    webiframe.mp.style.scrollbarTrackColor = 
    webiframe.mp.style.listStyle = 
    webiframe.mp.style.scrollbarBaseColor = 
    webiframe.mp.style.marginRight = 
    webiframe.mp.style.marginLeft = 
    webiframe.mp.style.layoutGridType = 
    webiframe.mp.style.textKashida = 
    webiframe.mp.style.rubyAlign = 
    webiframe.mp.style.borderLeft = 
      

  2.   

    把mp.sytle.visibility设为hidden或直接设mp.style.width=0来隐藏图片,
    然后直接用mp.style.width或mp.clientWidth来获取该图片的宽度.
      

  3.   

    <html>
    <head>
    <title></title>
    <script language="javascript">
    <!--
    function go()
    {
       document.write("宽度为:",mp.clientWidth,"高度为:",mp.clientHeight)
    }
    //-->
    </script>
    </head>
    <body>
      <img id="mp"  src="picture.jpg" style="visibility:hidden;">
      <input type="button" onclick="go()">
    </body>
    </html>
      

  4.   

    .sytle.visibility设为hidden我现在说的话与上面无关系我发现它不能隐藏表格的线条,当我在一个DIV中放一个用CSS来控制的列表时,表格的BORDER=1,当DIV隐藏时,那些线条不能隐藏,只是表格的内容隐藏掉,纳闷!
      

  5.   


    webiframe.mp.style.cssText = DISPLAY: none; WIDTH: 15px; HEIGHT: 15px
    webiframe.mp.style.width = 15px