javascript/ php/ css

this is my code

 <!doctype html> <html> <head> <meta charset="utf-8"> <title>EVENTI</title> <link rel="stylesheet" type="text/css" href="../CSS/stile.css"> <link href='http://fonts.googleapis.com/css?family=Squada+One' rel='stylesheet' type='text/css'> <!--importare google font--> <script src="../JS/ridimensionapagina.js"></script> <script src="../JS/jquery-1.11.1.js.js"></script> </head> 

in my "ridimesionapagina.js" i've some JS code that debunk some of my elements declared in my css code , but in this page it doesen't works why?

Well making the assumption that you're using jQuery in your ridimensionapagina.js file, one would assume you'd fix the issue by reversing the order you load the scripts so that jQuery is in fact available when your ridimensionapagina.js script loads and runs.

<script src="../JS/jquery-1.11.1.js.js"></script>
<script src="../JS/ridimensionapagina.js"></script>

instead of

<script src="../JS/ridimensionapagina.js"></script>
<script src="../JS/jquery-1.11.1.js.js"></script>

如果在ridimensionapagina.js中使用jQuery,则应在加载ridimensionapagina.js文件之前将..include jQuery路径放在上面以加载jQuery。

暂无
暂无

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

Related Question Include PHP and JS files in SuiteCRM Include PHP inside JavaScript (.js) files How to include inline JS files with PHP? Include different .php files in JS popup Include PHP variables directly into js files include php file with several js files how to include css and js files to php template? When js files of draggable box include in php,It misses the draggable property Can't include js files in php file on cpanel HTML include js files
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM