我在我的网站上有一个名为ExternalHits的SQL表.我将URL跟踪为URLx,以及将页面作为Datex访问的日期.我每周运行此查询以获取前一周的总点击次数,并且每周我必须手动更改"之间"日期.有没有什么方法可以更改我的查询,以便"之间"日期类似于今天和今天7?我想不必每周手动更改日期.
SELECT URLX, COUNT(URLx) AS Count
FROM ExternalHits
WHERE datex BETWEEN '02/27/2017' AND '03/05/2017'
GROUP BY URLx
ORDER BY Count DESC;
Run Code Online (Sandbox Code Playgroud) 我有一个与页面全宽的轮播。现在我需要将轮播标题设置为页面的整个宽度以及黄色背景。背景应该是页面的整个宽度,但实际的标题文本应该居中。
它应该是这样的:

这是现在的样子:

HTML:
<!--START CAROUSEL-->
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel" data-interval="false">
<!-- Wrapper for slides -->
<div class="carousel-inner" role="listbox">
<div class="item active">
<img src="../../images/LD/desktop_hero1.png" alt="...">
<div class="carousel-caption">
Text for caption 1 here.
</div>
</div>
<div class="item">
<img src="../../images/LD/desktop_hero2.png" alt="...">
<div class="carousel-caption">
Text for caption 2 here.
</div>
</div>
<div class="item">
<img src="../../images/LD/desktop_hero3.png" alt="...">
<div class="carousel-caption">
Text for caption 3 here.
</div>
</div>
</div>
<!-- Controls -->
<a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a> …Run Code Online (Sandbox Code Playgroud)