我剛剛升級到JQM 1.4.2。jquery mobile 1.4,帶有data-inline =「true」的按鈕仍然是全寬
我有一個按鈕data-inline="true"
,它仍然是滿的容器寬度。
你能幫忙嗎?
我的HTML:
<div id="blink">Enter your <span> "your Factor"</span>
<a href="#popupInfo" data-rel="popup" class="ui-btn ui-alt-icon ui-icon-info ui-btn-b ui-btn-icon-notext" data-inline="true" data-transition="pop" data-overlay-theme="b" data-position-to="origin">Learn more</a>:
</div>
的Html由JQM增強:
<div id="blink">Enter your <span> "your Factor"</span>
<a href="#popupInfo" data-rel="popup" class="ui-btn ui-alt-icon ui-icon-info ui-btn-b ui-btn-icon-notext" data-inline="true" data-transition="pop" data-overlay-theme="b" data-position-to="origin" aria-haspopup="true" aria-owns="popupInfo" aria-expanded="false">Learn more</a>:
</div>
添加類'ui-btn-inline'。 – Omar
打得好@Omar!謝謝 – Louis