盒装文字 [英] Boxed text

查看:90
本文介绍了盒装文字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道HTML4 + CSS1是否有办法创建盒装文本。我的意思是

的内容与dicussion的话题没有直接关系,但

仍然有用。举个例子:


--- 8< ----------------------------- -------

一个段落......


+ ----------------- ----- +

|标题|

|顺便说一句...... |

| |

|此外...... |

+ ---------------------- +


现在回到我们的讨论......

--- 8< ---------------------------- --------


确保线路正确无误。

之前或之后没有换行标题,并且框内最后一段之后没有换行符。我要求b $ b要求太多吗? :-)


Gustaf

I wonder if there''s a way with HTML4 + CSS1 to create boxed text. I mean
content that isn''t directly related to the topic of dicussion, but is
still useful to know. Take this example:

---8<------------------------------------
A paragraph...

+----------------------+
| TITLE |
| By the way... |
| |
| And furthermore... |
+----------------------+

And now back to our discussion...
---8<------------------------------------

It''s tricky to get the linebreaks right. No linebreak before or after
the title, and no linebreak after the last paragraph in the box. Am I
asking too much? :-)

Gustaf

推荐答案

Gustaf Liljegren写道:
Gustaf Liljegren wrote:
我想知道HTML4 + CSS1是否有办法创建盒装的文本。我的意思是内容与讨论的话题没有直接关系,但仍然有用。拿这个
例子:

--- 8< ----------------------------- -------
一个段落......

+ ---------------------- +
|标题|
|顺便说一句...... |
| |
|而且... |
+ ---------------------- +

现在回到我们的讨论.. 。
--- 8< ------------------------------------

确保线路正确无误。标题之前或之后没有换行符,并且在框中的最后一个
段后面没有换行符。我问得太多了吗? : - )
I wonder if there''s a way with HTML4 + CSS1 to create boxed
text. I mean content that isn''t directly related to the
topic of dicussion, but is still useful to know. Take this
example:

---8<------------------------------------
A paragraph...

+----------------------+
| TITLE |
| By the way... |
| |
| And furthermore... |
+----------------------+

And now back to our discussion...
---8<------------------------------------

It''s tricky to get the linebreaks right. No linebreak
before or after the title, and no linebreak after the last
paragraph in the box. Am I asking too much? :-)




您是否正在寻找


< blockquote>

< h1> ; TITLE< / h1>

< p>

顺便说一句..

< / p>

< p>

此外......

< / p>

< / blockquote>





如果你仍然在标题之前或

最后一段之后占用太多空间,你可以添加到CSS :

blockquote h1 {margin-top:0;}

blockquote p {margin-top:1em; margin-bottom:0;}

-

Els
http:// locusmeus .com /

Sonhos vem。 Sonhos v?o。 Orestoébritfeito。

- Renato Russo -



Are you looking for

<blockquote>
<h1>TITLE</h1>
<p>
By the way..
</p>
<p>
And furthermore...
</p>
</blockquote>

?

If you still get to much space before the title or after the
last paragraph, you could add to the CSS:
blockquote h1 {margin-top:0;}
blockquote p {margin-top:1em;margin-bottom:0;}

--
Els
http://locusmeus.com/
Sonhos vem. Sonhos v?o. O resto é imperfeito.
- Renato Russo -


Gustaf Liljegren写道:
Gustaf Liljegren wrote:
我想知道如果有方法用HTML4 + CSS1来创建盒装文本。我的意思是
内容与讨论主题没有直接关系,但是仍然有用。举个例子:

--- 8< --------------------------------- ---
一段......

+ ---------------------- +
|标题|
|顺便说一句...... |
| |
|而且... |
+ ---------------------- +

现在回到我们的讨论.. 。
--- 8< ------------------------------------

确保线路正确无误。
标题之前或之后没有换行符,并且框中最后一段之后没有换行符。我问得太多了吗? : - )
I wonder if there''s a way with HTML4 + CSS1 to create boxed text. I mean
content that isn''t directly related to the topic of dicussion, but is
still useful to know. Take this example:

---8<------------------------------------
A paragraph...

+----------------------+
| TITLE |
| By the way... |
| |
| And furthermore... |
+----------------------+

And now back to our discussion...
---8<------------------------------------

It''s tricky to get the linebreaks right. No linebreak before or after
the title, and no linebreak after the last paragraph in the box. Am I
asking too much? :-)




你所指的那些差距不是换行符,而是填充和/或

的利润。


这是我想要的例子。盒子有点局促,但是你可以轻松地为它添加一些填充物。我只想展示可以完成的工作。

http://tranchant.plus.com/tmp/boxedtext

-

Mark。



Those gaps you''re referring to are not linebreaks, but padding and/or
margins.

Here''s my example of what you want. The box is a bit cramped, but you
could easily apply some padding to it. I just wanted to show what could
be done.

http://tranchant.plus.com/tmp/boxedtext

--
Mark.


Mark Tranchant写道:
Mark Tranchant wrote:
Gustaf Liljegren写道:
Gustaf Liljegren wrote:
我想知道是否''使用HTML4 + CSS1创建盒装文本的方法。我指的是与讨论主题没有直接关系的内容,但仍然有用。举个例子:

--- 8< --------------------------------- ---
一段......

+ ---------------------- +
|标题|
|顺便说一句...... |
| |
|而且... |
+ ---------------------- +

现在回到我们的讨论.. 。
--- 8< ------------------------------------

确保线路正确无误。
标题之前或之后没有换行符,并且框中最后一段之后没有换行符。我问得太多了吗? : - )
I wonder if there''s a way with HTML4 + CSS1 to create boxed text. I
mean content that isn''t directly related to the topic of dicussion,
but is still useful to know. Take this example:

---8<------------------------------------
A paragraph...

+----------------------+
| TITLE |
| By the way... |
| |
| And furthermore... |
+----------------------+

And now back to our discussion...
---8<------------------------------------

It''s tricky to get the linebreaks right. No linebreak before or after
the title, and no linebreak after the last paragraph in the box. Am I
asking too much? :-)



你所指的那些差距不是换行符,而是填充和/或
边距。

这里是我想要的例子。盒子有点狭窄,但你可以很容易地给它添加一些填充物。我只想表明可以做什么。

http://tranchant.plus.com/tmp/boxedtext




罐头梨?我只是失去了胃口!

马蒂亚斯



Tinned pears? I just lost my appetite!
Matthias


这篇关于盒装文字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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