

g++编译到32位win7的几个坑
第一次按照最普通的正常编译,g++ main.cpp -o main,运行时报错: 这时,添加-m32参数(32位)即可,但又报错: 再添加-static参数(将所有头文件打包进exe)即可。
Read more

css顶部对齐
写网站时,发现了这个问题。原来的代码是 12345678.section .item { display: inline-block; width: 100px; margin-inline: 10px; margin-bottom: 20px; margin-top:-65px; text-align: center;} 是这个样子 增加一行vertical-align: top;问题顺利解决!
Read morenpm install证书过期解决方法
npm install * 时报错:npm ERR! code CERT_HAS_EXPIREDnpm ERR! errno CERT_HAS_EXPIREDnpm ERR! request to https://registry.npm.taobao.org/events failed, reason: certificate has expired 解决方法:关闭 npm ssl 严格证书检查npm set strict-ssl false 或切换到官方源:npm config set registry https://registry.npmjs.org/
Read more关于 PHP 文件上传的小坑
###当我使用以下php代码上传文件时,出现了问题 123456789101112131415161718192021<!-- 上传文件前端 --><form action="*.php" method="post"><!-- 更多代码 --><input type="file" name="fileToUpload" required></form><!-- 后端 --> if ($_SERVER["REQUEST_METHOD"] == "POST") { if(!isset($_POST[..
Read more