Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/80.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_Css - Fatal编程技术网

在jquery mobile中重新调整选择框的大小?

在jquery mobile中重新调整选择框的大小?,jquery,css,Jquery,Css,我想缩小jquery mobile中的选择框 这是我的代码: <td > <select id="nlocation1" name="nlocation1" data-mini ="true" /> <?php $sql1="select * from apps.xx_fa_location_mob order by description"; $res= oci_parse($link, $sql1);

我想缩小jquery mobile中的选择框

这是我的代码:

 <td >
    <select id="nlocation1" name="nlocation1" data-mini ="true" />

    <?php 
        $sql1="select * from apps.xx_fa_location_mob order by description";
        $res= oci_parse($link, $sql1);
         oci_execute($res);

         while ($row = oci_fetch_array($res))
         {
        $str  = $row[2] ;
        $str_id = $row[1];
        echo "<option value = '$str_id' >$str</option>";

        }



?>

            </select></td>


将css应用于.ui选择

.ui-select{width: 50% !important;}
如果要应用于特定的选择框

<td id="myFirstSelect" >
<select id="nlocation1" name="nlocation1" data-mini ="true" />
<td id="myFirstSelect" >
<select id="nlocation1" name="nlocation1" data-mini ="true" />
#myFirstSelect .ui-select{width: 50% !important;}