小编use*_*789的帖子

Nodejs 等待 127.0.0.1:9229 免费

当我尝试debugger在节点中使用来打开调试器时,出现错误“超时 (2000) 等待 127.0.0.1:9229 空闲”。如何解决此问题并正确运行调试器?

function foo() {
    var a = 5;
    debugger
    console.log(a)
}

foo()
Run Code Online (Sandbox Code Playgroud)

我已经尝试使用更改端口node inspect --port=9230 app.js,但它不起作用。

node.js

6
推荐指数
2
解决办法
4068
查看次数

为什么 HTML 中 SELECT 的大小比 INPUT 小

我试图创建一个表单,但遇到了一个问题:SELECT 和 INPUT 元素的大小不同。如下:为什么带有 SELECT 元素的 div 比带有 Input 元素的 div 小(您可以看到一个带有“深红色”颜色的小间隙)。

* {
  box-sizing: border-box;
}

.row {
  background-color: crimson;
}

.row::after {
  content: "";
  clear: both;
  display: table;
}

[class*="col-"] {
  float: left;
  background-color: cornflowerblue;
}

.col-1 {
  width: 8.33%;
}

.col-2 {
  width: 16.66%;
}

.col-3 {
  width: 25%;
}

.col-4 {
  width: 33.33%;
}

.col-5 {
  width: 41.66%;
}

.col-6 {
  width: 50%;
}

.col-7 {
  width: 58.33%;
}

.col-8 {
  width: 66.66%;
}

.col-9 { …
Run Code Online (Sandbox Code Playgroud)

html css

3
推荐指数
1
解决办法
3824
查看次数

标签 统计

css ×1

html ×1

node.js ×1