社区
JavaScript
帖子详情
里面怎么插入图片?达到图片select的效果
summer419
2003-05-18 03:30:47
以前看到过这个效果,也下载了的,好久了,搞丢了,
而且代码很长,有没有谁有收藏的啊 ,,50分一次送完
...全文
341
6
打赏
收藏
<li>里面怎么插入图片?达到图片select的效果</li>
以前看到过这个效果,也下载了的,好久了,搞丢了, 而且代码很长,有没有谁有收藏的啊 ,,50分一次送完
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
6 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
summer419
2003-05-23
打赏
举报
回复
一个人给点,, tdl982324,你不介意吧,,你一个人要那么多分干什么:)
大家都分点
possible_Y
2003-05-18
打赏
举报
回复
孟子的:
<table cellpadding="0" cellspacing="0" border="0" width="300">
<tr>
<td id="selectLength" width="100%" style="height:20px;padding:0px;border:2px inset #404040;border-right:0px;border-bottom:1px solid #D4D0C8;font-size:9pt;">
<div id="selectedValue" style="padding:2px;border:0px;width:100%;height:20px;font-size:9pt;vertical-align:bottom"></div>
</td>
<td width="20" style="height:20px;padding:0px;border-top:2px inset #404040;border-left:0px;border-right:1px solid #D4D0C8;border-bottom:1px solid #D4D0C8;font-size:9pt">
<img src="button2.gif" width="20" height="21" border="0" id="mm" onclick="mm_Click()" align="absmiddle">
</td>
</tr>
</table>
<div id="dropdownOption" style="position:absolute;visibility:hidden;width:100%;border:1px solid #080808;z-index:1000">
<table width="100%" cellpadding="0" cellspacing="1" class="optionForSel" bgcolor="White">
<tr onmouseover="this.style.backgroundColor='#0099ff'" onmouseout="this.style.backgroundColor=''">
<td onclick="document.all.selectedValue.innerText=this.innerText">
<img src="http://lucky.myrice.com/images/copyright.gif" border="0" align="absmiddle" hspace="2"><a href="http://lucky.myrice.com">Visit1</a>
</td>
</tr>
<tr>
<td onmouseover="this.style.backgroundColor='#0099ff'" onmouseout="this.style.backgroundColor=''"onclick="document.all.selectedValue.innerText=this.innerText">
<img src='http://lucky.myrice.com/images/meng1.gif' border="0" align="absmiddle" hspace="2"><a href="http://lucky.myrice.com">Visit2</a>
</td>
</tr>
<tr>
<td onmouseover="this.style.backgroundColor='#0099ff'" onmouseout="this.style.backgroundColor=''"onclick="document.all.selectedValue.innerText=this.innerText">
<img src='http://lucky.myrice.com/images/meng2.gif' border="0" align="absmiddle" hspace="2"><a href="http://lucky.myrice.com">Visit3</a>
</td>
</tr>
</table>
</div>
<script>
function mm_Click()
{
if(document.all.dropdownOption.style.visibility == 'visible')
document.all.dropdownOption.style.visibility='hidden'
else
document.all.dropdownOption.style.visibility='visible'
}
function init(){
document.all.dropdownOption.style.width = document.all.selectLength.clientWidth + 22;
document.all.selectedValue.contentEditable = true;
var strTop = 0;
var strLeft = 0;
var e1 = document.all.selectLength;
while(e1.tagName != "BODY")
{
strTop += e1.offsetTop
strLeft += e1.offsetLeft
e1 = e1.offsetParent
}
document.all.dropdownOption.style.top = String(strTop + 24) + "px";
document.all.dropdownOption.style.left = String(strLeft) + "px";
}
function clickE()
{
if(window.event.srcElement.id !='mm')
document.all.dropdownOption.style.visibility='hidden';
}
document.onclick = clickE
window.onload = init
</script>
<br>
<br>
<input onclick="alert(document.all.selectedValue.innerText)" type="button" value="得到选中的值">
qjrein
2003-05-18
打赏
举报
回复
我有qjrein@163.com
fason
2003-05-18
打赏
举报
回复
http://fason.nease.net/code/form/select/editselect2.htm
Reker熊
2003-05-18
打赏
举报
回复
http://dob.tnc.edu.tw/demo.php?s=681&authorSerial=74&demoStyle=&setDemoInFrame=
Reker熊
2003-05-18
打赏
举报
回复
http://huagjiag.myrice.com/15kk.txt
elementUI el-
select
中el-option中
插入
图片
本文介绍如何在el-
select
组件的el-option中
插入
图片
,通过绑定后端返回的
图片
资源位置,实现下拉选项中显示
图片
和文字的结合
效果
。
mysql
插入
图片
代码_做简单的
插入
图片
代码 PHP+Mysql
本文提供了一种简单的方法,使用PHP和MySQL将
图片
插入数据库,并展示如何从数据库中读取和显示这些
图片
。通过示例代码,包括`insertPic.php`和`index.php`,演示了如何上传本地
图片
以及插入网络
图片
到数据库。
如何
select
选择器选项中
插入
图片
或色块
本文介绍了如何在下拉菜单中
插入
图片
,通过HTML模板定制选项样式,并详细解释了change方法的使用,包括选中和清除选项时的输入框样式配置,以及为何不直接使用change回调的原因。
elementui下拉框选择
图片
_Element-UI中
Select
选择器详解
本文详细介绍了在Vue+Element-UI项目中如何使用
Select
组件,包括如何局部引入,设置默认值,实现模糊搜索,自定义内容等,并提供了实际项目代码示例。还分享了在
Select
中
插入
图片
、控制下拉列表显示等高级用法。
layui中layer.open中
select
失效,表格中
插入
图片
,checkbox是否选中,查看大图,parent.layer.open中失效
在layui使用layer.open创建自定义弹窗时,遇到
select
失效的问题,原因是.layui-layer-page .layui-layer-content的overflow属性。通过修改样式并重新渲染
select
可解决。另外,当在parent.layer.open中使用弹窗,layui的
select
可能无法正常显示,建议使用原生
select
代替。此外,介绍了如何在表格中
插入
图片
以及如何判断checkbox是否选中。推荐了一些关于layui弹窗使用的资源。
JavaScript
87,988
社区成员
224,683
社区内容
发帖
与我相关
我的任务
JavaScript
Web 开发 JavaScript
复制链接
扫一扫
分享
社区描述
Web 开发 JavaScript
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章