Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/79.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
覆盖jquery mobile应用的字体权重_Jquery_Html_Css_Jquery Mobile - Fatal编程技术网

覆盖jquery mobile应用的字体权重

覆盖jquery mobile应用的字体权重,jquery,html,css,jquery-mobile,Jquery,Html,Css,Jquery Mobile,我试图使字体的重量正常,而不是jquerymobile默认的粗体 <div id="cont" data-role="fieldcontain"> <label for="select-choice-1" class="select">Choose shipping method:</label> <select style="font-weight: normal" name="select-choice-1" id="select-c

我试图使字体的重量正常,而不是jquerymobile默认的粗体

<div id="cont" data-role="fieldcontain">
    <label for="select-choice-1" class="select">Choose shipping method:</label>
    <select style="font-weight: normal" name="select-choice-1" id="select-choice-1">
        <option value="standard">Standard: 7 day</option>
        <option value="rush">Rush: 3 days</option>
        <option value="express">Express: next day</option>
        <option value="overnight">Overnight</option>
    </select>
</div>
但没有一个奏效,它仍然显示出大胆。请建议如何把它拆开


如果您使用firebug或类似工具检查呈现的页面,您会发现在运行时html结构与源html完全不同,这得益于生成pretty box的jQuery ui:

<span class="ui-btn-inner ui-btn-corner-all" aria-hidden="true">
    <span class="ui-btn-text">Standard: 7 day</span>
    <span class="ui-icon ui-icon-arrow-d ui-icon-shadow"></span>
</span>

id引用仅适用于此特定位置;如果要在所有位置应用正常字体大小,请将其删除。Fiddle:

您的Fiddle链接出现404错误,请更正。谢谢,我更正了链接
<span class="ui-btn-inner ui-btn-corner-all" aria-hidden="true">
    <span class="ui-btn-text">Standard: 7 day</span>
    <span class="ui-icon ui-icon-arrow-d ui-icon-shadow"></span>
</span>
#cont .ui-btn-text{font-weight:normal;}​