2010-09-03 14:39:19 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8" />
|
|
|
|
<title>Position Visual Test: Default</title>
|
|
|
|
<link rel="stylesheet" href="../visual.css" type="text/css" />
|
|
|
|
<link rel="stylesheet" href="../../../themes/base/jquery.ui.all.css" type="text/css" title="ui-theme" />
|
2011-11-09 15:18:33 +00:00
|
|
|
<script type="text/javascript" src="../../../jquery-1.7.js"></script>
|
2010-09-03 14:39:19 +00:00
|
|
|
<script type="text/javascript" src="../../../ui/jquery.ui.core.js"></script>
|
|
|
|
<script type="text/javascript" src="../../../ui/jquery.ui.widget.js"></script>
|
|
|
|
<script type="text/javascript" src="../../../ui/jquery.ui.position.js"></script>
|
|
|
|
<script type="text/javascript" src="http://jqueryui.com/themeroller/themeswitchertool/"></script>
|
|
|
|
<script type="text/javascript">
|
|
|
|
$(function() {
|
|
|
|
$( "#elem" ).position({
|
|
|
|
my: "right bottom",
|
|
|
|
at: "right bottom",
|
|
|
|
of: window,
|
|
|
|
collision: "fit"
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
<style>
|
|
|
|
#elem {
|
|
|
|
position: absolute;
|
|
|
|
top: 100px;
|
|
|
|
left: 100px;
|
|
|
|
width: 200px;
|
|
|
|
height: 200px;
|
|
|
|
box-shadow: 10px 10px 5px #888;
|
|
|
|
-moz-box-shadow: 10px 10px 5px #888;
|
|
|
|
-webkit-box-shadow: 10px 10px 5px #888;
|
|
|
|
background-color: #aaa;
|
|
|
|
margin: 15px;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
|
|
|
<div id="elem"></div>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|