本文介绍了Firefox中的表格离开1px的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 嗨! 我用以下CSS代码为我的桌子造型: [css] table。结果{ border-collapse:collapse; } table.results td { border:1px solid #a7a7a7; 保证金:0; 填充:0 4px 0 4px; } 问题是桌面在Firefox中向左移动了1px,但其他的浏览器如IE5.x,6.0和Opera 7.54正确地查看了这个表格。 有什么建议吗? 边界崩溃:崩溃;安全使用? - 问候, CezarHi!I''m styling my table with following CSS code:[css]table.results{border-collapse:collapse;}table.results td{border:1px solid #a7a7a7;margin:0;padding:0 4px 0 4px;}The problems is that table is moved 1px to left in Firefox, but otherbrowsers like IE5.x, 6.0 and Opera 7.54 view this table correctly.Any suggestion?Is border-collapse:collapse; safe to use?--Regards,Cezar推荐答案 如果没有更具体的信息(例如测试用例的URL), 我会建议如果您的设计被一个偏移的像素破坏,那么您的设计中存在的问题比这个问题更严重。Without more specific information to go on (such as a URL of a test case),I would suggest that if your design is ruined by one pixel of offset,there is a greater problem in your design than this issue. 如果没有更具体的信息(例如测试的URL),我建议如果你的设计被一个像素破坏了偏移,你的设计问题比这个问题更大。 Without more specific information to go on (such as a URL of a test case), I would suggest that if your design is ruined by one pixel of offset, there is a greater problem in your design than this issue. 我知道URL可能非常有用。让我们看看: 1. http://demo.ikeris.com/wdx/main/index.php 2.转到注册门票/登录 3.用户名:admin,密码:admin。 4.登录后您会看到表格5等待最长的门票:。在此之后 ,表格向左移动1px。我不知道为什么。 - 问候, CezarI knew that URL could be very useful. Let''s see:1. http://demo.ikeris.com/wdx/main/index.php2. Go to "Registering Tickets / Login"3. Username: admin, Password: admin.4. After login You see table "5 longest awaiting tickets:". After thisthe table is moved 1px to left. I don''t know why.--Regards,Cezar 如果没有更具体的信息(例如测试的URL),我建议如果你的设计被一个像素破坏了偏移,你的设计中存在的问题比这个问题更大。 Without more specific information to go on (such as a URL of a test case), I would suggest that if your design is ruined by one pixel of offset, there is a greater problem in your design than this issue. 我知道URL可能非常有用。让我们看看: 1. http://demo.ikeris.com/wdx/main/index.php 2.转到注册门票/登录 3.用户名:admin,密码:admin。 4.登录后您会看到表格5等待最长的门票:。在此之后,桌子向左移动1px。我不知道为什么。 I knew that URL could be very useful. Let''s see: 1. http://demo.ikeris.com/wdx/main/index.php 2. Go to "Registering Tickets / Login" 3. Username: admin, Password: admin. 4. After login You see table "5 longest awaiting tickets:". After this the table is moved 1px to left. I don''t know why. 当调整页面大小时,可以搞得一团糟 PeterWhen resizing the page lokks a messPeter 这篇关于Firefox中的表格离开1px的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
07-31 22:24