更换框架?
我目前正在重新设计一个严重依赖框架的旧 Web 应用程序。我想摆脱框架,因为它们需要痛苦的 javascript 旋转,但仍然希望用户在屏幕的两个部分(视图和属性)之间有一个可移动的边框。
我可以使用什么 html 元素,或者 html 元素 + javascript 来替换框架?
I'm currently redesigning an old web application that relies heavily on frames. I'd like to get rid of the frames because the painful javascript gyrations they require, but would still like the user to have a movable border between two parts of the screen (view and attributes).
What html element, or html element + javascript, can I use to replace frames?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为没有任何解决方案不涉及 JavaScript。如果您同意,您可以将它们替换为
元素,并使用 JavaScript 使它们可调整大小。
I don't think there are any solutions that won't involve JavaScript. If you're OK with that, you could replace them with
<div>
elements and use JavaScript to make them resizeable.除了
div
之外,我没有看到其他解决方案。但是你必须再次使用JS来允许拖动边框。在这里使用 JQuery 就可以了,因为可能有一个插件,检查数据库。I see no other solution than a
div
. But you would have to use JS again to allow the dragging of the border. Use of JQuery would be fine here as there is maybe a plugin for that, check the database.