小编jbz*_*kid的帖子

html表中的等高缩放单元格

在进行这种设计时,我在处理HTML表时遇到了一些麻烦:左侧的单元格是rowspan =“ 2”单元格,而右侧的两个单元格则使用height =“ 50%”属性。下面是预期的行为:

    + ------------- + ----------------- +
    | | |
    | | 等高|
    | | 单元#1 |
    | | |
    | 缩放比例-+ ----------------- +
    | 高度单元| |
    | | 等高|
    | | 单元#2 |
    | | |
    + ------------- + ----------------- +

实际发生的情况:

    + ------------- + ----------------- +
    | | 等高|
    | | 单元#1 |
    | + ----------------- +
    | | |
    | 缩放比例-| |
    | 高度单元| 等高|
    | | 单元#2 |
    | | |
    | | …

html scaling html-table cell

5
推荐指数
1
解决办法
1432
查看次数

line_profiler 不返回任何输出

我已经line_profiler使用安装了pip install line_profiler。我使用的是 Mac OSX 10.8.5,带有 Python 2.7。

我跑kernprof -l ~/Desktop/sum.py,然后得到

(default code output)
Wrote profile results to sum.py.lprof
Run Code Online (Sandbox Code Playgroud)

但跑步python -m line_profiler sum.py.lprof给了我:

Timer unit: 1e-06 s
Run Code Online (Sandbox Code Playgroud)

并且没有其他输出。我的程序代码在这里:sum.py

python macos profiling

5
推荐指数
1
解决办法
2272
查看次数

标签 统计

cell ×1

html ×1

html-table ×1

macos ×1

profiling ×1

python ×1

scaling ×1