Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/82.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/3/html/88.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
Jquery 母版页中的Css影响了内容页_Jquery_Html_Css - Fatal编程技术网

Jquery 母版页中的Css影响了内容页

Jquery 母版页中的Css影响了内容页,jquery,html,css,Jquery,Html,Css,我有一个班级标签主页 label{ padding-bottom: 10px; color: #2E4972; font-family: Calibri; } 在内容页面中,我使用了一个标签标签,样式如下 <label ID="lblpendingcount" CssClass="labels" Style="text-decoration: underline; font-size: 13px;"

我有一个班级标签主页

 label{
            padding-bottom: 10px;
            color: #2E4972;
            font-family: Calibri;
        }
在内容页面中,我使用了一个标签标签,样式如下

<label ID="lblpendingcount" CssClass="labels" Style="text-decoration: underline; font-size: 13px;">Levelwise Approval Pending Counts</label>
Levelwise审批挂起计数

如何应用实际样式。请帮助我。我不知道如何处理此问题。

您必须将CSS类作为名称“Class”的属性添加到标签中

<label ID="lblpendingcount" class="label" Style="text-decoration: underline; font-size: 13px;">Levelwise Approval Pending Counts</label>
Levelwise审批挂起计数

您必须将CSS类作为名称“Class”的属性添加到标签中

<label ID="lblpendingcount" class="label" Style="text-decoration: underline; font-size: 13px;">Levelwise Approval Pending Counts</label>
Levelwise审批挂起计数

如果我理解正确,您希望创建一个
标签
类,并将其添加到问题中的
标签
元素中,该
标签
类将具有您的
样式=“”
声明中的样式?您还希望所有
标签
元素,无论类别如何,都具有您最初在问题中提出的样式?如有,请参阅下文:

CSS:

label {
  padding-bottom: 10px;
  color: #2E4972;
  font-family: Calibri;
}

label.labels {
  text-decoration: underline; 
  font-size: 13px;
}
<label id="lblpendingcount" class="labels">Levelwise Approval Pending Counts</label>
HTML:

label {
  padding-bottom: 10px;
  color: #2E4972;
  font-family: Calibri;
}

label.labels {
  text-decoration: underline; 
  font-size: 13px;
}
<label id="lblpendingcount" class="labels">Levelwise Approval Pending Counts</label>
Levelwise审批挂起计数

如果我理解正确,您希望创建一个
标签
类,并将其添加到问题中的
标签
元素中,该
标签
类将具有您的
样式=“”
声明中的样式?您还希望所有
标签
元素,无论类别如何,都具有您最初在问题中提出的样式?如有,请参阅下文:

CSS:

label {
  padding-bottom: 10px;
  color: #2E4972;
  font-family: Calibri;
}

label.labels {
  text-decoration: underline; 
  font-size: 13px;
}
<label id="lblpendingcount" class="labels">Levelwise Approval Pending Counts</label>
HTML:

label {
  padding-bottom: 10px;
  color: #2E4972;
  font-family: Calibri;
}

label.labels {
  text-decoration: underline; 
  font-size: 13px;
}
<label id="lblpendingcount" class="labels">Levelwise Approval Pending Counts</label>
Levelwise审批挂起计数

//使用内部样式方法,如

标签#lblpendingcount{

文字装饰:下划线

字体大小:13px

  `enter code here`
//在此处放置实际样式

}
如果不起作用,请使用!重要提示

//使用内部样式方法,如

标签#lblpendingcount{

文字装饰:下划线

字体大小:13px

  `enter code here`
//在此处放置实际样式

} 如果不起作用,请使用!重要信息