<!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文件的代码,再给我说,或者自己写一个也行! 展开
 我来答
ganyaoxi
2014-05-22 · 超过22用户采纳过TA的回答
知道答主
回答量:71
采纳率:0%
帮助的人:25.2万
展开全部
<!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样式,然后我想说,你的标签写多了,并且放错地方了!有帮你改正!
追问
文字显示状态如何改变,就是不让其围绕图片显示?
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式