CSS3规模不起作用

时间:2012-09-21 18:16:07

标签: css css3

我对网络开发很陌生,我似乎无法扩展我的文字。我试图查找但是我的搜索总是空洞的。

#top-nav {
    background: #94b3c8;
    text-align: cemter;
}

#top-nav dt {
    display: inline-block;
    padding-left: 20px;
    font: 20px Tahoma;
    color: white;
    padding-bottom: 2px;
}

#top-nav a:active {
    color: white;
    text-decoration: underline;
}

#top-nav a:link {
    color: white;
    text-decoration: none;
}

#top-nav a:visited {
    color:white;
    text-decoration:none;
}

#top-nav a:hover {
    display: block;
    color: white;
    text-decoration: underline;
    transform: scale(1.5, 1.5)
    -ms-transform: scale(1.5, 1.5)
    -webkit-transform: scale (1.5, 1.5)
    -moz-transform: scale(1.5, 1.5)
    -o-transform: scale(1.5, 1.5)
}

1 个答案:

答案 0 :(得分:3)

您需要在transform定义后添加分号,否则浏览器会将其视为错误,并会忽略后续规则。

transform: scale(1.5, 1.5); /*you didn't have the semi-colons here*/
-ms-transform: scale(1.5, 1.5);
-webkit-transform: scale (1.5, 1.5);
-moz-transform: scale(1.5, 1.5);
-o-transform: scale(1.5, 1.5);