社区
JavaScript
帖子详情
怎么样在文字连接上显示图片,在线等待!!!100分求解
17skyo
2002-12-03 12:58:00
我想在文字连接上,鼠标移上去,显示图片
显示文字,我知道用title=""能实现,显示图片怎么做
请问怎么做
...全文
82
4
打赏
收藏
怎么样在文字连接上显示图片,在线等待!!!100分求解
我想在文字连接上,鼠标移上去,显示图片 显示文字,我知道用title=""能实现,显示图片怎么做 请问怎么做
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
4 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
17skyo
2002-12-03
打赏
举报
回复
知道ichat聊天室吗,
他的名单里,有鼠标移动上去,就能显示图片,但是好象不是用层的
lbd8848
2002-12-03
打赏
举报
回复
那只能用层,做一个虚拟的
meizz
2002-12-03
打赏
举报
回复
<html><head><title>层与按钮对齐</title></head><body>
<div align=left><table border=1>
<tr><td align=center height=50 width=200>
<input type=button value=ok onmouseover="cc(this)" onmouseout="document.all.pop.style.display='none'"></td>
<td align=center height=50 width=200>
<input type=button value=ok onmouseover="cc(this)" onmouseout="document.all.pop.style.display='none'"></td>
<td align=center height=50 width=200>
<input type=button value=ok onmouseover="cc(this)" onmouseout="document.all.pop.style.display='none'"></td></tr>
<tr><td align=center height=50 width=200>
<input type=button value=ok onmouseover="cc(this)" onmouseout="document.all.pop.style.display='none'"></td>
<td align=center height=50 width=200>
<input type=button value=ok onmouseover="cc(this)" onmouseout="document.all.pop.style.display='none'"></td>
<td align=center height=50 width=200>
<input type=button value=ok onmouseover="cc(this)" onmouseout="document.all.pop.style.display='none'"></td></tr>
<tr><td align=center height=50 width=200>
<input type=button value=ok onmouseover="cc(this)" onmouseout="document.all.pop.style.display='none'"></td>
<td align=center height=50 width=200>
<input type=button value=ok onmouseover="cc(this)" onmouseout="document.all.pop.style.display='none'"></td>
<td align=center height=50 width=200>
<input type=button value=ok onmouseover="cc(this)" onmouseout="document.all.pop.style.display='none'"></td></tr>
</table><div>
<div id=pop style="position:absolute;width:100;height:50;z-index:99;display:none">
<table border=0><tr><td align=center>
<img src=http://expert.csdn.net/images/csdn.gif border=0></td></tr></table></div>
<script language=javascript>
function cc(tt)
{
var daps = document.all.pop.style;
var ttop = tt.offsetTop; //TT控件的定位点高
var thei = tt.clientHeight; //TT控件本身的高
var tleft = tt.offsetLeft; //TT控件的定位点宽
var ttyp = tt.type; //TT控件的类型
while (tt = tt.offsetParent){ttop+=tt.offsetTop; tleft+=tt.offsetLeft;}
daps.top = (ttyp=="image")? ttop+thei : ttop+thei+6; //层的 Y 坐标
daps.left = tleft + 1; //层的 X 坐标
daps.display = ""; //层显示
}
</script>
</body></html>
qiushuiwuhen
2002-12-03
打赏
举报
回复
搜索tooltip,基本上都是用div模拟的
word文档
图片
显示
不全,
显示
一部分,
图片
在
文字
下面怎么办?
word文档
图片
显示
不全,
显示
一部分,
图片
在
文字
下面怎么办?
IOS总结实现UIButton的图文混排 同时
显示
文字
和
图片
默认情况下,在UIButton中既添加
文字
,又添加
图片
的时候,
图片
是
显示
在
文字
的左边。 当我们实际需要
图片
显示
在
文字
的右边的时候,需要重写UIButton的方法。 如下代码实现的功能就是:
文字
在左边,
图片
在右边。 - (id)initWithFrame:(CGRect)frame { self = [super initWithFrame:frame]; if (
QListview,QListWidget实现
图片
/ICON
显示
在
文字
右边,
图片
根据按下状态
显示
不同样式
QListview,QListWidget默认实现是
图片
Icon
显示
在
文字
左边 但是在很多菜单中,我们需要将
图片
放置左边,然而又没有美工去做
图片
(做了
图片
就可以直接按钮贴图),就需要我们手工去实现这种方式,但Listview要自定义位置,需要去该源码并且很麻烦。 实现
图片
显示
在文本右边 首先点开 ui文件,点Item属性按钮 找到Icon部分,手动添加自己的资源 最后找到文本部分,
显示
设置成从右往左 这样做完大家会发现,还是
图片
在
文字
左边,并没有达到相要的效果。 这时我们加入一行代码即可 ui-&.
Android开发系列八:怎么混合
显示
图片
和文本
Android开发系列八:怎么混合
显示
图片
和文本 在有的Android应用中,需要在
文字
的中间插入一个
图片
,比如像下面图中所示的效果: 天气小
图片
显示
在
文字
的后面,要实现此效果可以自己写一个View,但是也可以使用TextView结合android.text.Spanned来实现此效果。 Spanned的内容可以是一段html文本,
图片
就可以用img元素嵌入进去了
Android开发系列:怎么混合
显示
图片
和文本
在有的Android应用中,需要在
文字
的中间插入一个
图片
,比如像下面图中所示的效果:天气小
图片
显示
在
文字
的后面,要实现此效果可以自己写一个View,但是也可以使用TextView结合android.text.Spanned来实现此效果。Spanned的内容可以是一段html文本,
JavaScript
87,775
社区成员
224,624
社区内容
发帖
与我相关
我的任务
JavaScript
Web 开发 JavaScript
复制链接
扫一扫
分享
社区描述
Web 开发 JavaScript
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章