使用Jquery“查找”显示图像 [英] Display image using Jquery "find"

查看:91
本文介绍了使用Jquery“查找”显示图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图用jquery显示图像。我有一个ID& PATH作为参数.ID指示部分(每个部分是在用户操作中加载的HTML页面),还有一个文本区域,我在其中显示文本文件内容。现在以同样的方式,我想要显示图像,我尝试了不同的方法,但没有成功。以下是我的Java Script文件& HTML文件

HTML文件:

 < html> 
< body>
< div id =tab1name =tabstyle =cursor:pointer; cursor:hand; width:90px; float:left; height:22px; margin-top:0px;
background-color:lightgrey; font-size:13px; text-align:center; border-bottom:none; display:table-cell;的onClick = 翼片(1) >
< div style =margin-top:3px> TAB1< / div>
< / div>
< div id =tab2name =tabstyle =cursor:pointer; cursor:hand; width:90px; background-color:lightgrey; float:left; height:20px; margin-top: 2px; font-size:12px; text-align:centeronClick =tabs(2)>
< div style =margin-top:3px> TAB2< / div>
< / div>
< div style =width:auto; height:22px; border-bottom-color:white; border-bottom-style:solid; border-bottom-width:1px>< / div>



< div name =tab_contentstyle =display:block; margin-left:20px; >
< br>< / br>
< br>< / br>
< div id =legendReport>
注1:
< / div>