HTML引入第三方类库项目需要授权解决方案
生活随笔
收集整理的這篇文章主要介紹了
HTML引入第三方类库项目需要授权解决方案
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
想必引入第三方類庫項目需要授權(quán),這個很多人都有遇到過吧,這里講一下怎么解決這個問題。
如下圖代碼:
<!DOCTYPE html> <html> <head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta name="author" content="mayouchen" /><meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport"><title></title> </head> <style type="text/css">@charset "utf-8";*{margin:0;padding:0;-webkit-tap-highlight-color: rgba(0, 0, 0, 0);-webkit-box-sizing: border-box;-moz-box-sizing: border-box;}html {/*height:100%;*/min-height: 100%;font-size: 100%;-webkit-text-size-adjust: 100%;-ms-text-size-adjust: 100%;}body {width: 100%;/*height:100%;*/min-height: 100%;font-family:"Microsoft YaHei","微軟雅黑","MicrosoftJhengHei","華文細黑","Helvetica", "Arial", "sans-serif";font-size: 14px;position: relative;word-break:break-all;}a {text-decoration: none;-webkit-tap-highlight-color: rgba(0, 0, 0, 0.35);-webkit-box-sizing:border-box;}img {-ms-interpolation-mode: bicubic;vertical-align: middle;}img:not([src*="/"]) {display: none;}table {border-collapse: collapse;border-spacing: 0;}textarea {resize: none;}input, button, select, textarea {-webkit-appearance:none;outline: none;border-radius: 0;}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button {-webkit-appearance: none !important;margin: 0;}ul,ol,li {list-style: none;-webkit-margin-before: 0;-webkit-margin-after: 0;-webkit-margin-start: 0;-webkit-margin-end: 0;-webkit-padding-start: 0;}.section-body .text {margin-top: 24px;margin-left: 40px;margin-right: 35px;width: 84%;font-family: "宋體";font-size: 18px;}.section-body .textImg{margin-top: 45px;color: blue;text-align: center;vertical-align: middle;} </style> <script src=”http://libs.baidu.com/jquery/1.6.4/jquery.min.js”></script> <body><div>基本手機端HTML結(jié)構(gòu)</div> </body> </html>這個時候頁面是會報沒有授權(quán),如圖:
這個意思就是因為引入第三方的類庫,而這個類庫沒有授權(quán),這個時候你需要做的其實很簡單,那就換一個其他第三方類庫(這個類庫不需要授權(quán))
例如:
<script src="http://libs.baidu.com/jquery/1.9.1/jquery.min.js"></script><script src="http://code.jquery.com/jquery-migrate-1.2.1.min.js"></script><script src="https://cdn.bootcss.com/jquery/3.2.1/core.js"></script>這里推薦一個常使用的第三方類庫地址:
http://www.bootcdn.cn/
這里的CDN全都是免費的,而且種類很多。
總結(jié)
以上是生活随笔為你收集整理的HTML引入第三方类库项目需要授权解决方案的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 辐射安全理念是
- 下一篇: 女生网名大全两个字118个