有没有可以编辑的水印

发布于 2024-09-29 02:03:14 字数 167 浏览 0 评论 0原文

我正在使用这个插件,它工作得很好,但我无法编辑文本......如果我点击它,它就会消失。有没有一种简单的方法来实现该功能或任何其他可能可以帮助我的插件

I am using this plugin and it works great but i cant edit the text ...if i click on it, it disappears. Is there an easy way to implement that or any other plugin that maybe able to help me

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

雨的味道风的声音 2024-10-06 02:03:14

我刚刚写了一个类似的片段,可能对您有用。如果浏览器可用,它将使用 html5 placeholder 属性,如果浏览器不支持它,它将回退。

链接到 jsfiddle 代码段

链接到其他 SO 帖子

编辑: 我误解了你的帖子,抱歉。

尝试一下这个示例。它不是很复杂,但它是一个小插件,应该可以帮助您入门。也许您可以提供更多信息,因为我不知道除了用值预先填充输入之外您为什么要这样做。

使用@Tom的评论我重写了这个jsfiddle。有很多方法可以实现这一目标,假设这就是您想要的。

I just wrote a similar snippet that may be useful to you. It would use the html5 placeholder attribute if it were available to the browser, and would fall back if the browser didn't support it.

Link to jsfiddle snippet

Link to other SO post

Edit : I misunderstood your post, sorry.

Try this example out. It's not very complicated, but it is a small plugin that should get you started. Maybe you could give a little more information, since I don't know why you would want to do this other than to pre-populate the inputs with values.

Using @Tom's comment I rewrote this jsfiddle. There are many ways to achieve this, assuming this is what you want.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文