pocket ie 在 html 中呈现回车符?

发布于 2024-08-18 05:51:55 字数 432 浏览 3 评论 0原文

我们正在编写一系列设计用于 Pocket IE 的屏幕,以及来自 Motorola(又名 Symbol)的一批手持式扫描仪单元。与往常一样,我试图以一种可读的格式来布局我的 HTML,在新的行上添加新的控件,而不是仅仅将我的代码一起运行成一个巨大的、不可读的混乱。

这是我的问题的一个例子。我有一系列 asp:linkbuttons,它们应该在新行上呈现每个按钮。在我的代码中,我将每个标记在新行上。然而,Pocket IE 实际上将代码文件中的 CrLf 渲染到输出中,在渲染的 A 标签之间放置了一个我无法控制的巨大空间。

我可以在页面中放入一些指令来阻止 pIE 渲染我在代码中放入的硬 CrLfs 吗?如果我想要一个新行,我只想放入 BR 标记,而不是让它实际从代码文件中渲染 CrLfs。

这些设备运行 WinMo 6.1。

We're writing a series of screens designed to be used on Pocket IE, on a batch of handheld scanner units from Motorola (aka Symbol). As is typical, I am trying to layout my HTML in something of a readable format, which new controls on new lines, instead of just running my code all together into one big giant unreadable mess.

Here is an example of my problem though. I have a series of asp:linkbuttons, which are supposed to render each on a new line. In my code I put each <asp:linkbutton> tag on a new line. Pocket IE however is actually RENDERING the CrLf in the code file into the output, putting a giant space between the rendered A tags which I cannot control.

Is there some directive I can put in the page to stop pIE from rendering the hard CrLfs that I put in my code? If I want a new line I want to just put in a BR tag, not have it actually render CrLfs from the codefile.

The devices are running WinMo 6.1.

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

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

发布评论

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

评论(1

放肆 2024-08-25 05:51:55

我将每个链接按钮包装在一个 div 中,然后渲染时没有换行符。

I wrapped each of the linkbuttons in a div, and then it rendered without the linebreaks.

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