gpt4 book ai didi

javascript - 在博客中放置一个 iframe 并使其正确适合

转载 作者:行者123 更新时间:2023-11-28 08:16:50 26 4
gpt4 key购买 nike

好的,所以我为从事房地产行业的妻子创建了一个博客。熟悉html和css,但是好像碰壁了。我已经研究了一段时间了,想要一些指导。我使用 css 删除了侧栏,但不知何故我错过了一些东西并且无法弄清楚如何扩展中心帖子部分以使其成为全宽。就是这样,第二个问题是让 iframe 适合,这可能与第一个问题有关。所以网站是:http://tamapabayrealestate.blogspot.com/p/blog-page_79.html我用来获取它的代码是:

<style>
#sidebar-wrapper, #midsidebar-wrapper, #main-column-right-sections, #sidebar-left-1,
#sidebar-right-1, #main-column-left-sections,.gapad2,
.blog-pager,.fauxcolumn-left-outer, .fauxcolumn-inner,
.post-header-line-1, .post-footer { display:none !important;}
#post-body-456672082127024910 { width:98%!important;}
.body .content-inner { width:98%!important; }
</style>
<iframe src="http://mfr.mlsmatrix.com/Matrix/Public/AWP/gloriaalfonso/?L=1&ap=SCH"
style="border:0px #000000 none;"
name="My iFrame"
scrolling="yes"
frameborder="1"
marginheight="px"
marginwidth="0px"
height="850px"
width="800px"></iframe>`

非常感谢所有帮助。提前致谢。

最佳答案

部分问题似乎是“.main-inner .columns”有填充。尝试:

.main-inner .columns {padding:0;}

关于javascript - 在博客中放置一个 iframe 并使其正确适合,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28947548/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com