>> 相关内容
>> 最新文章
??frameborder= Frames in HTML frameBorder
??frameborder= Frames in HTML frameBorder
实例
The following example aligns the iframe to the right according to the surrounding text:
〈html〉
〈head〉
〈script type="text/javascript"〉
function removeBorder()
{
document.getElementById("frame1").frameBorder="0";
}
function restoreBorder()
{
document.getElementById("frame1").frameBorder="1";
}
〈/script〉
〈/head〉
〈body〉
〈iframe src="frame_a.htm" id="frame1"〉〈/iframe〉
〈br /〉〈br /〉
〈input type="button" onclick="removeBorder()"
value="Remove border" /〉
〈input type="button" onclick="restoreBorder()"
value="Restore border" /〉〈/body〉
〈/html〉
实例
The following example aligns the iframe to the right according to the surrounding text:
〈html〉
〈head〉
〈script type="text/javascript"〉
function removeBorder()
{
document.getElementById("frame1").frameBorder="0";
}
function restoreBorder()
{
document.getElementById("frame1").frameBorder="1";
}
〈/script〉
〈/head〉
〈body〉
〈iframe src="frame_a.htm" id="frame1"〉〈/iframe〉
〈br /〉〈br /〉
〈input type="button" onclick="removeBorder()"
value="Remove border" /〉
〈input type="button" onclick="restoreBorder()"
value="Restore border" /〉〈/body〉
〈/html〉



当前位置: