| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1988 人关注过本帖
标题:为什么我使用margin:0 auto div区域居中后,其中的标签的文字部分便不居中了 ...
只看楼主 加入收藏
来电管家
Rank: 1
等 级:新手上路
帖 子:9
专家分:2
注 册:2016-9-1
结帖率:0
收藏
 问题点数:0 回复次数:0 
为什么我使用margin:0 auto div区域居中后,其中的标签的文字部分便不居中了?
<style type="text/css">
        *{margin=0;padding=0;}

        body{background:url("image/bg.png");font-size:12px;font-family:"微软雅黑";}
        /*top start*/
        .top{width:100%;height:40px;margin:30px 0;}
        .t-header{width:90%;height:40px;
        
            margin:0 auto;
        
        }
        .t-logo{float:left;margin:8px;}
        .t-desc{float:right;line-height:40px;font-size:16px;color:#fff;}
        /*top end */
        
        /*content start*/
        .content{width:90%;height:500px;margin:0 auto;background:#6cf;position:relative;}
        .c-title{height:60px;text-align:center;line-height:60px;background:#fc9;color:#fff;
        font-size:20px;}

        .c-map{height:440px;background:#fcc;}
        
        /*content end*/

        #search{width:600px;height:56px;box-shadow:0px 11px 14px -11px        #000;position:absolute;left:430px;top:180px;}
        .s-txt{width:490px;height:56px;outline:none;border:none;}
        .s-btn{width:100px;height:56px;background:#c03;color:#000;outline:none;border:none;cursor: pointer;}
        .s-btn:hover{background:#00c;}
    </style>
2017-04-12 19:09
快速回复:为什么我使用margin:0 auto div区域居中后,其中的标签的文字部分便不 ...
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.014692 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved