我想做一個頁面的索引(iframe),但我不能在文本前完成。無論我嘗試什麼,文本都會出現在iframe或iframe不在右側的位置。iframe正確的文本
page.html中
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>page</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
</head>
<body>
<iframe src="index.html" height="520" style="right: 10px; position:fixed">
</iframe>
some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text -- some text
</body>
</html>
的index.html
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>index</title>
<style type="text/css">
<!--
BODY {
COLOR: #0080FF;
BACKGROUND: black;
-->
</style>
</head>
<body>
some text </br>
some text </br>
some text </br>
</body>
</html>
我想有在IFRAME並不落後和iframe的一側上的文字文本的右側浮動滾動所以當它始終可見。 ifame不應該像頁面上的其他文字一樣向上或向下。或者有沒有更好的方法來做到這一點,而不是iframe?
我怎樣才能讓index.html中的鏈接跳轉到page.html中的一部分,而無需加載整個頁面。 – andrej
你想加載鏈接在iframe @andrej? –
不,在page.html中。我想我找到了它。我將在index.html中添加'target =「_ parent」'。 – andrej