使用嵌入式模板设置快速表单,但我希望将表单置于中心而不能。
<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 :(得分:0)
我从未使用过嵌入式表单,但是我读了documentation并设置了这个jsFiddle http://jsfiddle.net/roimergarcia/NxzCH/。看起来a
标记只是一个标记,而iframe
就在它之前插入。解决方案是在div中扭曲a
标记,并将text-align:center
设置为该div:
<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>