zoukankan      html  css  js  c++  java
  • 图片垂直居中

    .renzheng li {text-align:center; 90px; height:41px; background:url(images/renzheng_bg.gif) center top no-repeat; padding:5px 0; margin:5px 0; float:left; overflow:hidden;}
     .renzheng li a{
     /*非IE的主流浏览器识别的垂直居中的方法*/
            display: table-cell;
            vertical-align:middle;
            /*设置水平居中*/
            text-align:center; 
            /* 针对IE的Hack */
            *display: block; 
            *font-size:20px;/*约为高度的0.873,200*0.873 约为175*/
            *font-family:Arial;/*防止非utf-8引起的hack失效问题,如gbk编码*/
            height:26px;
      90px;
      overflow:hidden;}
  • 相关阅读:
    增加网站内容步骤
    简单使用
    dedecms的讲解 要求
    shop34-3-自动加载实现
    shop34-2-运转-平台分发
    shop34-1-目录布局
    match_controller
    match_model
    match_mvc
    laravel 路由
  • 原文地址:https://www.cnblogs.com/ice_nemo/p/2097088.html
Copyright © 2011-2022 走看看