為什么我設(shè)置的滾動(dòng)不管用
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>信息滾動(dòng)</title>
<style type="text/css" media="screen">
? p{width: 250px;height:200px;} ?
</style>
<meta name="description" content="">
<meta name="keywords" content="">
<link href="" rel="stylesheet">
</head>
<body>
? ?<marquee onmouseover="this.stop();" onmouseout="this.start();" behavior:"scroll" direction:"down" loop:"-1" scrollamount:"3" height:"99%">
? ? ? ?<p>
? ? ? ?<a href="#" title="">我要成功</a><br>
? ? ? ?<a href="#" title="">堅(jiān)持就是勝利</a><br>
? ? ? ?<a href="#" title="">加油加油</a>
? ?</p>?
? ?</marquee>
??
</body>
</html>
2016-11-10
你用的是p標(biāo)簽,他是塊狀元素,占據(jù)整行,你如果不把鼠標(biāo)放在瀏覽器窗口p標(biāo)簽的任何位置,你的這段代碼是滾動(dòng)的,你最好設(shè)置border便于觀察。
2016-10-17
是不是內(nèi)容太少了