无法摆脱在照片库中保存缩略图的垂直滚动条

发布于 2024-08-23 00:53:25 字数 1752 浏览 6 评论 0原文

我使用 Picasa 创建了一个图片库,它是我正在创建的网站的一部分。

我不知道如何删除我认为来自 iframe 的一侧的滚动条(它包含缩略图)?以下是我必须使用的页面:

“imageset.html”代码:

<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Forest Village</title>
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<frameset cols="180,*" border="0">
<frame src="thumbnails.html" scrolling="yes" border="0">
</frame>
<frame src="target0.html" name="images" border="0">
</frame>
</frameset>
</frame>
</frameset>

我认为这一定是导致左侧垂直滚动条的代码?我从 CSS 中删除了任何可能影响它的东西,那么有什么办法让它消失呢?

以防万一,这里是index/target0.html的代码:

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title></title>
<link rel="stylesheet" href="style.css" type="text/css">
<style type="text/css">
 <!--
 body {
background-image: url(../../2051__624x500_knitted-yarn-002051-forest-green.jpg);
background-repeat: repeat;
 }
-->
</style></head>
<body bgcolor="#FFFFFF" text="#000000">
<div id="controls">
<span class="textbg"></span>
<p><span class="textreg">
First |
Previous Picture |
<a href="target1.html">Next Picture</a> |
 <a href="target20.html">Last</a><br>
</span><hr size="1"></div>

<div id="image">
<img src="images/our_gorgeous_swimming_pool.jpg" width="240"  height="180"  title="swimmingpool.jpg (large)" border="0"><p></div>
</div>
</body>
</html>

我尝试完全删除thumbnails.html文件,但滚动条(框架?)仍然存在。所以我想放弃垂直滚动条,只使用已经存在的“下一个/最后一个”控件。

I used Picasa to create an image gallery, which is part of a website that I am creating.

I can't figure out how to remove the scroll-bar (it holds thumbnails) on the side that I think is from an iframe? Here are the pages that I have to work with:

The "imageset.html" code:

<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Forest Village</title>
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<frameset cols="180,*" border="0">
<frame src="thumbnails.html" scrolling="yes" border="0">
</frame>
<frame src="target0.html" name="images" border="0">
</frame>
</frameset>
</frame>
</frameset>

I think that must be the code causing the vertical-scroll bar on the left? I took out anything that might effect it out of the CSS, so is there anyway to make it go away?

Just in case here's the code for index/target0.html:

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title></title>
<link rel="stylesheet" href="style.css" type="text/css">
<style type="text/css">
 <!--
 body {
background-image: url(../../2051__624x500_knitted-yarn-002051-forest-green.jpg);
background-repeat: repeat;
 }
-->
</style></head>
<body bgcolor="#FFFFFF" text="#000000">
<div id="controls">
<span class="textbg"></span>
<p><span class="textreg">
First |
Previous Picture |
<a href="target1.html">Next Picture</a> |
 <a href="target20.html">Last</a><br>
</span><hr size="1"></div>

<div id="image">
<img src="images/our_gorgeous_swimming_pool.jpg" width="240"  height="180"  title="swimmingpool.jpg (large)" border="0"><p></div>
</div>
</body>
</html>

I've tried deleting the thumbnails.html file altogether, but the scroll bar (frame?) is still there. So I want to ditch the vertical scroll bar and just have the "next/last" controls that are already there.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

十年九夏 2024-08-30 00:53:25

元素 frame 中的属性 scrolling 控制框架是否有滚动条。

您已将其设置为“是”。如果您希望该框架没有滚动条,请将其设置为“否”。

我查看了你的 URL,用 Firebug 进行了更改,效果很好。

The attribute scrolling in the element frame controls whether the frame has a scrollbar.

You have it set to 'yes'. If you want this frame to have no scrollbars, set it to 'no'.

I took a look at your URL, made the change with Firebug and it worked just fine.

不念旧人 2024-08-30 00:53:25

在 iframe 及其内容的 CSS 中添加 overflow:hidden 应该可以消除滚动条,但如果内容大于设置的宽度/高度,它将被截断。

Adding overflow: hidden in the CSS for the iframe as well as its contents should get rid of the scrollbar, but if the content is larger than the set width/height it will get cut off.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文