English 中文(简体)
Jquery show/Hide in safari
原标题:Jquery Show/Hide in safari

我创立了一条简单的航道,显示和隐藏使用Jquery .show()和.hide()。 它在观看月球时进行了适当的工作,但在Safari观看时,每当你藏匿/how子时,就会给航道增加空间。

例如:。 http://jsfiddle.net/My4d4/

问题回答

Don t use display: table and display: table-cell

似乎在Webkit(Safari和Acre)中重新铺设了“灯塔”,造成<代码>的显示:表-细胞/代码”内容被错误地重新搁置。 如果含有div(有的表格:)是隐蔽的,随后再播,这些物品将作正确的油漆。

然而,如果“<代码>显示:表-cell要素是隐蔽的,并重新出现,则其以前的宽度被计算回到囚室的位置及其目前的宽度上,从而造成奇怪的行为。

我建议使用百分点,float:左侧和缺省显示器。 如果你需要一个表格,则使用一个表格。 如果你想要避免表格,避免表格,并正确。

Please see my working example at jsFiddle





相关问题
Font Rendering between Mozilla and webkit

I m not sure if this has anything to do with the recent Safari update, but I m beginning to notice this a lot. There is a drastic difference in the way each browser is rendering fonts. for instance, ...

How i can track Safari activity from my application

I have to develop an application to monitor Safari activity like all open url , tabs on particular window and loding time of particular url. I also need to track online streaming that is happening on ...

Drop down background url in Safari Issue

selectBox.selectCSS { background: url(/Images/replacementSelectBackground.png) top left no-repeat height:auto; } I have an issue in Safari only where the image is not rendering on top ...

CSS specific for Safari

How do you target specifically safari in css with styles?

How to get a flash url in a webpage using a webframe?

As we know , When we load frame from webpage of safari, we will invoke the delegate methods of webkit informal protocol(WebFrameLoadDelegate): webView:didStartProvisionalLoadForFrame: webView:...

热门标签