Home  >  Article  >  Web Front-end  >  怎样让DIV中的两个TEXTBOX垂直居中_html/css_WEB-ITnose

怎样让DIV中的两个TEXTBOX垂直居中_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:16:401171browse



在VS2010中


回复讨论(解决方案)

line-height

<div style="height:300px;border:solid 1px red;text-align:center;">    <input type="text" style="top:50%;position:relative;" />    <input type="text" style="top:50%;position:relative;" /><div>


请自行提取整理一下CSS。

写下样式表就可以实现了

line-height
怎么设置

 
 

   

    
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn