こんにちは、jQueryモバイルサイトを開発しています。
赤いボタンの表示に関する私の問題は、ヘッダーの「ホーム」ボタンと「製品」ボタンの幅が、それらの内部のテキストによって決定されているようです。これは、一方のボタンがもう一方のボタンよりも薄く見えることを意味します。ボタンを同じ一定の幅に設定する方法はありますか?ヘッダーで一貫したボタン幅を実現したいと思います。
おそらく、ボタンに間違ったHTML属性を使用していますか?
<div data-role="header" data-theme="c" class="mainNav">
<a href="index.php" id="headerLogo" data-role="none"><span class="logo"></span></a>
<div class="ui-btn-right menuBtn">
<a data-role="button" href="index.php" data-icon="home" data-iconpos="top">Home</a>
<a data-role="button" href="products.php" data-icon="settings" data-iconpos="top">Products</a>
</div>
</div>
私のモバイルウェブサイトはここにあります: http ://www.test-bed.co.uk/mobile/index.php
jQueryモバイルボタンのドキュメントは次のとおりです。
http://jquerymobile.com/demos/1.2.0-pre/docs/buttons/index.html