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.
我想在 TD 元素中使用 javascript 添加面板控件。
是否可以使用Document.createElement和appendChild创建这些控件
方法?
我还想显示和隐藏这个面板控件onmouseover和onmouseout事件。
您可以将div元素用于面板。
您可以将锚元素用于链接标签。
实际上,asp.net 面板呈现为 div,而链接按钮呈现为锚点。
您可以使用display属性来显示和隐藏面板。
将显示设置为无隐藏 div
将显示设置为块或内联显示 div。
也许有点偏离轨道,但我建议看看 JQuery,它使 javascript'ing 更直观