我正在使用框架。我的標誌框架包含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