📄 positioned.html
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>makePositioned([element])/undoPositioned([element])</title>
<link rel="stylesheet" type="text/css" href="Site.css">
<script type="text/javascript" src="Prototype151.js"></script>
<script type="text/javascript">
function make()
{
$("Container").makePositioned($("sub"));
}
function undo()
{
$("Container").undoPositioned($("sub"));
}
</script>
</head>
<body>
<h2>makePositioned([element])/undoPositioned([element])</h2>
<div id="Container" class="title" style="height:400px;">
This is the Container
<div style="margin-top:200px;">
<input type="button" value="makePositioned" onclick="return make();" />
<input type="button" value="undoPositioned" onclick="return undo();" />
</div>
<div id="sub" style="position:absolute;top:200px;left:400px; border:solid red 1px; width:100px;">
This is a Div has Positioned absolutely!</div>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -