<形式>没有< p>打破 [英] <form> without <p> break

查看:105
本文介绍了<形式>没有< p>打破的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HTMListas:


(我不能为此道歉 - 太多常用词。)


我有一个<形式>标签。


它认为我想要一个< p>在表格之前和之后休息。我不。 (我的表格

是偷偷摸摸的和内联的。)


如何避免< form>周围的段落中断?标签?


-

Phlip
http://industrialxp.org/community/bi...UserInterfaces

HTMListas:

(Apologies for I can''t Google for this - too many common words.)

I have a <form> tag.

It thinks I want a <p> break before and after the form. I don''t. (My forms
are sneaky and inline.)

How do I avoid paragraph breaks around a <form> tag?

--
Phlip
http://industrialxp.org/community/bi...UserInterfaces

推荐答案

Phlip写道:
如何避免围绕< form>的段落中断?标签?
How do I avoid paragraph breaks around a <form> tag?




如果你在说段落符号时指的是边距,请使用:


表格{

保证金:0;

填充:0;

}



If you''re referring to margins when you say "paragraph breaks", use this:

form {
margin : 0;
padding : 0;
}


在Sun,2004年11月7日19:44:29 GMT,Phlip< ph ******* @ yahoo.com>写道:
On Sun, 07 Nov 2004 19:44:29 GMT, Phlip <ph*******@yahoo.com> wrote:
HTMListas:

(对此我不能谷歌道歉 - 太多常用词。)

我有一个< form>标签。

它认为我想要< p>在表格之前和之后休息。我不。 (我的
表格是鬼鬼祟祟的内联。)

如何避免在< form>周围的段落中断?标签?
HTMListas:

(Apologies for I can''t Google for this - too many common words.)

I have a <form> tag.

It thinks I want a <p> break before and after the form. I don''t. (My
forms
are sneaky and inline.)

How do I avoid paragraph breaks around a <form> tag?




你看到的休息并不是真正的< p>休息,虽然它是相关的。


一些块元素(不是内联的元素,或者不是在
中流动的元素)文本但是独立)有边缘和/或填充

使得其他元素在

屏幕上呈现时必须与它们保持一定距离。


p和form是两个这样的元素。所以你需要的是使用CSS

消除表格上的保证金。可能,相邻的元素将会有一个保证金,所以你可能也需要调整它。



The break you see is not really a <p> break, though it is related.

Some block elements (the ones which aren''t inline, or which don''t occur in
the flow of the text but stand alone) have marging and/or padding which
make other elements have to be a distance away from them when rendered on
screen.

p and form are two such elements. So what you need is to use CSS to
eliminate the margin on the form. Possibly, a neighboring element will
also have a margin, though, so you might have to adjust it too.


Leif K-Brooks写道:
Leif K-Brooks wrote:
Phlip写道:


如何避免<形式>标签?
How do I avoid paragraph breaks around a <form> tag?



如果你在说段落符号时指的是边距,请使用:

形式{
保证金: 0;
填充:0;
}



If you''re referring to margins when you say "paragraph breaks", use this:

form {
margin : 0;
padding : 0;
}




好​​的,这导致了这个:


哟:< form style =" margin:0; padding:0">< input type =" edit">< / form>


''给我这个:


哟:

[]


没有0填充的东西,就会有在yo:和< form>之间的< p />

的道德等价物。然而,现在有道德等价物

的< br />。


感谢您的提示,我会用它来减少周围的空白

其他形式。但是,我还有一个我不想休息的表格。

我需要学习在文本中插入小型表格。


-

Phlip
http ://industrialxp.org/community/bi...UserInterfaces


这篇关于&LT;形式&GT;没有&lt; p&gt;打破的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆