Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在表格中有一个文本“2012 年”,我想将它垂直居中放置。文字旁边有一个collapseIcon。
演示。
我的问题:
1)我们可以准确地将它定位在中心吗?请不要使用 padding-top,我怀疑它不准确,因为我们不知道单元格的高度。
2) 有点跑题了,表中没有tbody元素,代码为什么
$('table.collapsible tbody').each(function() {
还在工作吗?
谢谢你。
这可以通过 CSS 属性 valign:middle 来完成
如果你想用 JQuery 来做,你可以这样做
$('table.collapsible tbody tr td').each(function() { $(this).css('valigh','middle'); });
添加line-height: 60px到.tabletitle. 是 60px 高,<img>文本将显示在 line-height 60px 中间。
line-height: 60px
.tabletitle
<img>
小提琴
I have an <object> in my page code and my background color is not white. The object is created with a white border, which I don't want.
<object>
Any ideas on how to make it border: 0px;
border: 0px;
1 c# - 如何更改表单背景颜色?
3 java - Weird floating point error?
Reference php × 1429865 c/c++ × 756500 nginx × 49975 mongodb × 159057 mybatis × 3233 anaconda × 13410 pycharm × 14671 python × 1902243 vscode × 56040 docker × 110988 github × 49000 flask × 49129 ffmpeg × 24037 jmeter × 16910 matplotlib × 63493 bootstrap × 54641