我试图创建一个类似于此的表单。 但我发现很难显示与表单元素内联的文本。如何在文本之间添加内联输入元素
表格将如下所示: 我证明受益所有人是____的居民,属于美国与该国之间的所得税条约的含义_______一些文字在这里。 (我要放置就位点的文本字段)
我试图创建一个类似于此的表单。 但我发现很难显示与表单元素内联的文本。如何在文本之间添加内联输入元素
表格将如下所示: 我证明受益所有人是____的居民,属于美国与该国之间的所得税条约的含义_______一些文字在这里。 (我要放置就位点的文本字段)
<p> I certify that the beneficial owner is a resident of <input type="text" /> </p>
放一个P(段)标签内的一切。
复制并粘贴代码。
这样的事情?
body {
line-height: 1.5em;
}
input {
outline:none;
border:0;
border-bottom: 1px solid;
max-width: 80px;
}
<form>
I certify that <input type="text"> within the meaning of the income tax treaty between the United States and that country <input type="text">
</form>
注意,除非指定为否则<input>
元件是内联元素。
Thanks..it's done – 2015-04-01 11:41:36
检查这个!这是你需要的吗?
<form>
<p>
Form will be something like this: I certify that the beneficial owner is a resident of <input type="text"></input> within the meaning of the income tax treaty between the United States and that country <input type="text"></input>.
</p>
</form>
为什么你觉得它很难?输入字段默认是内联元素,所以你应该能够将它们插入到你的文本中。 – Lee 2015-04-01 11:37:05
你能提供样例代码吗? – 2015-04-01 11:37:25