我已经创建了一个包含溢出内容可滚动的div,但是我希望它的滚动被隐藏但是div仍然可以滚动.
.description
{
height: 150px;
overflow: scroll;
}
<div class="description">
<h4>Description</h4>
<p>After a series of deadly discoveries, Bruce Wayne has learned that the Court of Owls is real ? and a deadly threat out to control Gotham City! Unleashing their deadly assassins known as the Talons, Batman must stop the insidious Court of Owls before they claim the city for their own. In doing so, The Dark Knight will uncover dark secrets ? not just about the city he?s sworn …Run Code Online (Sandbox Code Playgroud) 在数组的每个元素中,第二个值指向元素本身的父级。因此,例如在第一个数组中,“ City”是根元素,而“ Area”是第一个子元素,因为第二个“ Area”元素(1)指向“ City”的键。
样本数据
$locations = array(
3 => array("Building", 2),
2 => array("Area", 1),
0 => array("Floor", 3),
1 => array("City"),
4 => array("Room", 0),
13 => array("Building1", 12),
12 => array("Area1", 11),
14 => array("Room1", 10),
10 => array("Floor1", 13),
11 => array("City1")
);
Run Code Online (Sandbox Code Playgroud)
预期产量
Room > Floor > Building > Area > City
Room1 > Floor1 > Building1 > Area1 > City1
我的解决方案
$route = [];
foreach ($locations as $locationKey => $locationArray) {
if (!isset($locationArray[1])) …Run Code Online (Sandbox Code Playgroud) 我收到此错误npm run prod
npm run prod
> @ prod /opt/atlassian/pipelines/agent/build
> encore production
Running webpack ...
ERROR Failed to compile with 2 errors4:15:08 PM
error in ./web/assets/src/scss/styles.scss
Module build failed:
$navbar-padding-horizontal: floor(math.div($grid-gutter-width, 2)) !default;
^
Invalid CSS after "... floor(math": expected expression (e.g. 1px, bold), was ".div($grid-gutter-w"
in /opt/atlassian/pipelines/agent/build/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/_variables.scss (line 369, column 46)
@ ./web/assets/src/scss/styles.scss 4:14-219
error in ./web/assets/src/scss/styles.scss
Run Code Online (Sandbox Code Playgroud)
我已经经历了很多修复,其中之一是使用sass而不是node-sass我所做的,但随后它抛出了这个错误
Error: Install node-sass to use enableSassLoader()
yarn add node-sass --dev
Run Code Online (Sandbox Code Playgroud)
如果我禁用.enableSassLoader()此错误,则会发生此错误
FIX To …Run Code Online (Sandbox Code Playgroud)