css多行文本垂直居中_html/css
来源:动视网
责编:小采
时间:2020-11-27 16:38:39
css多行文本垂直居中_html/css
css多行文本垂直居中_html/css_WEB-ITnose:1. .outer { display:table; width:578px; overflow:hidden; background: #eee; height: 42px;}.middle {display:table-cell; vertical-align:middle; margin-left 10px;} /*下面的CSS是针对IE7,IE6*/.outer{position:relative;}.middle{position: absolute; top: 5
导读css多行文本垂直居中_html/css_WEB-ITnose:1. .outer { display:table; width:578px; overflow:hidden; background: #eee; height: 42px;}.middle {display:table-cell; vertical-align:middle; margin-left 10px;} /*下面的CSS是针对IE7,IE6*/.outer{position:relative;}.middle{position: absolute; top: 5

1. .outer { display:table; width:578px; overflow:hidden; background: #eee; height: 42px;}.middle {display:table-cell; vertical-align:middle; margin-left 10px;} /*下面的CSS是针对IE7,IE6*/2.(ie8+) .outer{ height: 271px; line-height: 271px; font-size: 0px;}#special-price .special-price-content .content li .mask p { font-size: 16px; line-height: 1.5; display: inline-block; vertical-align: middle;}
css多行文本垂直居中_html/css
css多行文本垂直居中_html/css_WEB-ITnose:1. .outer { display:table; width:578px; overflow:hidden; background: #eee; height: 42px;}.middle {display:table-cell; vertical-align:middle; margin-left 10px;} /*下面的CSS是针对IE7,IE6*/.outer{position:relative;}.middle{position: absolute; top: 5