浏览器兼容性与边距的关系
我有一个最近才引起我注意的问题。我们有一份客户可以查看的报告。在 Firefox 中工作得很好,因为我们通常用它来测试。好吧,我们遇到过 2 起孤立的事件,客户在 chrome 或 ie 中加载它,并且边距和间距完全混乱。
这是一张照片......左边是chrome,右边是firefox......它应该看起来就像在firefox中一样。
https://i.sstatic.net/0h3Dv.jpg
我可以通过以下方式查看 50 份不同的报告同样的人,除了这个 1 之外,所有人都很好……现在是 2,但我完全不知道是什么原因造成的。就像我唯一能做的就是它在数据中,并且由于某种原因数据中的某些内容实际上弄乱了设置,但我还没有看到任何会导致它的东西。是否有任何特殊字符,即可以识别火狐浏览器只是跳过...另外..如果你需要我发布代码我可以...但它很长。我已经设置了表格单元格的宽度,并且这些特定页面的故事的宽度忽略了宽度。除了这些 2 之外,所有报告都可以在 chrome/firefox/ie 中正常工作。感谢您的帮助或建议。
编辑: 我确实限制了我认为似乎导致问题的部分,至少是我发送的图像中混乱的部分,
这没有显示我所做的任何更改..这正是原始的内容,所以即使对于我进入并设置宽度的每个单元格,正如我在OP中所说,它没有影响它,所以我使用原始代码,
这里是reports.aspx.cs页面
这里是 css 页面
抱歉长度太长 - 不得不使用pastebin链接,因为它的字符太多了。
编辑2:该报告的ID号相同...到目前为止..我有2个ID号可以做到这一点....但所有其他的似乎都工作正常..这让我认为这更多是一个数据问题..但与此同时..数据中的某些东西导致资源管理器和chrome吓坏了..我更多的是想弄清楚为什么他们吓坏了或者为什么firefox没有吓坏..它可能会帮助我找到导致整个问题的事情,因为当我查看数据库中的数据..一切看起来都很好,并且与正确显示的其他报告相匹配..但它可能很小,我什至没有意识到。
I have an issue that has just recently come to my attention. We have a report that clients can view. Works perfectly fine in Firefox because that's what we use to test normally. Well we've had 2 isolated incidents of where a client loaded it in chrome or ie and the margins and spacing are completely messed up.
Here is a photo...chrome on left, firefox on right..it is suppose to look just like it does in firefox.
https://i.sstatic.net/0h3Dv.jpg
i can look at 50 different reports by the same people and all are fine except for this 1...well now its 2 but i'm totally lost as to what caused this. Like the only thing i can thing of is it is in the data and for some reason something in the data is actually messing with the settings, but i havent seen anything that would cause it. is there any special characters that ie would recognize that firefox just skips over... also..if you need me to post code i can...but its long. I've set widths of table cells and of tale for these specific pages ignore the widths. All the reports work fine in chrome/firefox/ie except for these 2. Thanks for any help or advice.
EDIT:
i did limit it the the part that i think seems to cause the problem, at least the part that is messed up in the image i sent
this doesnt show any changes i have made..this is just what the original was, so even though for every cell i went in and set widths, as i said in OP, it didnt affect it so i went with original code
here is the reports.aspx.cs page
here is the css page
sorry for length - had to use pastebin links because it was too many characters for SO.
Edit 2: same id number for that report...so far..i have 2 id numbers that do this....but all the others seem to work fine..it makes me think its more of a data issue..but at same time..something in that data is causing explorer and chrome to freak out..i'm more of just trying to figure out why they are freaking out or why is firefox not freaking out..and it might help me find the thing causing the whole problem, because when i look at the data in the db ..it all looks fine and matches other reports that display correctly..but it might be something so small that i dont even realize it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
结果是一些数据让它变得混乱..IE 不会自动强制打破 url.. 或长字符串.. 强制打破.. 和一些样式调整.. 并让它工作。
turned out to be some data that was making it mess up..IE doesnt forcebreak a url..or long string of characters automatically..did a force break..and a few style adjustments..and got it to work.