Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/315.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 在Mozilla Firefox中通过ASP.NET提供多行工具提示-可能吗?_C#_Asp.net_Firefox - Fatal编程技术网

C# 在Mozilla Firefox中通过ASP.NET提供多行工具提示-可能吗?

C# 在Mozilla Firefox中通过ASP.NET提供多行工具提示-可能吗?,c#,asp.net,firefox,C#,Asp.net,Firefox,有没有办法在Mozilla Firefox浏览器中的web控件(具体为ImageButton)上显示如下工具提示: 约翰·史密斯 24岁 性别:男 已尝试Environment.NewLine,\n\r\n,@“”(字符串文字跨越多行代码)。所有这些东西在InternetExplorer7中都能很好地工作,但在Mozilla中,所有的NewLine和\n都被空白所取代 有解决办法吗? 还有其他浏览器会以类似的方式忽略新线吗 警告:Mozilla在一行中显示了上面的示例文本(“John Smit

有没有办法在Mozilla Firefox浏览器中的web控件(具体为ImageButton)上显示如下工具提示:

约翰·史密斯 24岁 性别:男

已尝试Environment.NewLine,\n\r\n,@“”(字符串文字跨越多行代码)。所有这些东西在InternetExplorer7中都能很好地工作,但在Mozilla中,所有的NewLine和\n都被空白所取代

有解决办法吗? 还有其他浏览器会以类似的方式忽略新线吗

警告:Mozilla在一行中显示了上面的示例文本(“John Smith”等),就像我刚才提到的工具提示一样。让我们重复一下我想在Mozilla用户工具提示中看到的内容:

约翰·史密斯

24岁

性别:男


(每行数据后不应显示空行,但Mozilla会以单行或空行分隔显示所有数据-不幸的是,没有任何妥协…

这可能比您需要的要多,但这个jQuery插件在我有限的使用经验中非常好:

HTML4.016.2(我面前没有)说title属性不应该包含换行符,CRs和制表符应该替换为空格。不幸的是,Firefox在显示时而不是解析时强制执行此操作。但是HTML 5指定这不再是正确的行为,因此Firefox 3.next可能会正确执行此操作