Подтвердить что ты не робот

JQuery Mobile устанавливает ширину 2 элементов на 80% и 20%

Я использую JQuery Mobile и пытаюсь установить ширину двух элементов, используя ui-grid-a, как показано в приведенном ниже коде. Результат - 2 элемента, ширина которых равна 50:50%. Я бы хотел, чтобы моя ширина входного текста была 80%, а моя кнопка была 20% в той же строке. Как это можно сделать?

<div data-role="footer" data-theme="a" class="ui-grid-a"  data-position="fixed">
    <div class="ui-block-a" >
        <input id="outgoingMsg" placeholder="Your Message . . .">
    </div>
    <div class="ui-block-b" >
        <div style="margin: 10px 0 0 0;">
            <a id="callDialog" href="#dialog" type="button" 
                 data-theme="b" data-rel="dialog"  
                 data-transition="slidedown">Send</a>
        </div>
    </div>
</div>
4b9b3361

Ответ 1

Вы можете переопределить ширину столбца каждой сетки.

<div  class="ui-block-a" style="width:80%"><input id="outgoingMsg" placeholder="Your Message . . ."></div>
<div  class="ui-block-b" style="width:20%" >
    <div  style="margin: 10px 0 0 0;">
        <a id="callDialog" href="#dialog" type="button" data-theme="b" data-rel="dialog"  data-transition="slidedown">Send</a>
    </div>
</div>

Ответ 2

Рабочий пример: http://jsfiddle.net/Gajotres/eFWRQ/

CSS:

#custom-footer .ui-block-a {
    width: 80% !important;
}

#custom-footer .ui-block-b {
    width: 20% !important;    
}

HTML:

<div data-role="footer" data-theme="a" class="ui-grid-a" id="custom-footer" data-position="fixed">
    <div  class="ui-block-a" ><input id="outgoingMsg" placeholder="Your Message . . ."></div>
    <div  class="ui-block-b" >
        <div  style="margin: 10px 0 0 0;">
            <a id="callDialog" href="#dialog" type="button" data-theme="b" data-rel="dialog"  data-transition="slidedown">Send</a>
        </div>
    </div>
</div>