Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/39.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
Html 如何编写更具体的css_Html_Css_Primefaces - Fatal编程技术网

Html 如何编写更具体的css

Html 如何编写更具体的css,html,css,primefaces,Html,Css,Primefaces,我有以下HTML(primefaces为日历组件生成的HTML的一部分) 但我需要使用我在“td”中定义的类名“rbn checkout date”,使其更加具体 但是当我向css添加以下内容时,它不适用。该css甚至没有显示在firebug样式窗格中 .ui-widget-content.ui-state-disabled.rbn-checkout-date{ 不透明度:1; 过滤器:alpha(不透明度=100);/*适用于IE8及更早版本*/ } 元素的css路径如下所示 html bo

我有以下HTML(primefaces为日历组件生成的HTML的一部分)

但我需要使用我在“td”中定义的类名“rbn checkout date”,使其更加具体

但是当我向css添加以下内容时,它不适用。该css甚至没有显示在firebug样式窗格中

.ui-widget-content.ui-state-disabled.rbn-checkout-date{
不透明度:1;
过滤器:alpha(不透明度=100);/*适用于IE8及更早版本*/
}
元素的css路径如下所示

html body form#form table.rb-month-select-wrap tbody tr td div#form:calwrap span#form:cal.ui-calendar div#form:cal#inline.hasDatepicker div.ui-datepicker-inline.ui-datepicker.ui-widget.ui-widget-widget-content.ui-helper-content.ui-clearfix.ui-corner-all.ui-datepicker-multi-2.ui-datepicker-multi-div-datepicker-group-firsttable.ui-datepicker-calendar tbody tr td.ui-datepicker-unselectable.ui-state-disabled.rbn-checkout-date

在“ui小部件内容”和“ui状态禁用”类之间需要一个空格。否则,它将在“.ui小部件内容”元素上查找类,而不是在其中:

.ui-widget-content .ui-state-disabled.rbn-checkout-date {
   opacity: 1;
   filter: alpha(opacity = 100); /* For IE8 and earlier */
}
.ui-widget-content .ui-state-disabled.rbn-checkout-date {
   opacity: 1;
   filter: alpha(opacity = 100); /* For IE8 and earlier */
}

“ui小部件内容”和“ui状态禁用”类之间需要一个空格。否则,它将在“.ui小部件内容”元素上查找类,而不是在其中:

.ui-widget-content .ui-state-disabled.rbn-checkout-date {
   opacity: 1;
   filter: alpha(opacity = 100); /* For IE8 and earlier */
}
.ui-widget-content .ui-state-disabled.rbn-checkout-date {
   opacity: 1;
   filter: alpha(opacity = 100); /* For IE8 and earlier */
}

我能看到的唯一问题是选择器之间缺少空格。试试这个:


我能看到的唯一问题是选择器之间缺少空格。试试这个: