<!DOCTYPE html> <html> <head> <body background=1
<!DOCTYPEhtml><html><head><bodybackground=123456.gif><imgsrc="mgkh.gif"align="left"/>...
<!DOCTYPE html>
<html> <head> <body background=123456.gif> <img src="mgkh.gif" align="left" /> <img src="mgkh.gif" align="right" /> <meta charset="utf-8">
<style>
div{
width:200px;
height:30px;
text-align:left;
padding-left:20px;
}
</style>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js">
</script>
<script> $(document).ready(function(){
var arr = ["你","说","的","是","这","样","吗","?","你","说","的","是","这","样","吗","?"];
var flag = 0;
setInterval(function(){
if(flag == 9){
flag = 0;
}
var str = "";
for(var i = 0;i < flag;i++){
str += arr[i];
}
$("div").html(str);
flag++;
},600);
});
</script>
</head>
<body>
<div></div>
</body>
</html> 复制这段代码,看一下如何改变字体大小,颜色,,,如果需要js文件的代码,再给我说,或者自己写一个也行!
展开
1个回答
展开全部
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<style>
div{
width:200px;
height:30px;
text-align:left;
padding-left:20px;
color:#cc0000;
font-size:18px;
}
</style>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js">
</script>
<script> $(document).ready(function(){
var arr = ["你","说","的","是","这","样","吗","?","你","说","的","是","这","样","吗","?"];
var flag = 0;
setInterval(function(){
if(flag == 9){
flag = 0;
}
var str = "";
for(var i = 0;i < flag;i++){
str += arr[i];
}
$("div").html(str);
flag++;
},600);
});
</script>
</head>
<body background=123456.gif> <img src="mgkh.gif" align="left" /> <img src="mgkh.gif" align="right" />
<div></div>
</body>
</html>
color:#cc0000;
font-size:18px;是文字的颜色跟大小CSS样式,然后我想说,你的标签写多了,并且放错地方了!有帮你改正!
<html>
<head>
<meta charset="utf-8">
<style>
div{
width:200px;
height:30px;
text-align:left;
padding-left:20px;
color:#cc0000;
font-size:18px;
}
</style>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js">
</script>
<script> $(document).ready(function(){
var arr = ["你","说","的","是","这","样","吗","?","你","说","的","是","这","样","吗","?"];
var flag = 0;
setInterval(function(){
if(flag == 9){
flag = 0;
}
var str = "";
for(var i = 0;i < flag;i++){
str += arr[i];
}
$("div").html(str);
flag++;
},600);
});
</script>
</head>
<body background=123456.gif> <img src="mgkh.gif" align="left" /> <img src="mgkh.gif" align="right" />
<div></div>
</body>
</html>
color:#cc0000;
font-size:18px;是文字的颜色跟大小CSS样式,然后我想说,你的标签写多了,并且放错地方了!有帮你改正!
追问
文字显示状态如何改变,就是不让其围绕图片显示?
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询