获得< p>无论内容如何都有固定的宽度 [英] getting a <p> to have a fixed width regardless of content

查看:53
本文介绍了获得< p>无论内容如何都有固定的宽度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨所有


i知道这不是发布css的合适地方,但我不知道

任何其他好的论坛发帖。


我想要做的是获得一个段落标签,以显示像文本框

,但在那里放置可以点击的链接。 (所以文本框不会

工作)。我希望每个< pto具有相同的长度(无论链接

长度),所以当它们排成行时它们排成一行。


这可能吗?


这是我到目前为止的样式< p:


style =''padding:none; margin:0;显示:内联;宽度:100px;''


这使得p与其他东西(我想要的)在同一条线上但是

可以获得宽度工作?$


问候


Marc

解决方案

libsfan01写道:


嗨所有


i知道这不是发布css的合适地方,但我不知道

任何其他好的论坛发帖。



news:comp.infosystems。 www。 authoring.stylesheets


我想做的是让一个段落标签显示为文本框

但在那里放置可以点击的链接。 (所以文本框不会

工作)。我希望每个< pto具有相同的长度(无论链接

长度),所以当它们排成行时它们排成一行。


这可能吗?



编号宽度属性不适用于内联元素。


< URL: http://www.w3.org/TR/CSS21/visudet.html#q4 >


[...]

-

Rob

< br>

RobG写道:


libsfan01写道:


> hi all

我知道这不是发布css的正确位置,但我不知道
任何其他好的论坛发帖。



news:comp.infosystems。 www。 authoring.stylesheets


>我想做的是让一个段落标签显示为文本框
但放在那里可以点击的链接。 (所以文本框不会工作)。我希望每个< pto具有相同的长度(无论链接的长度如何),所以当它们排成行时它们排成一行。

这可能吗?



编号宽度属性不适用于内联元素。



嗯,这是一件好事< pis a block。适用宽度。


-

Grtz,


Rik Wasmus



No. width属性不适用于内联元素。



我已尝试将其更改为跨度并将块应用于显示器

但这只是将其发送到新行。是否有某种方式获得

类型的块内联显示,其中宽度被遵守但显示

在线并且额外的内容被遗漏,如一个文本框,但只读了

这样一个链接是可点击的?


任何帮助都将不胜感激:-)


hi all

i know this isnt the right place to post a css thing but i dont know
any other good forums to post to.

what im trying to do is get a paragraph tag to display like a textbox
but put links in there which can be clicked on. (so a textbox wont
work). i want each <pto have the same length (regardless of link
length) so they line up ok when placed in rows.

is this possible?

here is my styling so far of the <p:

style=''padding:none;margin:0; display:inline; width:100px;''

this gets the p on the same line as the other stuff (which i want) but
can get the width to work?!

regards

Marc

解决方案

libsfan01 wrote:

hi all

i know this isnt the right place to post a css thing but i dont know
any other good forums to post to.

news:comp.infosystems.www.authoring.stylesheets

what im trying to do is get a paragraph tag to display like a textbox
but put links in there which can be clicked on. (so a textbox wont
work). i want each <pto have the same length (regardless of link
length) so they line up ok when placed in rows.

is this possible?

No. The width property does not apply to inline elements.

<URL: http://www.w3.org/TR/CSS21/visudet.html#q4 >

[...]
--
Rob


RobG wrote:

libsfan01 wrote:

>hi all

i know this isnt the right place to post a css thing but i dont know
any other good forums to post to.


news:comp.infosystems.www.authoring.stylesheets

>what im trying to do is get a paragraph tag to display like a textbox
but put links in there which can be clicked on. (so a textbox wont
work). i want each <pto have the same length (regardless of link
length) so they line up ok when placed in rows.

is this possible?


No. The width property does not apply to inline elements.


Well, a good thing <pis a block then. Apply width freely.

--
Grtz,

Rik Wasmus


No. The width property does not apply to inline elements.

ive tried changing it to span too and applying a block to the display
but this just sends it to a new line. is there some way of getting a
kind of ''block-inline'' display whereby width is adhered to but display
is online and extra content is missed off, like a textbox but readonly
so that a link is clickable?

any help would be greatly appreciated :-)


这篇关于获得&lt; p&gt;无论内容如何都有固定的宽度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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