宽度为100%的div,旁边是一个固定宽度的div
很抱歉这个非常愚蠢的问题,我觉得在大多数情况下我可以轻松做到这一点,但我目前正在使用共享点,尝试在这方面做任何事情都是地狱!
基本上我有一个 230px 宽的侧面导航 (.menu-vertical),旁边有一个 div (.mainContent),我想用它(留白!)填充屏幕的其余部分。
不幸的是,代码中有大约 798 个随机放置的 div、span 和其他任何内容,我似乎无法在不破坏网站的情况下删除这些内容,因此,任何有关如何实现这一点的建议将不胜感激,谢谢!
Sorry for the incredibly stupid question, I feel like in most circumstances I could do this easily, but I'm using sharepoint at the moment and trying to do anything in this is hell!
Basically I have a side navigation (.menu-vertical) that is 230px wide, and a div next to it (.mainContent) that I would like to (padding aside!) fill the rest of the screen.
Unfortunately there are around 798 randomly placed divs, spans and whatever else in the code too that I can't seem to strip without breaking the site, so any advice on exactly how to achieve this would be much appreciated, thank you!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
据我了解,您正在寻找以下内容: http://jsfiddle.net/thirtydot/wv42t/
CSS:
HTML:
From what I understand, you're looking for this: http://jsfiddle.net/thirtydot/wv42t/
CSS:
HTML: