问题描述
他完全没有
我有一个< 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
推荐答案
我想问一下为什么"?;和什么是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.
这是练习吗?我们可以直接将答复发送给您的老师或
导师吗?然后我们可以解释为什么这是一个错误的练习。
这里是一个正确的答案(在某种程度上错误的问题可以有
正确答案):
div {text-align:justify;
保证金:0 2em; }
按钮{display:block;
margin:0 auto; }
要查看为什么理由在网页上很少合理的原因之一
页面,请使用包含很好的长词的div进行测试,例如
supercalifragilisticexpialidocious,并使用不同的窗口宽度。
-
Jukka K. Korpela(Yucca)
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/
亲爱的先生我知道所有,
这不是一个练习,而只是我网站的一小部分
我不会很好地说你的语言,但你也不会用我的语言...... 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
尊敬的先生我知道所有人,
Dear Mr."I know all",
一个人的反应很差想要帮助......
A poor choice of response from someone who wants help...
教师*是我们的朋友。 *特别是*对于那些想要学习的人。
Teachers *are* our friends. *Especially* for those who wish to learn.
也许您应该提供迄今为止最佳尝试的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.
更多相同的内容。
-
John
思考UIP的价值:
这篇关于< DIV>带有对齐和填充文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!