div&垂直对齐... [英] div & vertical alignment...
问题描述
我有一个带有300和高度100的div
i需要放置一个以此框为中心的文本,有人可以帮忙吗?
thankx
Mel
i have a div with with 300 and height 100
i need to place a text centered withing this box, can someone please help ?
thankx
Mel
推荐答案
Mel写道:
Mel wrote:
我有一个div与300和身高100
我需要放置一个以此框为中心的文字,有人可以帮忙吗?
i have a div with with 300 and height 100
i need to place a text centered withing this box, can someone please help ?
http://dorward.me.uk/www/centre/
-
Els
http://locusmeus.com/
Sonhos vem。 Sonhos v?o。 Orestoébritfeito。
- Renato Russo -
http://dorward.me.uk/www/centre/
--
Els
http://locusmeus.com/
Sonhos vem. Sonhos v?o. O resto é imperfeito.
- Renato Russo -
抱歉,我回答了我的问题。我有与以前相同的div,但是希望
在div框中间有一个提交按钮
所有我看到浮动的是文本-align:中心"因为div的内容是一个表单元素而不是文本,所以不会执行
的工作
感谢你的帮助
" Els" < EL ********* @ tiscali.nl>在留言中写道
news:40 ********************** @ dreader2.news.tiscal i.nl ...
sorry i take my question back. i have the same div as before, but would like
to have a submit button centered within the div box
all i see floating around is "text-align:center" and that does not do the
job since the content of the div is a form element and not text
thankx for ''er help
"Els" <el*********@tiscali.nl> wrote in message
news:40**********************@dreader2.news.tiscal i.nl...
梅尔写道:
Mel wrote:
我有一个带有300和高度100的div
我需要放置一个以此框为中心的文本,有人可以
i have a div with with 300 and height 100
i need to place a text centered withing this box, can someone please
help?
http:// dorward。 me.uk/www/centre/
-
Els
http://locusmeus.com/
Sonhos vem。 Sonhos v?o。 Orestoébritfeito。
- Renato Russo -
help ?
http://dorward.me.uk/www/centre/
--
Els
http://locusmeus.com/
Sonhos vem. Sonhos v?o. O resto é imperfeito.
- Renato Russo -
Mel写道:
Mel wrote:
抱歉,我带我的问题回来了。我有与以前相同的div,但是希望
在div框中间有一个提交按钮
所有我看到浮动的是text-align:center由于div的内容是表单元素而不是文本,因此不执行
工作
sorry i take my question back. i have the same div as before, but would like
to have a submit button centered within the div box
all i see floating around is "text-align:center" and that does not do the
job since the content of the div is a form element and not text
为什么不给网址或者至少有一些代码?
表格元素也可以使用text-align:center进行居中。
它不仅仅适用于文本。 />
-
Els
http://locusmeus.com/
Sonhos vem。 Sonhos v?o。 Orestoébritfeito。
- Renato Russo -
Why don''t you give a url or at least a bit of the code?
A form element too can be centered using text-align:center.
It doesn''t just apply to text.
--
Els
http://locusmeus.com/
Sonhos vem. Sonhos v?o. O resto é imperfeito.
- Renato Russo -
这篇关于div&垂直对齐...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!