!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>慕课网</title>
<link rel="stylesheet" href="css.css" />
<script src="js/myfocus-2.0.1.min.js"></script>
<script>
myFocus.set({id:'banner' });
</script>
</head>
已经知道原因了,风格的js和css文件是不需要单独引用的,
下面是风格的调用和改变的方法,
<script>
myFocus.set({id:'banner',
pattern:' 风格名称'});
</script>
引用写错了呗