社区
CSS
帖子详情
input type="image"问题
Cain
2003-11-26 05:45:14
<input type='image' name='get' src='images/shopping_image5.gif' onclick=\"MM_openBrWindow('comm.htm','','')\">
点这个图片的时候开启新窗口comm.htm,但是他同时还会跳转到action指定的页面.用按钮的话type可以指定为button,可是现在type为image,请问怎么解决这个问题.
...全文
51
3
打赏
收藏
input type="image"问题
点这个图片的时候开启新窗口comm.htm,但是他同时还会跳转到action指定的页面.用按钮的话type可以指定为button,可是现在type为image,请问怎么解决这个问题.
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
3 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
bzscs
2003-11-27
打赏
举报
回复
<input type='image' name='get' src='images/shopping_image5.gif' onclick=\"MM_openBrWindow('comm.htm','','');return false;\">
iinohk
2003-11-27
打赏
举报
回复
onclick="window.open();return false"
zhfkiller
2003-11-26
打赏
举报
回复
odAction="return false"
<
input
type
="
image
">图片按钮具有提交功能
input
type
="
image
">即可,此标签放置在<form>标签内就具有提交功能,如果不在<form>标签内,则可以使用<
input
type
="
image
" onClick = "formName.submit()">方式提交。<
input
type
="
image
...
input
type
=
image
function submitFrm(){return;}当标签
input
,
type
=
image
时候在form表中作提交作用的时候,表单点击就会自动提交。不管你submitFrm方法里有没有return都会提交到form中对应的action地址但是这个时候需要把
input
标签换
移动端利用
input
type
=“file“照相和选择本地文件的兼容性
问题
input
type
="file" accept="
image
/*" capture="camera"> <
input
type
="file" accept="video/*" capture="camcorder"> <
input
type
="file" accept="audio/*" capture="microphone"> /* accept规定可...
<
input
type
="
image
"> 和
用法区别
和 用法区别 w3c定义如下:
Image
定义图像形式的提交按钮。...必须把 src 属性 和 alt 属性 与 结合使用。...
input
type
="
image
" src="submit.gif" alt="Submit" /> ...
input
type
="
image
" src="xxx.gif
html
input
image
,
input
type
="
image
"
类型的元素"
image
"用于创建图形提交按钮,即提交采取图像而不是文本形式的按钮。值无 - 不应该指定值属性。活动没有。支持的通用属性所有,src,宽度,高度,形式,表单类型,表单方法,formnovalidate,格式IDL属性...
CSS
61,125
社区成员
60,706
社区内容
发帖
与我相关
我的任务
CSS
层叠样式表(英文全称:Cascading Style Sheets)是一种用来表现HTML(标准通用标记语言的一个应用)或XML(标准通用标记语言的一个子集)等文件样式的计算机语言。
复制链接
扫一扫
分享
社区描述
层叠样式表(英文全称:Cascading Style Sheets)是一种用来表现HTML(标准通用标记语言的一个应用)或XML(标准通用标记语言的一个子集)等文件样式的计算机语言。
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章