簡體   English   中英

在PHP中使用引導程序切換

[英]Using bootstrap toggle in PHP

我正在嘗試使用該地址上的插件“ bootstrap toggle”: http : //www.bootstraptoggle.com

我正在debian OS上使用apache在php + html上開發我的網站,插件的安裝說明對我來說還不清楚。

它說使用Bower安裝來安裝插件,但是要從他們的網站安裝Bower我應該有npm,但是當檢查什么是npm時,這是一個node.js的東西,我想在php上使用它。

如果可以的話請幫忙。 謝謝。

僅當您要使用Bower進行安裝時,才安裝Bower。 如果沒有,只需下載軟件包或參考其CDN,就像在最頂部一樣:

<link href="https://gitcdn.github.io/bootstrap-toggle/2.2.0/css/bootstrap-toggle.min.css" rel="stylesheet">
<script src="https://gitcdn.github.io/bootstrap-toggle/2.2.0/js/bootstrap-toggle.min.js"></script>

由於您不知道Bower是什么,因此可以肯定地忽略該部分。 :)

如果您不使用Bower(=工具輕松管理框架,庫。),請忽略此部分。您只需要將以下內容放入您的:

<link href="https://gitcdn.github.io/bootstrap-toggle/2.2.0/css/bootstrap-toggle.min.css" rel="stylesheet">
<script src="https://gitcdn.github.io/bootstrap-toggle/2.2.0/js/bootstrap-toggle.min.js"></script>

您還可以下載這些軟件包(以使您的應用運行更快)。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM