This is how you have to deal with *any* CSS framework. The framework provides a base. You override the base when you want to change something that the framework does by default.
(Of course, jQuery Mobile is more than a CSS framework. But for this purpose it can be lumped-in with CSS-only frameworks, such as Bootstrap.)
It's not specific to jQuery Mobile.
data-enhance really isn't meant to be used the way you are using it. It's more for when you just don't want to use a jQuery Mobile widget. So, for example, you want to use some button markup, but you don't want a jQuery-enhanced button widget. It isn't meant for cases where you simply don't like some aspect of the appearance and want to alter it.
I'd suggest you become intimately familiar with Web Inspector, Firebug, or some similar inspection tool.
via jQuery Forum http://forum.jquery.com/topic/managing-the-enhancements#14737000004775253
(Of course, jQuery Mobile is more than a CSS framework. But for this purpose it can be lumped-in with CSS-only frameworks, such as Bootstrap.)
It's not specific to jQuery Mobile.
data-enhance really isn't meant to be used the way you are using it. It's more for when you just don't want to use a jQuery Mobile widget. So, for example, you want to use some button markup, but you don't want a jQuery-enhanced button widget. It isn't meant for cases where you simply don't like some aspect of the appearance and want to alter it.
I'd suggest you become intimately familiar with Web Inspector, Firebug, or some similar inspection tool.
via jQuery Forum http://forum.jquery.com/topic/managing-the-enhancements#14737000004775253
0 التعليقات: