【发布时间】:2012-07-12 16:07:09
【问题描述】:
我正在使用 HTML5 和 jQuery mobile 开发移动 Web 应用程序。 HTML5 Mobile Boilerplate 建议:
<body>
<div id="container">
<header>
</header>
<div id="main" role="main">
</div>
<footer>
</footer>
</div> <!--! end of #container -->
</body>
建议在jQuery mobile (Section "Putting it together: Basic single page template") 上
<body>
<div data-role="page">
<div data-role="header"></div>
<div data-role="content"></div>
<div data-role="footer"></div>
</div>
</body>
哪种方式更可取?
<header> 和 data-role="header" 有什么区别?
我确实尝试过用谷歌搜索,但到目前为止没有答案。
【问题讨论】:
标签: html jquery-mobile mobile-application