问题标签 [tablecell]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
iphone - loading custom view using loadNibNamed showing memory leaks
I have a number of custom table cells and views that I built using interface builder
In interface builder, everything is set up similarly. There is a table cell and a couple other UILabels and a background image
Object owner if the nib is NSObject Class for the table cell is the name of the class for my table cell
Here is how I create the table cell in my code:
For my custom table headers I have this
In my .h and .m files for the custom view, I have IBOutlet, @property set up for everything except for the background image UIImageView. Everything that has the IBOutlet and @property are also @synthesized and released in the .m file.
Leaks is showing that I have memory leaks with CALayer when I create these custom view objects. Am I doing something wrong here when I create these custom view objects? I'm kind of tearing my hair out trying to figure out where these leaks are coming from.
As a side note, I have a UIImageView background image defined in these custom views but I didn't define properties and IBOutlets in my .h and .m files. Defining them doesn't make a difference when I run it through Leaks but just wanted to confirm if I'm doing the right thing.
Any input would be super helpful. Thanks :)
javascript - 由 CSS 不可见的 IE7 表格单元格不能通过以后的类更改可见 (??)
这是两个测试文件:
这两个页面上的标记几乎相同。有一个有两列的表。一列(第二列)的<th>
和<td>
元素都被赋予“垃圾”类。
在“好”页面中,当您加载它时,您会在顶部看到一个未选中的复选框。如果您选中该复选框,第二列应该会消失。如果取消选中它,第二列会返回。在“坏”页面中,复选框开始被选中。取消选中它在 IE7 中没有任何效果,尽管它在其他浏览器中有效,这些浏览器没有被根本邪恶所拥有。
该复选框连接到一个小的 Javascript 例程,该例程只是从<table>
标签中添加或删除类“compact”。有一个包含以下内容的样式表:
因此,应该发生的是“好”页面上发生的事情。但是,似乎在 IE7(也可能是 6)中,如果表格元素开始时在最初呈现时它们的样式被设置为不可见,则它们将永远不会被看到,无论后续对 DOM 的更改是否会带来新的样式规则生效并使其可见。(这似乎是一个<table>
特别是零件的问题;我在其他地方使用相同的机制和其他元素,它们都工作正常。)
所以,问题是:有没有人知道一些黑客——无论多么令人反感——可以用来绕过这种愚蠢的行为?显然,我可以尝试安排 IE7 使用相关的切换控件集启动其视图,以便表格单元格可见,但在我的情况下,这发生在作为 AJAX 响应生成的表格周围,所以它会很大我宁愿避免混乱。(该表实际上也是一个表;它是表格信息的显示,而不是布局技巧。)
我四处搜索并没有发现任何东西,如果您考虑从“IE7 布局错误”搜索中获得多少点击,这应该不足为奇。
jquery - How do I get the checkbox value from a specific cell in a table row using jQuery?
I have a table that contains multiple checkboxes in each row. I need to get the value of each individual checkbox. I've been able to do something like the following to retrieve the value of a checkbox in the first column of a table...
But now I need to iterate over each row, and get the value of each individual checkbox. This is what I've been trying for a specific checkbox...
Which doesn't work. Any suggestions on how I can get this working?
html - HTML\CSS:使用 CSS 更改悬停状态的单元格背景
看看这个jsFIDDLE 示例
我想用 CSS 更改悬停状态的单元格背景颜色.. 它可以通过 JavaScript 实现,但我想用 CSS 来实现......另外我希望整个单元格充当链接如何做到这一点
wpf - 更改 WPF FlowDocument TableCell 中的文本方向
我正在尝试在 WPF FlowDocument 中创建一个简单的表格,该表格在某些单元格中旋转了文本。在 Microsoft Word 中,您可以轻松更改表格单元格的文本方向,但我无法在 WPF FlowDocument 中找到方法。
关于如何将文本旋转 90 度或更改文本方向的任何想法。我已经尝试了一些东西,但文本没有按照需要换行和调整大小。
任何帮助都会很棒。谢谢
iphone - 更新表格单元格中的文本字段
NSString *cel=@"文本"; NSIndexPath *a = [NSIndexPath indexPathForRow:1 inSection:1]; CustomCell *c = (CustomCell *)[tableView cellForRowAtIndexPath:a]; c.yes.text = cel; 我正在使用这些行来更新放置在 tablecell 上的 UITextfield .....但它给了我一些像这样的错误
RootViewController.m:110: error: 'tableView' undeclared (首先在这个函数中使用)
iphone - 关于表格单元格上的 uitextfield
我正在这个应用程序中制作一个应用程序,我在表格单元格上使用 uitextfield。我已经制作了自定义表格单元并声明了一个标签和一个文本字段,我可以在每个表格单元上看到文本字段但现在我希望如果我编辑一个税收字段然后更改将显示所有文本字段......
如果仍有不清楚的地方,请......
html - 内容可编辑的表格单元格
可能重复:
Contenteditable 表行、列修饰符
为 FF 创建一个 contentEditable 表格单元格允许用户直接在单元格中输入一些文本。这样做时,单元格的轮廓(我认为称为焦点矩形)被水平和垂直控件覆盖。
它们是什么,它们做什么以及如何防止它们显示?
c# - 如何通过代码在 Table 中动态添加单选按钮、texbox 和按钮?
我正在尝试根据带有两个 TableCell 的 TableRow 左侧的问题,在每行上动态创建一个带有单选按钮、文本框和按钮的表格。
到目前为止,我能够将问题添加到 TableRow 的左侧。现在,我很难填写它的右侧。
有人能帮我吗?
我有以下代码:
jquery - jQuery 循环遍历 TableRows/表格单元格性能
我有一个在 document.ready 上调用的函数,它循环遍历在经典 ASP 中生成的大约 600 行的表。在“现代”浏览器(Chrome、Firefox、IE9 Beta)中,它的运行时间不到 1.5-2 秒。在 IE6 中它运行大约 5-7 秒,不好。
基本上我正在做的是在某些列中添加单元格的值并给出小计。(我知道,这应该在服务器端生成,但是一些聪明的人使用调用视图的视图开发了这个,谁调用视图,谁调用视图......)。
我使用 IE9 的分析器试图了解瓶颈在哪里,当 jQuery 的 find 和 each 被调用时,它似乎是最深刻的:
如有必要,我将发布所有代码,但我想知道是否有更有效的方法来循环遍历未命名的表行和单元格?
该表如下所示:
我遍历表格行,如果找到 (td:first) = "Totals",则将当前 tr 和前两个 tr 放入变量中,然后抓取单元格并计算总计,并将这些总计放置在适当的单元格中.
这一切都有效,但就像我说的那样,在 find 和 each 过程中都有一个严重的瓶颈。