There is text in the front and buttons in the back. Click the button and the text becomes editable. How to do this? _html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:26:39
Original
1891 people have browsed it


The second picture has no editing lines and becomes editable directly


Reply to discussion (solution)

If it is jquery For 1.9, you can directly change the type

$("input").attr("type", newValue)

Do it with javascript or css3.

The reference is to achieve the effect you want
http://www.cnblogs.com/wanghun/archive/2012/07/20/2601252.html
http://www.oschina .net/code/snippet_214019_15746
http://www.aa25.cn/code/458.shtml

The reference is to achieve the effect you want
http://www.cnblogs.com /wanghun/archive/2012/07/20/2601252.html
http://www.oschina.net/code/snippet_214019_15746
http://www.aa25.cn/code/458.shtml
Very useful, thank you! Is there any way to change the picture at the back? I want the picture at the back to be an a label, and then the background of the a label is the shape of the pen, and then it changes after clicking! But it seems that the written js code cannot be changed, and then I changed an img tag, but it still can't be realized!

Use javascript, css3 can also be used.
Yesterday, using js to change the background of the a tag seemed to be useless. Now I have implemented the change in the front, but I can’t change the background in the back

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!