我试图实现新的jQuery Mobile Alpha 2.目前,data-role =“header”或data-role =“footer”中的任何链接都成为一个按钮.有办法禁用吗?
解决方法
新版本的jQuery Mobile(1.3pre)已经解决了这个问题.
从手册:
从手册:
“If you need to to create a header
that doesn’t follow the default
configuration,simply wrap your custom
styled markup in a container div
inside the header container and the
plugin won’t apply the automatic
button logic so you can write custom
styles for laying out the content in
your header.”
如果你grab the source from github它将工作.