问题标签 [padding]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
css - 为什么 IE7 不能识别锚标签上的 CSS 填充样式?
我的网站在 Firefox、Safari、Chrome 和 Opera 中运行良好,但由于某种原因 IE7 无法识别任何锚标记上的 css 填充。我想不通。在 IE7 中,如果您查看主页http://revolvermag.com上显示“exclusives|popular|recent comments”的选项卡,您会发现没有应用填充。
我已经解决了填充没有被应用于网站其他地方的锚标签的问题,但在这里它看起来特别糟糕。任何人都知道这方面的 CSS 修复?
iphone - 使用 NSNumberFormatter 在货币符号和值之间填充空格
抱歉,如果这是一个愚蠢的问题,但我正在尝试为我的 iphone 应用程序格式化货币值并且正在努力左对齐货币符号,但右对齐值。因此,“$123.45”的格式为(比如说)
决于格式宽度。这是一种会计格式(我认为)。我用 NSNumberFormatter 尝试了各种方法,但无法得到我需要的东西。
谁能建议如何做到这一点?
谢谢
适合
jquery - 动态填充 (jQuery)
也不
...这些工作。我究竟做错了什么?
谢谢!
css - 段落 ”" 未应用填充
以下三段代码的行为完全相同:
如何让段落两边缩进?(我尝试了 15px 而不是 15(编辑 - 但仅在前两个上),我还尝试用逗号分隔数字,就像我在 Google 上找到的示例一样。)
上面的代码在body中的一个div中,不涉及其他div或表等。
div 定义:
谢谢你的帮助。
css - 填充在 IE 和 Firefox 中具有蓝色边框,但在 Chrome 中没有
好吧,只是为了让它快一点。
1) 使用 Firefox / IE - 使用 Chrome 访问 www.simplefire.com.au。
2) 右边的图片在 Firefox / IE 上似乎有蓝色边框,但 Chrome 完美显示页面。
任何人都知道问题可能是什么?
我正在使用 wordpress,如果它有助于我的 style.css 可以在这里找到: http ://shortText.com/m5c9l0pel
感谢各位的帮助!
padding - 如何在不使用 css 的情况下并排获得两个 TD 单元
在下面的 HTML 片段中,我希望两个单元格并排放置,它们之间没有空格;如果可能,不使用 css。如果第二个的最左边的位置是第一个的最右边的位置,为什么它们之间会有任何空间?谢谢。
html - 摆脱跨度之间的空间
我正在尝试用 HTML 模拟标签栏。
我希望根据文本长度(即没有固定宽度)设置每个选项卡的宽度,并在超出屏幕宽度的情况下自动换行。
我几乎实现了:
但是,打开标签图像和关闭标签图像之间有一个非常烦人的空间。
如您所见,我尝试了填充、间距和边框,但没有成功。
编辑:
我尝试用一个小表(一行,三个<td>
s)替换跨度,但它是一样的,只是之间的空间更小。
html - IE8 padding-bottom 没有出现在可滚动的 div 上
我一直在寻找一个 IE8 问题的解决方案,该问题涉及在具有溢出的 div 上填充:auto。当内容可滚动时,IE8 似乎不支持底部填充。可以在此处查看问题的示例http://jsfiddle.net/Gbp5U/(问题仅出现在 IE8 中)
在 IE8 中,当内容滚动到底部时,底部填充看起来是 0px。我测试过的所有其他浏览器都显示底部填充。IE8 中的开发人员工具将底部填充报告为 20px,但对我来说显然不是这种情况。
有没有其他人遇到过这个问题并找到了解决方案。我目前唯一的解决方法是强制 IE8 进入我不想这样做的兼容模式。
safari - CSS: Chrome and Safari seem to 'add' border to width, while IE, Firefox & Opera don't
I'm trying to achieve cross-browser consistency for my website.
It's about this page: http://www[insert-dot-here]geld[insert-dash-here]surfen[insert-dot-here]nl/uitbetalingen.html (please note that I prefer this URL not to be made crawlable for seo-bots)
If you view this page in IE, Firefox or Opera, everything is fine, but in Chrome and Safari the tables are a little out of line (as you'll probably clearly notice).
What seems to be the problem?
It appears to me that in Chrome and Safari the left and right border (2px) in total are added to the set table width, while in the other browsers the border is considered part of the width.
The (most) relevant CSS-lines are the following ones (from the table.css
file, also available through the page's source file):
So basically I have used a table-structure to organize images, like this: (the class of the table is uitbetaling
)
If, here, I set the width of table.uitbetaling
and table.uitbetaling img, table.uitbetaling td
to the same value (e.g. both 496
or 498
), the "problem" in Chrome and Safari is solved, however in Firefox the right side border is than blank. Because the right-side border can't "fit" in anymore. img
and td
must be at least 2px more narrow than table.uitbetaling
for the right-border be visible in Firefox.
Is there any way to solve this?
java - AES 代码抛出 NoSuchPaddingException:填充 NoPaddin 未知
以下代码尝试使用带有非对称密钥的 AES 加密数据:
但在线
它抛出
这是什么?以及如何解决?