快捷导航
发新帖
返回列表
2 673
电梯直达  跳转到指定楼层

[提问] 文字位置不对

a狸123|高级会员 |勤币 740 |学币 0
发表于 2018-6-20 13:32 | 复制链接 | 打印 | 上一主题 | 下一主题


<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>腾隆钾业有限公司</title>
<link href="webstyle.css" rel="stylesheet" type="text/css">
</head>

<body>
<div class="header">
<a href="#" class="logo"><img src="images/logo.png" alt=""></a>

<div class="hdRight">
        <div class="text"><a href="#">EN</a> &nbsp;|&nbsp; <a href="#">收藏本站</a>&nbsp; | &nbsp;<a href="#">企业邮箱</a></div>
        <div class="tel">咨询电话:400-8888 8888</div>  
    </div>
</div>
</body>
</html >


webstyle:
@charset "utf-8";
*{
        padding: 0;
        margin:0;
}
a{text-decoration:none}
.header {
        width: 1100px;
        height: 100px;
        margin: 0  auto        ;
}
.header .logo{
        float: left;
        margin-top: 15px;
}
.hdRight{
        float: right;
        text-align: right;
}
.hdright .text{
        margin-top: 30px;
        font-size: 12px;
        color: #ccc;
}
.hdRight .text a{color:#333}
.hdRight .tel{margin-top:4px; color:#888; font-size:14px;}


请问哪一步出错了  我检查了好几遍都没有看出来

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
举报 使用道具
| 回复

共2个回复 最后回复于 2018-6-21 10:27

勤币 614   学币 0  
沙发
发表于 2018-6-21 08:23:17 | 只看该作者


.hdright 里的 r 没有大写 应该是 .hdRight 与class定义的要一致

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
举报 使用道具
勤币 740   学币 0  
板凳
发表于 2018-6-21 10:27:05 | 只看该作者
yuanxi52028 发表于 2018-6-21 08:23
.hdright 里的 r 没有大写 应该是 .hdRight 与class定义的要一致

位置正确了  谢谢
举报 使用道具
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表