English 中文(简体)
如何防止在要素中增加某些特定类别?
原标题:In jquery mobile how to prevent to add some specific classes to elements?

For example in this case

“entergraph

I just don t want the class ui-shadow in the element and without overriding the css.

I tried data-shadow="false" but it doesn t hide the shadow. is there any other attribute to do this?

最佳回答

我不敢肯定,你只能把支部所增加的一类,而不使用杂货或推出自己的主题。

对于本地人来说,你可以选择确定这样的归属:

 data-role="none"

文件:

你可以用新的jQM提出自己的主题。 专题节目:

或者(无法确定这是否是最佳解决办法,因为它可能打破某种情形)将中央支助事务科删除了<代码>ui-shadow,但我将不选择这样做。

最后使用 j子,删除 class子

$( $element_id ).removeClass( ui-shadow );

// this might need a refresh as well
$( #page_id ).trigger( create );

既然我看见这份名单,你也可以再次提出。

 $( ul ).listview( refresh );
问题回答

您必须将<代码>数据-影子=“false”应用于示范集装箱(该元素有data-role=“popup” Depende)。

Example:

<a href="#modal-foo" data-rel="popup">Trigger</a>

<div id="modal-foo" data-role="popup" data-shadow="false">
  Crazy modal stuff!
</div>




相关问题
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!

热门标签