我在Bootstrap 3中遇到两件事有困难:
我想删除Panel对象的轮廓 - 整个事物周围的蓝线
在面板内我放了一张桌子,我很想删除分隔行的线条,但只能在桌面上.(标题是灰色背景较深的区域)
这两件事情有可能吗?
请看一看
<div class="panel panel-primary" id="panel" style="display: block;">
<div class="panel-heading" id="heading">1387537097625.xls</div>
<div id="table">
<table id="changes" class="table table-striped table-condensed">
<thead style="font-weight: bold; background-color: rgb(192, 192, 192);">
<tr>
<td>Price List Name</td>
<td style="font-weight: normal;">Price list</td>
<td></td>
<td colspan="2"></td>
<td colspan="3"></td>
</tr>
<tr>
<td>Currency</td>
<td style="font-weight: normal;">EUR</td>
<td></td>
<td colspan="2">Existing price breaks</td>
<td colspan="3">New price breaks</td>
</tr>
<tr>
<td>Product Range</td>
<td>Product Description</td>
<td>Productid(s)</td>
<td>1+</td>
<td>500+</td>
<td>1+</td>
<td>250+</td>
<td>1000+</td>
</tr>
</thead>
<tbody>
<tr>
<td>Range</td>
<td>Some description here</td>
<td>559</td> …Run Code Online (Sandbox Code Playgroud) 我知道为了删除一个间隔你需要一个存储的引用,所以我想我会在全局数组中存储函数返回.但是为什么当我点击一个单元格时,间隔会继续,只有一个停止(我看到第一个和最后一个单元格停止闪烁)?
我想要它做的是在表行的所有单元格(不包括第一个单元格)上附加连续淡入淡出,并且单击任何这些单元格的监听器将停止所有这些单元格上的动画.
到目前为止,这是我最好的努力(jsfiddle):
var intervals;
var target = $('#table');
var qty = target.find('td:contains(Price)');
var row = qty.closest('tr');
arr = new Array();
row.find('td').each( function() {
if ($(this).text() !== "Price" ) {
intervals = new Array();
addAnimation($(this));
}
});
function addAnimation(cell) {
var intv = setInterval(function() {
cell.fadeTo("slow", 0.3);
cell.fadeTo("slow", 1);
}, 1000);
intervals.push(intv);
cell.click(function() {
for (var i = 0; i < intervals.length; intervals++) {
window.clearInterval(intervals[i]);
}
});
}
Run Code Online (Sandbox Code Playgroud) 我以为这将是一个简单的谷歌搜索,但我找不到答案:
我正在将 Access 数据库移至 SQL Server,我已将一些查询转换为视图。我的 Java 应用程序过去使用简单的方式调用每个查询:
{ call dbo.GetOtherRanges() } //Well, not entirely true - Access did not use 'dbo' schema in front of the name
Run Code Online (Sandbox Code Playgroud)
这适用于存储过程。但是当我对视图执行此操作时,我收到以下信息:
[SQL Server]The request for procedure 'GetOtherRanges' failed because 'GetOtherRanges' is a view object.
Run Code Online (Sandbox Code Playgroud)
我认为这就像删除()视图名称后面的括号一样简单,但这并没有达到目的。
我正在尝试在 Assembly 中编写 FizzBuzz,但我一直看到分段错误。到目前为止,我已经确定这不是我的打印例程(因为我已经删除了它们的内容并且问题仍然存在)并且错误隐藏在主函数中的某个位置。
当我运行程序时,我得到了这个输出:
fizzSegmentation fault
Run Code Online (Sandbox Code Playgroud)
让我相信这不是使用除法和查找余数的问题。但我可能是错的,我已经两年没有做过汇编了......
SECTION .data
global _start
fizz: db "fizz", 4
buzz: db "buzz", 4
SECTION .bss
counter: resb 1
SECTION .text
_start:
mov ax,0
mov [counter],ax
main_loop:
cmp ax,100 ;from 0 to 100
je exit ;
mov bl,3 ;divisor
mov ah,0 ;here will be a remainder
div bl ;divide
cmp ah,0 ;compare the remainder with 0
je print_fizz ;print fizz if they equal
mov bl,5 ;new divisor
mov ah,0 ;do I have to do …Run Code Online (Sandbox Code Playgroud)