写作<在文本框工具提示上 [英] writing < on the textbox tooltip

查看:79
本文介绍了写作<在文本框工具提示上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我想在文本框上有一个工具提示,如
不要写<而是写<
但它始终呈现为
不要写<而是写< ;.

我想将确切的世界写成<在工具提示中,

有人可以帮忙吗?

谢谢

Vijay

Hi
I want to have a tooltip on a textbox as
Dont write < instead write <
but it always renders as
Dont write < instead write <.

I want to write the exact world as < in the tooltip,

Can anyone help?

Thanks

Vijay

推荐答案

您的问题不合逻辑.

您声明不要写<而是写<"

first<之间的区别是什么?而第二个
Your question is illogical.

You state "Dont write < instead write <"

What is the difference between the first < and the second


Well,在工具提示中包含<"或>"不应引起任何异常.因为那将不会成为您向服务器发出的请求的一部分(就像文本框条目一样!)

因此,只需继续并在文本框中添加工具提示即可.
可以有很多直观的方式来提醒/显示用户这种工具提示类型的信息.
例如:您还可以将文本框放在Div中,并在该div的悬停上显示工具提示文本.
Well, having ''<'' or ''>'' in a Tooltip shouldn''t cause any exception. As that is not going to be a part of your Request made to the server (like a textbox entry would be!)

So just go ahead and add a tooltip to the textbox.
There can be many intutive ways to alert/show user this tooltip kind of information.
Example: You can also put the textbox in a Div and have a tooltip text on hover of that div.


当我插入<和>符号在文本框中提交,然后会导致异常.但这对我来说不是问题.另外,我建议用户仅输入<和>在文本框中.

因此,我建议用户通过工具提示输入< >在文本框中.

但是,当我添加这样的工具提示时,请写<代替< <写>而不是>我得到的提示是write<代替<并写>而不是> ;.

我不能把< >在工具提示中.我希望能够在工具提示中写出这些字词< >我不希望它们被渲染为<和>在工具提示中.希望我现在明白了.

谢谢
When I insert < and > symbols in a textbox and submit then it causes exception. But it is not a problem for me. As an alternative I am suggesting users to just enter < and > in the textbox.

So I suggest to users via tooltip that you enter & lt; and & gt; in the textbox.

But when I add such a tooltip that write & lt; instead of < and write & gt; instead of > I get the tooltip as write < instead of < and write > instead of >.

I can not put & lt; and & gt; in the tooltip. I want to be able to write in the tooltip these words & lt; and & gt; i dont want them to be rendered as < and > in the tooltip. Hope I am clear now.

Thanks


这篇关于写作&lt;在文本框工具提示上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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