如何添加按钮内部输入 [英] How to add button inside input

查看:115
本文介绍了如何添加按钮内部输入的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想达到这个目的:

I am trying to achieve this:

我想要蓝色箭头作为一个按钮与悬停和onclick触发器;
这是可能的

I want the blue arrow to act as a button with hover and onclick triggers; Is this possible??

推荐答案

按钮不在输入内。这里:

The button isn't inside the input. Here:

input[type="text"] {
    width: 200px;
    height: 20px;
    padding-right: 50px;
}

input[type="submit"] {
    margin-left: -50px;
    height: 20px;
    width: 50px;
}

示例:http://jsfiddle.net/s5GVh/

这篇关于如何添加按钮内部输入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆