Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/36.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 id_Css_Pandas_Itext7_Pdfhtml - Fatal编程技术网

熊猫造型不读取css id

熊猫造型不读取css id,css,pandas,itext7,pdfhtml,Css,Pandas,Itext7,Pdfhtml,我正在从pandas生成以下html #T#U头#U表列0列3、#T#U头#U表列0列4{ 背景色:#F5ABAB; } 门槛 限额 利用率(历史成本) 门槛突破 违反限额 778.900000 1. 2. 0 0 这是pdfHTML中的一个错误。确切的问题是,它不能优雅地处理以大写字母开头的ID。因此,作为一种解决方法,您可以将HTML更改为: <style type="text/css" > #t_header_tablerow0_col3,#t_h

我正在从pandas生成以下html


#T#U头#U表列0列3、#T#U头#U表列0列4{
背景色:#F5ABAB;
}
门槛
限额
利用率(历史成本)
门槛突破
违反限额
778.900000
1.
2.
0
0

这是pdfHTML中的一个错误。确切的问题是,它不能优雅地处理以大写字母开头的ID。因此,作为一种解决方法,您可以将HTML更改为:

<style  type="text/css" >
  #t_header_tablerow0_col3,#t_header_tablerow0_col4{
    background-color:  #F5ABAB;
  }
</style>

<table id="T_header_table" class="header-table">
  <thead>
  <tr>
    <th class="col_heading level0 col0" >Threshold</th>
    <th class="col_heading level0 col1" >Limit Amount</th>
    <th class="col_heading level0 col2" >Utilization (Historical Cost)</th>
    <th class="col_heading level0 col3" >Threshold Breach</th>
    <th class="col_heading level0 col4" >Limit Breach</th>
  </tr>
  </thead>
  <tbody>
  <tr>
    <td id="T_header_tablerow0_col0" class="data row0 col0" >778.900000</td>
    <td id="T_header_tablerow0_col1" class="data row0 col1" >1</td>
    <td id="T_header_tablerow0_col2" class="data row0 col2" >2</td>
    <td id="t_header_tablerow0_col3" class="data row0 col3" >0</td>
    <td id="t_header_tablerow0_col4" class="data row0 col4" >0</td>
  </tr>
  </tbody>
</table>

#t#U头#U表列0列3、#t#U头#U表列0列4{
背景色:#F5ABAB;
}
门槛
限额
利用率(历史成本)
门槛突破
违反限额
778.900000
1.
2.
0
0
它应该产生正确的结果。 同时,如果您正在考虑参与,您可以查看
CssSelectorParser
中的类和正则表达式
SELECTOR\u PATTERN\u STR
(\u a-z][\w-]*)
部分就是需要修复的部分