有没有人遇到过类似的块?
我看不出这是如何实现的。在绝对定位的帮助下,不可能自适应地实现这一点。
UPD1:难点在于从中心画面延伸出来的线条的布局,文字块的布局对我来说没什么难的。
当我从项目文件夹的命令行中运行 npm i 命令时,开始下载文件并弹出以下错误:
1663 verbose stack SyntaxError: Unexpected end of JSON input while parsing near '..."unreachable-branch-t'
1663 verbose stack at JSON.parse (<anonymous>)
1663 verbose stack at parseJson (C:\Program Files\nodejs\node_modules\npm\node_modules\pacote\node_modules\make-fetch-happen\node_modules\node-fetch-npm\node_modules\json-parse-better-errors\index.js:7:17)
1663 verbose stack at consumeBody.call.then.buffer (C:\Program Files\nodejs\node_modules\npm\node_modules\pacote\node_modules\make-fetch-happen\node_modules\node-fetch-npm\src\body.js:96:50)
1663 verbose stack at <anonymous>
1663 verbose stack at process._tickCallback (internal/process/next_tick.js:188:7)
1664 verbose cwd C:\Users\Office\Desktop\Project
1665 verbose Windows_NT 6.1.7601
1666 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "i"
1667 verbose node v8.11.1
1668 verbose npm v5.6.0
1669 error Unexpected end of JSON input while parsing near '..."unreachable-branch-t'
1670 verbose exit [ 1, true ]
包.json:
{
"name": "blank",
"version": "1.0.0",
"description": "",
"main": "gulpfile.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Mikle888",
"license": "ISC",
"devDependencies": {
"browser-sync": "^2.23.3",
"del": "^3.0.0",
"gulp": "^3.9.1",
"gulp-autoprefixer": "^4.1.0",
"gulp-cache": "^1.0.2",
"gulp-csscomb": "^3.0.8",
"gulp-cssmin": "^0.2.0",
"gulp-plumber": "^1.2.0",
"gulp-sass": "^3.1.0",
"gulp-stylus": "^2.7.0"
}
}
之前一切都很好。你能告诉我可以做些什么吗?
UPD:节点8.11.1版本,npm 版本 - 5.6.0。