CSS div表广告行

时间:2016-06-30 21:13:55

标签: javascript jquery html css row

我有一个这样的div表:

rn

所以我需要在例如第2行和第3行之间放置广告行,如下所示:

from scipy.optimize import brentq
import numpy as np
import matplotlib.pyplot as plt

def denormPDF(x, p):
    return p*(1.0-x)**2 + (1.0-p)*((-1.0)-x)**2

def intgrl(x, p):
    return x*(x*(3.0 + x - 6.0*p) + 3.0)/3.0

def CDF(x, p, norm):
    return (intgrl(x, p) - intgrl(-1.0, p))/norm

def PDF(x, p, norm):
    return denormPDF(x, p)/norm

def f(x, p, norm, rn):
    return CDF(x, p, norm) - rn

p = 0.25

norm = intgrl(1.0, p) - intgrl(-1.0, p)

x = np.linspace(-1.0, 1.0, 100)
y = [PDF(x, p, norm) for x in x]
z = [CDF(x, p, norm) for x in x]

# plot PDF
plt.plot(x, y)
plt.show()

# plot CDF
plt.plot(x, z)
plt.show()

rn   = np.linspace(0.000001, 1.0-0.000001, 50)
iCDF = [brentq(f, -1.0, 1.0, args=(p, norm, rn)) for rn in rn]

# plot inverse CDF
plt.plot(rn, iCDF)
plt.show()
  • 我知道div表不支持colspan / rowspan。
  • 我不能分开桌子。因为我用js订购表记录。
  • 我不能使用display:table-caption。因为我需要把它放在两个之间 行。

编辑:我需要注入全宽。这不是重复的问题。显示:表格标题对我不起作用。

那你对这个问题的建议是什么? 感谢...

已解决:我解决了这个问题:

<div class="dTable">
   <div class="dRow">
      <div class="dCell">bla bla bla</div>
      <div class="dCell">bla bla bla</div>
   </div>
   <div class="dRow">
      <div class="dCell">bla bla bla</div>
      <div class="dCell">bla bla bla</div>
   </div>
   <div class="dRow">
      <div class="dCell">bla bla bla</div>
      <div class="dCell">bla bla bla</div>
   </div>
   .
   .
   .
</div>

我再次坚持认为;这不是一个重复的问题。没有人像这样解决过。 C-U:)

0 个答案:

没有答案