所以只能有两种可能。
1) 如果 line-height 是两行之间的高度,那么一行的 line-height 是多少?
2)如果行高是行高,那么如果我将行高设为 0,那么什么都不应该是可见的,对吗?但正如您在 line-height 0 之后的示例中所见,内容是可见的。
<!DOCTYPE html>
<html>
<head>
<style>
p {
line-height: 0;
}
</style>
</head>
<body>
<p>
First Line First Line First Line First Line First Line<br>
Second Line Second Line Second Line<br>
Third Line Third Line <br>
</p>
</body>
</html>Run Code Online (Sandbox Code Playgroud)
那么哪一个是正确的?
这是我的功能.现在它的吮吸时有200个id.i不想写到200个id.我可以在这里使用循环吗?像这样
for(i=0;i<200;i++){
"areas": [ {"id": i}]
}
Run Code Online (Sandbox Code Playgroud)
这是我的功能
var continentsDataProvider = {
"map": "continentsLow",
"areas": [ {
"id": 1,
}, {
"id": "2",
}, {
}, {
"id": "3",
}, {
}, {
"id": "4",
}, {
}, {
"id": "5",
}, {
} ]
};
Run Code Online (Sandbox Code Playgroud) 如果您单击demonstration单词正下方,则输入类型文件也会单击。
如何避免这种情况,所以单击事件仅在我给定的大小的那个区域上触发。
<!DOCTYPE html>
<html>
<body>
<style>
input{
border:3px solid red;
width:10px;
}
</style>
<h3>A demonstration of how to access a File Upload Button</h3>
<input type="file" id="myFile">
</body>
</html>Run Code Online (Sandbox Code Playgroud)
出于安全原因,如果您将此输入类型文件与另一个元素(如 label 、 div )包装在一起,则答案将不可接受。那有可能吗?