Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/34.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ssis/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
未识别CSS样式的类名_Css_Css Selectors - Fatal编程技术网

未识别CSS样式的类名

未识别CSS样式的类名,css,css-selectors,Css,Css Selectors,我有一个提交按钮,表单中有代码 <li> <input id="zip" name="zipcode" type="submit" class="zip-button" value="Find" tabindex="{counter name=tabindex}"/> </li> .zip-button{ height:30px; ------} .zip-button:focus,.zip-button:hove

我有一个提交按钮,表单中有代码

<li>
   <input id="zip" name="zipcode" type="submit" 
          class="zip-button" value="Find" tabindex="{counter name=tabindex}"/>
</li>

.zip-button{
    height:30px;
    ------}
.zip-button:focus,.zip-button:hover{------}

它可以工作。因为我对样式设计非常陌生,所以我无法理解它。

你的css直接在页面中是这样的吗?如果是,这就是原因。您需要使用内联样式、样式标记或外部css文件

内联:

<input style='height:30px;' ...

有时CSS中的级联可能是造成这种情况的原因。另一个优先级更高的规则可以覆盖该定义。Firebug是“调试”css代码的好工具。

它显示了浏览器如何解释样式表。

有时我们可能指的是缩小的css(abc.css.min)文件,其中可能缺少一些类(我的案例)而不是原始源css。这可能会导致css.min中缺少的几个类缺少样式…我们可以使用FireBug找到这一点…在这种情况下,我们需要返回并设置正确的引用…[我是一个初学者,对我的技术术语用法一无所知]

那些是什么
----
?你把样式放在哪里了?它们只是在HTML中像那样四处浮动吗?它们在CSS文件中吗?您的页面是否链接到CSS文件?您的CSS看起来不错,但我不知道CSS是否正确加载到页面中。@Bolt'---'表示该块中的代码。我不想显示所有这些垃圾,所以只使用了--@Will我的样式是在一个外部CSS文件中,并加载在基页的开头。出于某种原因,我有一个带有CSS的外部文件,只有这个特殊的类“zip按钮”未被识别。所有其他样式部分都工作正常
<input style='height:30px;' ...
<html>
     <head>
        <style type='text/css'> 
            .zip-button{ height:30px; }
        </style>
     ...