Includendo un file esterno con <object> e visualizzando il risultato su FF e IE si hanno due diversi risultati:
Se si vogliono eliminare le scrollbar è necessario utilizzare uno stile css nel file da includere
Esempio inclusione di un file .html senza scrollbar in IE
nb: il filo si può togliere, è stato aggiunto con css e serve solo a visualizzare il file incluso
Esempio di inclusione di un contenuto .txt con scrollbar in IE
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Inclusioni con object</title>
<style type="text/css">
<!--
object{
width:400px;
height:150px;
}
-->
</style>
</head>
<body>
<!--includi file html-->
<p><object type="text/html" data="filedaincludere.html" id="html">
contenuto file html
</object></p>
<!--includi file txt-->
<p><object type="text/plain" data="testodaincludere.txt" id="txt">
contenuto file .txt con accentate
</object></p>
</body>
</html>
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Documento html da includere</title>
<style type="text/css">
<!--
html {
margin: 0;
overflow:auto;
border: none;
}
-->
</style>
</head>
<body>
file <strong>html</strong> da includere in <strong>object</strong> (<em>senza scrollbar in IE</em>) grazie al <strong>css</strong>
</body>
</html>
testato su: