background-image: linear-gradient(to right, #ff9000, #ff5000);
linear-gradient(to right, #ff9000, #ff5000);是css3有的
进行渐变色设计
transition: background-color 0.3s;
进行hover时 过度显示 0.3秒是过度时间
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>js练习</title>
</head>
<body>
<script type="text/javascript">
var a=parseInt(window.prompt("input"));
var result1=parseInt(a/100);
var result2=parseInt(a/10%10);
var result3=parseInt(a%10);
document.write(a)
document.write('<br>');
document.write(result3*100+result2*10+result1); */
var kk=parseInt(window.prompt("input"));
var first=1,
second=1,
thired;
if(kk>2){
for(var i=0;i<kk-2;i++){
thired=first+second;
first=second;
second=thired;
}
document.write(thired);
}else{
document.write(1);
}
for(var i=2;i<=100;i++){
var flag=true;
for(var j=2;j<i;j++){
if(i%j==0){
flag=false;
break;
}
}
if(flag){
document.write(i+'<br>');
}
}
</script>
</body>
</html>