Create input as child of input

后端 未结 5 1199
猫巷女王i
猫巷女王i 2021-01-19 15:07

Is it possible to create a button that is the child of an text?


    

5条回答
  •  悲&欢浪女
    2021-01-19 15:52

    This will result in invalid HTML, so its not possible to do this. What you can do is create a div, which is a block element and fill it with a text box + button Inline elements.

    With some styling in your CSS you can make your div look like a textbox and your textbox like a div, without borders and bevels. Resulting in something that looks like the thing you are trying to achieve here.

    To get rid of the textbox look on your input use #YourTextBox {border: none;}

提交回复
热议问题