没有合适的资源?快使用搜索试试~ 我知道了~
首页input 文本框 文字垂直居中对齐 ie firefox
资源详情
资源评论
资源推荐
当定义了 Text 的 height 属性时,在 Text 中输入的文字都不是垂直居中的,不过你可以添加CSS来控制它,让输入的文字垂直居中,使网页更完美。
复制代码代码如下: <html> <head> <style type=”text/css”> #text { height:20px; vertical-align:middle; line-height:20px; /*line-height must be equal to height*/ } </style> </head> <body> <input type=”text” id=”text”> </tabl
评论0