我有一个非常基本的 PHP 项目。用纯 PHP 编写,没有任何框架。它只是从数据库中获取一些数据并作为列表打印。\n我想在这个项目中使用 TailwindCSS,但我无法找到一种可行的方法。官方文档涵盖了 Laravel 版本,但正如我所说,我没有使用任何框架或包管理器(如 Composer)
\n我尝试了这个文档:https://tailwindcss.com/docs/installation/using-postcss \n并在 tailwind.config.js 中添加了 PHP 扩展,但不起作用。
\n任何人都可以帮助我找到可行的解决方案吗?\n这是我的项目的示例结构。
\n.\n\xe2\x94\x94\xe2\x94\x80\xe2\x94\x80 src/\n \xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 css\n \xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 js\n \xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 index.php\n \xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 db.php\n \xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 header.php\n \xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 footer.php\n \xe2\x94\x94\xe2\x94\x80\xe2\x94\x80 sidebar.php\nRun Code Online (Sandbox Code Playgroud)\n 在 Bootstrap 4 中,这些类运行良好。但它们在 Bootstrap 5 中不起作用。知道为什么吗?
注意:d-block d-lg-flex、text-center text-lg-start text-md-end这些工作正常。看起来只有边距和填充相关的类不起作用。
示例代码:
<div class="d-block d-lg-flex justify-content-center flex-row bd-highlight ">
<div class="mb-0 mb-md-3 mb-lg-0">
<div class="dropdown text-center cairo ">
<select x-model="selectedUnits" class="form-select feature_text" aria-label="Default select example">
<option selected="" disabled="">Select unit amount</option>
<option value="myval">1 unit</option>
<option value="myval">1 unit</option>
<option value="myval">1 unit</option>
</select>
</div>
</div>
</div>
Run Code Online (Sandbox Code Playgroud) github.com 有没有像 Bitbucket Pipeline 一样的服务/功能?我实际上想将我的主分支推送到 FTP 服务器 (cpanel, apache) 。使用 Bitbucket Pipeline 真的很容易,但是在 Github 中有什么方法可以做到吗?
我试图使用 CircleCI 将我的主分支文件部署到 FTP 服务器(cpanel、apache)。我正在遵循本文中描述的说明。
但我在“node .circleci/deploy.js”上遇到错误
这是完整的错误日志:
#!/bin/bash -eo pipefail node .circleci/deploy.js internal/modules/cjs/loader.js:605
throw err;
^
Error: Cannot find module '/home/circleci/project/.circleci/deploy.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:603:15)
at Function.Module._load (internal/modules/cjs/loader.js:529:25)
at Function.Module.runMain (internal/modules/cjs/loader.js:774:12)
at executeUserCode (internal/bootstrap/node.js:342:17)
at startExecution (internal/bootstrap/node.js:276:5)
at startup (internal/bootstrap/node.js:227:5)
at bootstrapNodeJSCore (internal/bootstrap/node.js:743:3) Exited with code 1
Run Code Online (Sandbox Code Playgroud)
这是“.circleci”文件夹中的config.yml和 config.js 文件。
version: 2
jobs:
build:
docker:
- image: circleci/node:latest
steps:
- checkout
- run: npm install
- run: node .circleci/deploy.js
- run: echo "WE'RE ONLINE"
workflows:
version: …Run Code Online (Sandbox Code Playgroud)