如何垂直居中对齐文本与输入框_Div+CSS教程
更新时间:2012/8/2 点击:1607次
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh" lang="zh"> <head profile="http://www.w3.org/2000/08/w3c-synd/#"> <meta http-equiv="content-language" content="zh-cn" /> <meta http-equiv="content-type" content="text/html;charset=gb2312" /> <title>blueidea</title> <style type="text/css"> /*<![CDATA[*/ input { width:200px; height:30px; border:1px solid red; } /*]]>*/ </style> </head> <body> <input type="text" />aaaaaaaaaaaaaaaaaa </body> </html>