[英]wrapped captcha control in a p tag, how to shift it to the right?
将验证码控件包装在ap标签中,如何将其向右移约50像素?
编辑我正在使用.net控件使用reCaptcha。 我的输入元素在页面右侧约50像素处。
我的repactha正在渲染左对齐(一直到左,因此与其他输入字段相比,该对齐处于关闭状态)。
#foo { margin-left: 50px }
一般问题,一般答案:)
您是否尝试过将样式设置为50像素填充?
<p style="padding-left: 50px;"> ... </p>
如果这不起作用,则始终可以在控件之前对50像素的图像进行像素化。
你的问题真的很模糊。 我想验证码是使用图像实现的。 在这种情况下,您可以使用CSS。
#captcha {
position:relative;
left:50px; /* moves the element 50px to the right */
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.