< div align =" center">的替换 [英] Replacement for <div align="center">
本文介绍了< div align =" center">的替换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好,
在过去的一个HTML中心时,我总是使用:
< div对齐= QUOT;中心"> ...< / div>
但是,在VS 2005中,我收到以下警告:
验证(XHTML 1.0)过渡):属性''align''被认为是
过时。建议使用更新的结构。
我应该使用哪种新结构?
谢谢!
Ben
Hello,
When centering a block of HTML, in the past, I''ve always used:
<div align="center"> ... </div>
However, in VS 2005, I get the following warning:
"Validation (XHTML 1.0 Transitional): Attribute ''align'' is considered
outdated. A newer construct is recommended."
What is the newer construct I should use?
Thanks!
Ben
推荐答案
< CENTER> ...< / CENTER>
Ben Amada < be*@REpoMOweVErpick.com>在消息中写道
news:u
<CENTER>...</CENTER>
"Ben Amada" <be*@REpoMOweVErpick.com> wrote in message
news:u
************** @ TK2MSFTNGP14.phx.gbl ...
**************@TK2MSFTNGP14.phx.gbl...
你好,
当集中一个HTML块时,过去我总是使用:
< div align =" center" ;> ...< / div>
然而,在VS 2005中,我收到以下警告:
验证(XHTML 1.0 Transitional):属性''对齐' '被认为过时了。建议使用更新的结构。
我应该使用哪种新结构?
谢谢!
Ben
Hello,
When centering a block of HTML, in the past, I''ve always used:
<div align="center"> ... </div>
However, in VS 2005, I get the following warning:
"Validation (XHTML 1.0 Transitional): Attribute ''align'' is considered
outdated. A newer construct is recommended."
What is the newer construct I should use?
Thanks!
Ben
Scott M.写道:
Scott M. wrote:
< CENTER> ...< / CENTER>
<CENTER>...</CENTER>
嗨斯科特,
你确定吗?没有< center>多年来已被弃用?
Ben
Hi Scott,
Are you sure?? Hasn''t <center> been deprecated for years now?
Ben
这篇关于< div align =" center">的替换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文