日期:2014-05-18  浏览次数:20445 次

如何让图片和input控件在一行显示?什么式样,现在我的代码会有上下分开。
HTML code
 <table cellspacing="0" cellpadding="0" rules="cols" border="1" id="ctl00_MainContent_GridView1"
        style="color: Black; background-color: White; border-color: #EFE6F7; border-width: 0px;
        border-style: Solid; font-size: 1em;">
        <tr align="left" style="background-color: #FFFFEF; font-size: 1em;">
            <td>
                <input type="hidden" name="ctl00$MainContent$GridView1$ctl09$hdSetId" id="ctl00_MainContent_GridView1_ctl09_hdSetId"
                    value="243" />
                <input name="ctl00$MainContent$GridView1$ctl09$lbltagurl" type="text" value="www.163.com"
                    readonly="readonly" id="ctl00_MainContent_GridView1_ctl09_lbltagurl" style="border-width: 0px;
                    border-style: None;" />
            </td>
            <td>
                <input name="ctl00$MainContent$GridView1$ctl09$lblkey" type="text" value="网站名次" readonly="readonly"
                    id="ctl00_MainContent_GridView1_ctl09_lblkey" style="border-width: 0px; border-style: None;" />
            </td>
            <td style="color: Black;">
                <div style="width: 160px">
                    <img src="Images/loading.gif" id="ctl00_MainContent_GridView1_ctl09_imgbaidusort"
                        style="" /><input name="ctl00$MainContent$GridView1$ctl09$lblbaidusort" type="text"
                            id="ctl00_MainContent_GridView1_ctl09_lblbaidusort" style="border-width: 0;"
                            onfocus="buttonFocus(this)" value="100内没有发现" /></div>
            </td>
            <td style="color: Black;">
                <img src="Images/loading.gif" id="ctl00_MainContent_GridView1_ctl09_imggooglesort"
                    style="" />
                <input name="ctl00$MainContent$GridView1$ctl09$lblgooglesort" type="text" id="ctl00_MainContent_GridView1_ctl09_lblgooglesort"
                    onfocus="buttonFocus(this)" style="border-width: 0;" value="100内没有发现" />
            </td>
            <td>
                <span id="ctl00_MainContent_GridView1_ctl09_lbldate" style="display: inline-block;
                    width: 160px;">2009年01月12日</span>
            </td>
            <td>
                <div>
                    <input type="submit" name="ctl00$MainContent$GridView1$ctl09$BtnfetchSort" value="获取排名"
                        onclick="getSorts();return false;" id="ctl00_MainContent_GridView1_ctl09_BtnfetchSort" /><input
                            type="submit" name="ctl00$MainContent$GridView1$ctl09$BtnSave" value="" id="ctl00_MainContent_GridView1_ctl09_BtnSave"
                            class="hidden" /><input type="submit" name="ctl00$MainContent$GridView1$ctl09$ctl00"
                                value="终止" onclick=" about(); return false;" />
                </div>
            </td>
        </tr>
    </table>


------解决方案--------------------
写到表格里
<table>
<tr>
<td><img /></td>
<td><