<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>實現(xiàn)div滾動條默認最底部以及默認最右邊</title>
<script type="text/javascript" src="jquery文件地址"></script>
<script type="text/javascript">
$(document).ready(function(){
$('#scroll_div').scrollTop( $('#scroll_div')[0].scrollHeight);
$('#scroll_div').scrollLeft( $('#scroll_div')[0].scrollWidth);
});
</script>
<body>
<div id="scroll_div" style="overflow-y:scroll; overflow-x:scroll;width:50px; height:300px; border:1px solid #F00;">
DIVCSS5測試內容,歡迎來到DIVCSS5學習DIV+CSS技術。大家可以通過DIVCSS5主站上的所有免費CSS教程足可學會DIV CSS技術 -如果需要深入系統(tǒng)學習、較短時間達到理想學習效果可參加DIV+CSS培訓班學習。
</div>
</body>
</html>
我是有底線的
掃描二維碼手機查看該文章
文章引用:http://www.qingbaosc.com/news/webzhishi/1365.html




