Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/38.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
Html 注册旁边的图像_Html_Css - Fatal编程技术网

Html 注册旁边的图像

Html 注册旁边的图像,html,css,Html,Css,我已通过HTML注册: <form class="registerForm" id="registerForm" action="./index_public.php?page=pilot_insert" method="post" enctype="multipart/form-data"> <table> <tr> <td><span>Name</span>

我已通过HTML注册:

<form class="registerForm" id="registerForm" action="./index_public.php?page=pilot_insert" method="post" enctype="multipart/form-data">
    <table>
        <tr>
            <td><span>Name</span>
            </td>
            <td><span id="sprytextfield1">
                          <label>
                            <input type="text" name="name" id="name" tabindex="1" />
                          </label>
                          <span class="textfieldRequiredMsg">*Required</span></span>
            </td>
        </tr>
        <tr>
            <td class="style1">E-mail</td>
            <td><span id="sprytextfield6">
                        <label>
                        <input type="text" name="email" id="email" tabindex="8"/>
                        </label>
                        <span class="textfieldRequiredMsg">*Required</span><span class="textfieldInvalidFormatMsg">Formato no válido.</span></span>
            </td>
        </tr>
    </table>
    <input class="btn" value=Apply name=apply type="submit" />
</form>

名称
*必需的
电子邮件
*不需要válido。

我想在登记表旁边放一张图片。我试过了,但我只能把它放在登记表下面,不能放在旁边。救命啊

将特定宽度应用于表单和
float:left
并对图像使用
float:right

将表单和图像置于div中,并使用“float”css属性

 <div style="float:right">
<img src="http://assetprotectionsecured.com/wp-content/uploads/2010/12/alert_png.png">     </div>

这是正在运行的演示:

您可以尝试将“display:inline block;”应用于表单和图像

例如:

<form style="display:inline-block;"></form>
<img src="someimage" style="display:inline-block;"/>


下面是一个将表单和图像并排放置的小提琴示例:

使用
div
span
在html的
正文中创建两个容器,一个用于表单,另一个用于图像。然后根据应用css。

只需删除:“Formato no válido。”



如果需要,请在“注册”字段旁边添加图像

这绝对与PHP无关。。。
  <div style="float:right"><img src="http://assetprotectionsecured.com/wp-content/uploads/2010/12/alert_png.png"></div>