2012-12-25 61 views
0

使用嵌入的模板设置快速表单,但我想居中表单,不能。中心窗体形式

<a name="form789985197" id="formAnchor789985197"></a> 
<script type="text/javascript" src="http://fs8.formsite.com/include/form/embedManager.js?789985197"></script> 
<script type="text/javascript"> 
EmbedManager.embed({ 
    key: "http://fs8.formsite.com/res/showFormEmbed?EParam=bJeI6E3QIKDSIfZNMjkSkRGOwQgdGLHi&789985197", 
    width: "70%" 
}); 
</script> 
<!-- Notes: 
To control the width of the form, change width: "100%" to any number or percentage. 
To pre-populate fields in the form or to use a custom resize callback, see http://fs8.formsite.com/documentation/embedded-form.html 
--> 

我该如何居中表格?

这里是代码垫link

+0

你不能含有它一个div,并使用'边界中心的DIV:汽车;'或'文本的align:center'? – kennypu

+1

这是不可能给未知的HTML和CSS的css建议 – charlietfl

+0

与我们分享您的CSS然后只有我们可以确定确切的问题... – krish

回答

0

我从来没有使用嵌入式表格,但我读了documentation并设置了这个jsFiddle http://jsfiddle.net/roimergarcia/NxzCH/。它看起来像a标记只是一个标记,而iframe就插在它的前面。解决的办法是弯曲一个div里面你a标签,并设置text-align:center到该分区:

<div id="formContainer" style='text-align: center;'> 
    <a name="form789985197" id="formAnchor789985197"></a> 
</div> 
<script type="text/javascript" src="http://fs8.formsite.com/include/form/embedManager.js?789985197"></script> 
<script type="text/javascript"> 
EmbedManager.embed({ 
    key: "http://fs8.formsite.com/res/showFormEmbed?EParam=bJeI6E3QIKDSIfZNMjkSkRGOwQgdGLHi&789985197", 
    width: "70%" 
}); 
</script> 
+0

它的工作 - 非常感谢! – Mike