我正在使用框架。我的标志框架包含2张照片。一个是150px,另一个是600px,使整个标志尺寸为750px。现在,当用户使窗口小于整数时,我的第二张图片正在向下滚动而无法看到图片。屏幕太小时防止滚动屏幕
最简单的方法是将2张图片连接成一张750px图片,但有没有办法避免这种情况?
所有我有我的标志框架上的代码是...
<body class="logo_background">
<img src="assets/logo.png">
<img src="assets/logo_name.png">
</body>
我的index.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Portfolio</title>
</head>
<frameset rows="80px,100%" cols="*" framespacing="0" frameborder="no" border="0">
<frame src="logo.html" name="logo" scrolling="no">
<frameset rows="*" cols="150,100%">
<frame src="menu.html" name="menu" scrolling="no">
<frame src="main_page.html" name="page" scrolling="no">
</frameset>
</frameset>
<noframes><body>
</body></noframes>
</html>
法师(或其容器)正在滚动?? ..或窗口?? .. – 2012-02-06 21:00:30
@Vivek钱德拉,帧,第二张图片被移动到第一个(向下滚动)的底部,无法观看它。 – HelpNeeder 2012-02-06 21:03:24
你为什么使用框架?他们在技术上被弃用...你能发布一个jsfiddle的例子吗?我不太了解你的问题。 – elclanrs 2012-02-06 21:06:41