div产⽣的滚动条如何回到顶部
我话少,直接上代码,html代码⽐较乱,主要为了产⽣垂直滚动条,看js就Ok了,jquery.js⾃⾏下载,就不提供了,so easy!其实说⽩了就是控制这个div的垂直滚动条的偏移,这⾥回到顶部,所以就设置成0。顺带着也把页⾯的垂直滚动条也移到了最顶端。
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "www.w3/TR/html4/loo.dtd">
<html>
<head>
<title> New Document </title>
<meta name="Generator" content="EditPlus">
<meta http-equiv="Content-Type" content="text/html; chart=utf-8" />
<meta name="Author" content="">
四六级出分时间<meta name="Keywords" content="">
<meta name="Description" content="">
<script type="text/javascript" src="jquery.js">
</script>
<script type="text/javascript">
$(function(){
$('#btn').click(function(){
蹬三轮
$('html,body').animate({scrollTop: '0px'}, 800);
var container = $('#div1');
$(container).scrollTop(
);香菇的功效
新疆小吃
})
})
</script>
</head>
<body>
<div >
<div id="div1" > <div id="row_8"></div>English is a West Germanic language that was first spoken in early medieval England and is now a global lingua franca.[4][5] It is spoken as a first language by the majority populations of veral sovereign states, including the United Kingdom, the United States, Canada, Australia, Ireland, New Zealand and a number of Caribbean nations; and it is an official language of almost 60 sovereign states. It is the third-most-common native language in the world, after Mandarin Chine and Spanish.[6] It is widely learned as a cond language and is an official language of the European Union, many Commonwealth countries and the United Nations, as well as in many world organisations.
English aro in the Anglo-Saxon kingdoms of England and what is now southeast Scotland. Following the extensive influence of Great Britain and the United Kingdom from the 17th to mid-20th centuries through the British Empire, it has been widely propagated around the world.[7][8][9][10] Through the spread of American-dominated media and technology,[11] English has become the leading language of international discour and the lingua franca in many regions.[12][13]
Historically, English originated from the fusion of cloly related dialects, now collectively termed Old English, which were brought to the eastern coast of Great Britain by Germanic ttlers (Anglo-Saxons) by the 5th century; the word English is derived from the name of the Angles,[14] and ultimately from their ancestral region of Angeln (in what is now Schleswig-Holstein). The language was also influenced early on by the Old Nor language through Viking invasions in the 9th and 10th centuries.
The Norman conquest of England in the 11th century gave ri to heavy borrowings from Norman French, and vocabulary and spelling conventions began to give the appearance of a clo relationship with tho of Latin-derived Romance languages (though English is not a Romance language itlf) [15][16] to what had then become Middle English. The Great Vowel Shift that began in the south of England in the 15th century is one of the historical events that mark the emergence of
Modern English from Middle English.
In addition to words inherited natively from Anglo-Saxon and tho borrowed from Norman French, a significant number of English terms are derived from constructions bad on root words originally taken from Latin, becau Latin in some form was the lingua franca of the Christian Church and of European intellectual life[17] and remains the wellspring of much modern scientific and technical vocabulary.
Owing to the assimilation of words from many other languages throughout history, modern English contains a very large vocabulary, with complex and irregular spelling, particularly of vowels. Modern English has not only assimilated words from other European languages, but from all over the world. The Oxford English Dictionary lists more than 250,000 distinct words, not including many technical, scientific, and slang terms.
</div>富贵竹的养殖方法和注意事项
</div>
</div>
<input id="btn" type="button" value="test">
<div data-role="header" data-position="fixed" data-fullscreen="true"> <div data-role="navbar">
<ul>
<li><a href="#" data-role="button">⾸页</a></li>
<li><a href="#" data-role="button">页⾯⼆</a></li>
<li><a href="#" data-role="button">搜索</a></li>
</ul>
</div>
陈白沙纪念馆</div>
银行卡年费<div data-role="content" >
<ul id="details11">
<li>
<a href="#" data-role="button">按钮</a>
</li>
</ul>
</div>
美丑
</body>
</html>