日期:2014-05-17  浏览次数:20691 次

添加CSS问题
有下面这段代码:
HTML code

<span>
<form action="query_v1.php?action=2&cid=338929&classt=" method="post">
关&nbsp;键&nbsp;词:
<ul>
<input name="KEY" id="KEY" type="text" class="input_s_1 inputProSearch" value="" />
<li>                        
<input type="radio" class="radio_s_1 search_radio" name="ASASD" id="search_ic" checked/>
XXX
<input type="radio" class="radio_s_1 search_radio" name="ASASD" id="search_nic" />
XXX                         
</li>
<li><input type="image" src="../../images/shop/nASAS12112/btn_search.gif" /></li>
</ul>
</form>
</span>


想在不改动HTML代码的前提下,只通过css控制来将这些元素摆成一排;(不改动HTML)



------解决方案--------------------
CSS code

<style type="text/css">

ul input,ul li{display:inline;}

</style>