标签:html 北京 city overflow style body name amount document
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<style>
*{
padding:0;
margin:0;
}
.btn{
width:340px;
height:30px;
position: absolute;
left:50%;
margin-left: -150px;
top:60px;
}
.header{
font-size: 40px;
filter: alpha(opacity=100,style=3);
width:600px;
color:red;
line-height: 100%;
position: absolute;
left:50%;
margin-left: -300px;
border:1px solid #000;
overflow: hidden;
font-family: "华文行楷" scrollAmount=8;
}
</style>
</head>
<body>
<marquee class="header">
<font>
<b id="box">
北京欢迎你
</b>
</font>
</marquee>
<input type="text" name="text1" onKeyup="javascript:send(this);" class="btn">
<script>
function send(input){
obj = document.getElementById("box");
obj.innerHTML = input.value;
}
</script>
</body>
</html>
标签:html 北京 city overflow style body name amount document
原文地址:http://www.cnblogs.com/shmilysong/p/6134392.html