我玩了一点引导程序,然后我发现了关于如何使span类居中的烦人问题.在尝试偏移以对某些跨度进行居中后,我可以将某个跨度类居中(如span8与offset2,或span6与偏移量3),但问题是,我想将span7/span9/span10居中.
然后我尝试使用一些技巧来使span10居中......
<div class="container"> <!--Or span12 since the width are same-->
<div class="row">
<div class="span1" style="background:black;">Dummy</div>
<div class="span10" style="background:blue;">The Real One</div>
<div class="span1" style="background:black;">Dummy</div>
</div>
</div>
Run Code Online (Sandbox Code Playgroud)
有没有解决方案而不是使用上面的代码?
如果我想在不更改行边距左值的情况下将span7,span9甚至span11居中,我该怎么办?因为类行已经将margin-left设置为20px,这使得我难以将范围居中.
正如标题所描述的,我有这个AJAX函数,它在jQuery 1.8.3中完美运行
$.ajax({
type: "GET",
url: "bee.php",
success: function(msg) {
$("#bee-section").ajaxComplete(function() {
$(this).html(msg);
});
}
});
Run Code Online (Sandbox Code Playgroud)
但是没有在jQuery 1.9.1中工作并且根本没有显示任何内容.有帮助吗?谢谢.:)