我需要将一个图像放在另一个图像上。
这是我的代码:
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Example</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
</head>
<body>
<div class = "row text-center" style="">
<div class="col-xs-6 text-center" style="background-color:none; margin-top:10px;">
<img src="1.jpg" width="250" height="250">
<img src="plus.png" width="50px" height="50px">
</div>
</div>
</body>
</html>Run Code Online (Sandbox Code Playgroud)
它来像:
我的实际需要是在图像上加号,如下所示:
这是我的模态
<div class="modal hide fade" id="loader">
<div class="modal-dialog">
<div class="modal-content" style="margin-top:240px;">
<div class="modal-body">
<input type="range" id="loaderd" min="-50" max="0">
</div>
</div>
</div>
</div>
Run Code Online (Sandbox Code Playgroud)
和 JQuery
$('#loader').modal('show');
Run Code Online (Sandbox Code Playgroud)
出现的错误是
Uncaught TypeError: $(...).modal is not a function @ ssss.js:546onclick @ ssss.htm:1
Run Code Online (Sandbox Code Playgroud)
有什么问题?正在使用这样的按钮
<img id="volumeClickedMiniPlayer" src="img/volume.png" width="25px" height="25px" data-toggle="modal" data-target="#loader">
Run Code Online (Sandbox Code Playgroud) 我有这个代码,并且花了很多时间在swift中执行? 每次迭代需要1秒才能执行,为什么?
执行该循环时的CPU百分比为97-98%,能量影响为高
这是守则
var braces:Int = 1;
var i:Int = startIndex;
let jsFileChars = Array(javascriptFile);
while(i < javascriptFile.count){ //count:1240265
if (braces == 0) {
break;
}
if (jsFileChars[i] == "{"){
braces = braces+1;
}else if (jsFileChars[i] == "}"){
braces = braces-1;
}
i = i+1;
}
Run Code Online (Sandbox Code Playgroud)
这个循环以非常缓慢的速度迭代,为什么?