< DIV>带有对齐和填充文本 [英] <DIV> with a justify and padded text into

查看:83
本文介绍了< DIV>带有对齐和填充文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

他完全没有


我有一个< DIV有一个长文本和一个< buttonat the the bottom


我想要将按钮居中并证明文字的合理性我希望

文本边距 - 左边和右边2em相对于< divnargin


我该怎么办?请问CSS?


问候

He at all

I have a <DIVwith a long text and a <buttonat the very bottom

I want to center the button and to justify the text and I want the
text-margin-left and right of 2em relative to the <divnargin

How can I make the CSS please?

Regards

推荐答案

Scripsit Bob:
Scripsit Bob:

我有一个< DIV,一个长文本和一个< buttonat,最底部
I have a <DIVwith a long text and a <buttonat the very bottom



我想问一下为什么"?;和什么是URL?,但我不敢问。我仍然相信网络作者留下的合理性。

I''d like to ask "why?" and "what''s the URL?", but I''m afraid to ask. I still
have belief in the rationality of web authors left.


我想把按钮置于中心并证明文字的合理性我想要的

文本边距 - 左边和右边2em相对于< divnargin


我该如何制作CSS?
I want to center the button and to justify the text and I want the
text-margin-left and right of 2em relative to the <divnargin

How can I make the CSS please?



这是练习吗?我们可以直接将答复发送给您的老师或

导师吗?然后我们可以解释为什么这是一个错误的练习。


这里是一个正确的答案(在某种程度上错误的问题可以有

正确答案):


div {text-align:justify;

保证金:0 2em; }

按钮{display:block;

margin:0 auto; }


要查看为什么理由在网页上很少合理的原因之一

页面,请使用包含很好的长词的div进行测试,例如

supercalifragilisticexpialidocious,并使用不同的窗口宽度。


-

Jukka K. Korpela(Yucca)
http://www.cs.tut.fi/~jkorpela/

Is this an exercise? Can we send the replies directly to your teacher or
tutor? Then we could explain why it''s a wrong exercise.

Here''s a correct answer though (to the extent that wrong questions can have
right answers):

div { text-align: justify;
margin: 0 2em; }
button { display: block;
margin: 0 auto; }

To see one of the reasons why justification is seldom justified on web
pages, test this with a div containing nice long words like
supercalifragilisticexpialidocious, and use different window widths.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/


" Jukka K. Korpela"

在不理解我的想法的情况下写了
"Jukka K. Korpela"
wrote without understand my idea

这是练习吗?我们可以直接将答复发送给您的老师或

导师吗?然后我们可以解释为什么这是一个错误的练习。


这里是正确的答案(在某种程度上错误的问题可以

有正确的答案):


div {text-align:justify;

保证金:0 2em; }

按钮{display:block;

margin:0 auto; }


要查看为什么理由在网页上很少合理的原因之一

页面,请使用包含很好的长词的div进行测试,例如

supercalifragilisticexpialidocious,并使用不同的窗口宽度。
Is this an exercise? Can we send the replies directly to your teacher or
tutor? Then we could explain why it''s a wrong exercise.

Here''s a correct answer though (to the extent that wrong questions can
have right answers):

div { text-align: justify;
margin: 0 2em; }
button { display: block;
margin: 0 auto; }

To see one of the reasons why justification is seldom justified on web
pages, test this with a div containing nice long words like
supercalifragilisticexpialidocious, and use different window widths.



亲爱的先生我知道所有,


这不是一个练习,而只是我网站的一小部分

我不会很好地说你的语言,但你也不会用我的语言...... b $ b语言...... ....................................

前一段时间这个NG很亲切,没有像你这样的老师

但只有

的朋友..................... ...................... ............................ ...

您编写的代码(右)

不像我的想法那样工作!!!!!!!!!!

进入< divI''ld想要一些合理的文本

边距是文本而不是div,我的问题是将文本定位到文本中div和按钮mu st被集中在div中

最后我正在寻找文本和按钮的绝对位置

进入div

很多问候

Dear Mr."I know all",

It is not an exercise but only a little part of my site
I do not speack well your language but also you do not speack my
language.......................................... .
One time ago this NG was very kindly and there was not teachers like you
but only
friends........................................... ...............................
The code (right) that you wrote
do not work like my idea !!!!!!!!!!
Into the <divI''ld want some justify text
The margin is of the text and not of the div and my problem is to position
the text into the div and button must be centered into the div
At last I am looking for a position absolute of the text and of the button
into the div
Many regards


Bob写道:
Bob wrote:

" Jukka K. Korpela"

写不明白我的想法
"Jukka K. Korpela"
wrote without understand my idea

>这是一个练习吗?我们可以直接将回复发送给您的老师或导师吗?然后我们可以解释为什么这是一个错误的练习。

这里是一个正确的答案(在某种程度上错误的问题可以得到正确的答案):

div {text-align:justify;
margin:0 2em; }
按钮{display:block;
margin:0 auto;为了看到为什么在网页
页面上很少有理由证明其合理性的原因之一,请使用包含漂亮的长单词的div进行测试,例如
supercalifragilisticexpialidocious,并使用不同的窗口宽度。
>Is this an exercise? Can we send the replies directly to your teacher or
tutor? Then we could explain why it''s a wrong exercise.

Here''s a correct answer though (to the extent that wrong questions can
have right answers):

div { text-align: justify;
margin: 0 2em; }
button { display: block;
margin: 0 auto; }

To see one of the reasons why justification is seldom justified on web
pages, test this with a div containing nice long words like
supercalifragilisticexpialidocious, and use different window widths.



尊敬的先生我知道所有人,


Dear Mr."I know all",



一个人的反应很差想要帮助......

A poor choice of response from someone who wants help...


>

这不是一个练习,只是我网站的一小部分

我不会很好地说你的语言,但你也不会用我的

语言。[...]

前一段时间这个NG非常友善而且有不是像你这样的老师

但只有朋友
>
It is not an exercise but only a little part of my site
I do not speack well your language but also you do not speack my
language.[...]
One time ago this NG was very kindly and there was not teachers like you
but only friends



教师*是我们的朋友。 *特别是*对于那些想要学习的人。

Teachers *are* our friends. *Especially* for those who wish to learn.


你写的代码(右)不像我的想法那样工作![...]

进入< divI''ld想要一些合理的文本

保证金是文本而不是div,我的问题是定位

文本进入div和按钮必须居中于div

最后我正在寻找文本和按钮的绝对位置

到div
The code (right) that you wrote do not work like my idea ![...]
Into the <divI''ld want some justify text
The margin is of the text and not of the div and my problem is to position
the text into the div and button must be centered into the div
At last I am looking for a position absolute of the text and of the button
into the div



也许您应该提供迄今为止最佳尝试的URL。我实际上认为Jukka的帖子准确地满足了你的要求,同时在同一时间解释了做你想说的事情的陷阱。所以

'至少有两个人不明白。即使在你的第二次尝试中,我也没有得到它。但如果你再试一次,你可能会得到更多的帮助,如果你好b $ b你很高兴。

Perhaps you should provide a URL of your best attempt so far. I actually
thought Jukka''s post accurately fulfilled your request while at the same
time explaining the pitfalls of doing what you said you wanted. So
that''s at least two of us who didn''t understand. Even on your second
attempt I don''t get it. But if you try again, you might get more help if
you''re nice about it.


许多问候
Many regards



更多相同的内容。


-

John

思考UIP的价值: http://blinkynet.net/comp/uip5.html


这篇关于&LT; DIV&GT;带有对齐和填充文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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