ورود

View Full Version : تغیر سایز



armindelavari
جمعه 17 آذر 1391, 16:46 عصر
سلام دوستان من یک کدی دارم بعد می خوام تو این کد به دکمم top و left بدم بعد هرچی تو css گشتم نشد درستش کنم
کسی میدونه به این دکمه چجوری میشه تو صفحه top و left داد ؟ خیلی مهمه لطفا کمک کنید
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>button demo</title>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css">
<script src="http://code.jquery.com/jquery-1.8.3.js"></script>
<script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
</head>
<body>

<button>Button label</button>

<script>
$( "button" ).button();
</script>

</body>
</html>


اینم منبعش
http://api.jqueryui.com/button/

amirashna
شنبه 25 آذر 1391, 11:15 صبح
برای اینکه بخوایی از top . left استفاده کنی اول باید
position: absolute;
بدی