我正在使用bootstrap开发一个网站,并希望我的滑块看起来像这样:
但是我看起来像这样:
.carousel-inner > .item > img,
.carousel-inner > .item > a > img {
width: 100%;
margin: auto;
}
.container {
width: 100% !important;
max-width: 600px !important;
margin: auto !important;
padding: 0;
background-color: rgb(21, 138, 188);
}
.carousel-control.left,
.carousel-control.right{
background: transparent;
}
a.deposit-now {
background-color: #e50376;
font-weight: bold;
padding: 10px;
text-transform: uppercase;
border-radius: 10px;
border: 1px solid #bf053d;
text-shadow: 5px 5px 5px #333;
}
<div class="container">
<div id="myCarousel" class="carousel slide" data-ride="carousel">
<!-- Indicators -->
<ol class="carousel-indicators">
<li data-target="#myCarousel" data-slide-to="0" class="active"></li>
<li data-target="#myCarousel" data-slide-to="1"></li>
<li data-target="#myCarousel" data-slide-to="2"></li>
<li data-target="#myCarousel" data-slide-to="3"></li>
</ol>
<!-- Wrapper for slides -->
<div class="carousel-inner" role="listbox">
<div class="item active">
<div class="slide-1">
<h1>150% Welcome Bonus</h1>
<p>Suspendisse ut semper enim, sed laoreet ante. Vivamus dictum arcu id mi faucibus, eget iaculis diam venenatis. Vivamus efficitur quam vitae metus mattis pretium ut ut tellus.</p>
<div class="inner">
<a href="" class="deposit-now">Deposit Now</a>
<a href="" class="terms-cond">Terms and Conditions</a>
</div>
</div>
</div>
<div class="item">
</div>
<div class="item">
</div>
<div class="item">
</div>
</div>
<!-- Left and right controls -->
<a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="right carousel-control" href="#myCarousel" role="button" data-slide="next">
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
</div>
如何在第一张图片显示的链接之后始终使导航按钮? 而且,有没有办法给所有幻灯片一个高度,同时保持滑块响应?
答案 0 :(得分:0)
如果您将此添加到您的CSS,那么它应该可以帮助您解决问题。您可以根据需要编辑值。
;WITH CTE
AS
(
SELECT DISTINCT ROW_NUMBER() OVER (Partition by PatInfo.PatientProfileID Order By E.Visit desc) AS RowNumber,
COUNT(0)OVER(PARTITION BY PatInfo.PatientProfileID) AS ZipTotalCount,
PatInfo.PatientProfileID, E.Visit, PatInfo.Zip, E.CarrierTypeDesc, E.FinancialClassDescription, IG.UDSInsuranceGroupName,IG.UDSInsuranceID
FROM Encounter E JOIN CHCEncounterType ET ON E.CHCEncounterTypeID = ET.CHCEncounterTypeID
JOIN PatientInfo PatInfo ON PatInfo.PatientProfileID = E.PatientProfileID
LEFT JOIN dbo.UDSInsuranceMapping ON ISNULL(dbo.UDSInsuranceMapping.InsuranceName,'') = ISNULL(E.FinancialClassDescription,'')
LEFT JOIN dbo.UDSInsuranceGroups IG ON IG.UDSInsuranceID = dbo.UDSInsuranceMapping.UDSInsuranceID
WHERE E.EncounterCounted = 1
)
SELECT Zip AS ZipCode, ZipTotalCount,
Count(PatientProfileID) as Total, UDSInsuranceGroupName, UDSInsuranceID
from CTE
where RowNumber = 1 AND ZIP IS NOT NULL AND ZipTotalCount>10
group by Zip, UDSInsuranceGroupName, UDSInsuranceID,ZipTotalCount