English 中文(简体)
如何通过中央支助事务(无显示)消除自动产生的周期?
原标题:How to get rid of an automatically generated span via CSS (un-display)?
  • 时间:2012-05-01 20:26:50
  •  标签:
  • css
  • html

我正在使用Droupal Share this模块。 不幸的是,该单元最近的安全发布在生成的代码中增加了一个<>条码>/条码>,扰乱了我主要网页的布局。 以前,所有工作都受到罚款。

无法控制这一法典的产生:

<span class="chicklets twitter">&nbsp;</span>

Is it possible to remove/not display this span code via CSS? If yes how?

我尝试:

.chicklets twitter {
    display:none;
}

但没有成功。 我不是安保部的专家。 感谢。

<>>>>>

这里是来自Bug的一颗屏幕:

“entergraph

I have been trying the suggested solutions:

span.chicklets {
    display:none;
}

以上完全排除了所有股票市(可通过以下问题解释):

span.chicklets.twitter {
    display:none;
}

以上是冲锋枪,但火焰Bug的对应距离仍为阴影(见下文)。

“entergraph

当然,我需要保持我的顿。 是什么原因?

P.S.:永无明,我必要时在另一个问题上讨论这个额外问题。

最佳回答

如果你想把一个元素的风格与两个类别具体结合起来,就不会有空间。 警示指“级”,因此,你会向每一组发出警示,并没收:

span.chicklets.twitter {
    display: none;
}

正如“AndrewBrock”所建议的那样,只要你知道单一阶层以不受欢迎的方式影响到其他阶层,你也只能使用一个班级。

如果你需要时间来维持ton子,但不想占用空间,那么就改变:

span.chicklets.twitter {
    width: 0px;
}
问题回答

<代码>chicklets和twitter/code>为2个单独的类别。 仅需要将<代码>显示:无列入其中之一。

span.chicklets {
    display:none;
}

I have restricted this to only span elements with the class chicklets. Note that this could affect other span elements which also have the chicklets class

如果你放弃了这一意愿(将其移除而隐藏):

$(".chicklets.twitter").remove();




相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!