Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/77.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 - Fatal编程技术网

Html 我怎么把它移到右边?

Html 我怎么把它移到右边?,html,Html,我怎么把它移到右边 <div class="contentcontainer med left"> <div class="headings alt"> <h2>Medium Width - Heading title here</h2> </div> <div class="contentbox">

我怎么把它移到右边

<div class="contentcontainer med left">
            <div class="headings alt">
                <h2>Medium Width - Heading title here</h2>
            </div>
            <div class="contentbox">
                <form action="#">
                    <p>
                        <label for="textfield"><strong>Text field:</strong></label>
                        <input type="text" id="textfield" class="inputbox" /> <br />
                        <span class="smltxt">(This is an example of a small descriptive text for input)</span>
                    </p>
                    <p>
                        <label for="errorbox"><span class="red"><strong>Missing field:</strong></span></label>
                        <input type="text" id="errorbox" class="inputbox errorbox" /> <img src="img/icons/icon_missing.png" alt="Error" /> <br />
                        <span class="smltxt red">(This is some warning text for the above field)</span>
                    </p>
                    <p>
                        <label for="correctbox"><span class="green"><strong>Correct field:</strong></span></label>
                        <input type="text" id="correctbox" class="inputbox correctbox" /> <img src="img/icons/icon_approve.png" alt="Approve" />
                    </p>
                    <p>
                        <label for="smallbox"><strong>Small Text field:</strong></label>
                        <input type="text" id="smallbox" class="inputbox smallbox" />
                    </p>
                    <select>
                        <option>Dropdown Menu Example</option>
                    </select>  <br /> <br />

                    <input type="file" id="uploader" /> <img src="img/loading.gif" alt="Loading" /> Uploading...

                    <p> <br />
                        <input type="checkbox" name="checkboxexample"/> Checkbox
                    </p>
                    <p>
                        <input type="radio" name="radioexample" /> Radio select<br />
                    </p>

                </form>         
                <textarea class="text-input textarea" id="wysiwyg" name="textfield" rows="10" cols="75"></textarea>
                <p><br /><br />Buttons styles</p>
                <input type="submit" value="Submit" class="btn" /> <input type="submit" value="Submit (Alternative)" class="btnalt" />
            </div>
        </div>

中等宽度-标题标题在这里

文本字段:

(这是用于输入的小型描述性文本示例)

缺少字段:
(这是上述字段的一些警告文本)

正确的字段:

小文本字段:

下拉菜单示例

上传。。。
复选框

收音机选择



按钮样式


如果要将所有内容向右移动,请使用css“float:right”

例如:

<div class="contentcontainer med left" style="float: right">

如果要将所有内容向右移动,请使用css“float:right”

例如:

<div class="contentcontainer med left" style="float: right">

您可以使用以下属性按设定的金额进行抵销:

<div class="contentcontainer med left" style="margin-left: 50px;">

您可以使用以下属性按设定的金额进行抵销:

<div class="contentcontainer med left" style="margin-left: 50px;">

尝试设置外部div的css“margin left”属性,使其远离屏幕左侧

<div class="contentcontainer med left" style="margin-left: 200px;">

(将200更改为适当的数字)


注意:尽量不要在最终产品中使用内联“style”属性-将其放在外部样式表中:)

尝试设置外部div的css“margin left”属性,以将其推离屏幕左侧

<div class="contentcontainer med left" style="margin-left: 200px;">

(将200更改为适当的数字)


注意:尽量不要在最终产品中使用内联“style”属性-将其放在外部样式表中:)

@DiGiTAL\u DOMAiN:您可以添加一个
右边距
将其向后推一点。@DiGiTAL\u DOMAiN:您可以添加一个
右边距
将其向后推一点。