- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我对 CSS 非常陌生
我的悬停结果很差。见下图:
如果你看黄色在上面的灰色边框结束之前就已经结束了。
<div class="section2">
<div class="bannersection">
<h2 class="sectionlabel"><xsl:value-of select="/*/hundreds/highestreviews/label" /></h2><a href="/top/highestreviews"><span class="reviewlink" style="margin-right:390px">View Clubs</span></a>
</div>
<table class="featuredclub" id="featuredclub-highestreviews">
<tr>
<td width="10%" class="rating"><div class="ratingnumber"><span class="ratingpositiontext">#1</span></div></td>
<td width="15%" style="margin-left:0px;margin-top:1px" class="imagetd"><div class="ratingimage"><div style="margin-top:6px"><img style="height:80px;width:80px" class="featuredavatar" src="/img/featuredtmp.png" /></div></div></td>
<td width="75%" style="text-align:left;margin-left:10px">
<span class="featuredclubname"><xsl:value-of select="/*/hundreds/highestreviews/featuredclub/name"/></span>
<span class="featuredclubaddress"><xsl:value-of select="/*/hundreds/highestreviews/featuredclub/address"/></span>
<span class="featuredclublocality"><xsl:value-of select="/*/hundreds/highestreviews/featuredclub/city"/>, <xsl:value-of select="/*/hundreds/highestreviews/featuredclub/state"/> <xsl:value-of select="/*/hundreds/highestreviews/featuredclub/zip"/></span>
<div class="featuredclubphone"><xsl:value-of select="/*/hundreds/highestreviews/featuredclub/phone"/></div>
</td>
</tr>
</table>
<p class="clear"></p>
<table width="95%" cellpadding="0" cellspacing="0" style="margin-left:-50px">
<xsl:for-each select="/*/hundreds/highestreviews/contendors/contendor">
<tr>
<td align="right" width="60%"><span style="margin-right:25px" class="clubname" id="highestreviews-{./locid}-{position()}"><xsl:value-of select="./name"/></span></td>
<td align="right" width="35%">
<div class="progress-fill" style="margin-left:5px;width:{./pixelweight}px"></div>
</td>
<td align="right" width="5%"><span class="value" style="margin-left:15px;"><span style="font-weight:bold"><xsl:value-of select="./numberval"/></span></span></td>
</tr>
</xsl:for-each>
</table>
</div>
<p class="clear"></p>
</div>
这是我的 CSS:
@CHARSET "ISO-8859-1";
span.value {
margin-right:-10px;
}
.viewallbutton{
display:inline;
margin-top:2px;
margin-left:2px;
}
h2.sectionlabel{
display:inline-block;
}
.banner{
position: relative;
background-color: #ffffff;
width: 1200px;
height: 66px;
margin: 0px auto;
padding-top:15px;
padding-bottom:0px;
padding-left:16px;
padding-right:25px;
box-sizing: border-box;
/**
border-top: 1px solid #d0d0d0;
border-left: 1px solid #d0d0d0;
border-right: 1px solid #d0d0d0;
border-bottom:none;
*/
border:0px;
border-bottom:1px solid #f0f0f0;
font: 14px/20px Arial, Helvetica, Sans-serif;
}
.banner h2{
font: 32px/32px DinWebCond, Sans-serif;
color: #120006;
margin: 0px 0px 5px 0px;
text-transform: uppercase;
padding-top:5px;
padding-bottom:15px;
}
div.banner-container1{
width:90%;
height:50px;
background-color:#f0f0f0;
padding-left:25px;
}
div.banner-container2{
width:90%;
height:50px;
background-color:#f0f0f0;
padding-left:25px;
/**padding-left:25px;*/
}
div.banner-container div.innerclubbox{
background-color:#ffffff;
}
.tabledatalabel{
font: 20px/24px DinWebCond, Sans-serif;
color: #606060;
margin: 0px 0px 5px 0px;
/**text-transform:capitalize;*/
padding-top:5px;
}
.row {
position: relative;
/**height: 750px;*/
height: 450px;
background-color: #ffffff;
width: 1200px;
margin: 0px auto;
/**padding-top:20px;*/
padding-top:10px;
padding-bottom:0px;
padding-left:0px;
/**padding-right:25px;*/
box-sizing: border-box;
/**border: 1px solid #d0d0d0;*/
font: 14px/20px Arial, Helvetica, Sans-serif;
}
p .clear{
clear:both;
}
.section1 .featuredclub{
width:100%;
height:100px;
background-color:#f0f0f0;
font:14px/20px AdlWebNorm, Sserif;
}
.section1 table.featuredclub,
.section2 table.featuredclub{
width:100%;
height:111px;
background-color:#f0f0f0;
font:14px/20px AdlWebNorm, Sserif;
margin-top:-5px;
/**margin-left:25px;*/
margin-bottom:10px;
}
.section1 table.featuredclub .rating,
.section2 table.featuredclub .rating {
/**margin-top:-5px;
margin-left:25px;
margin-bottom:10px;*/
/**background-color:#ffffff;*/
width:71px;
height:71px;
}
.section1 table.featuredclub .image,
.section2 table.featuredclub .image {
/**margin-top:-5px;
margin-left:25px;
margin-bottom:10px;*/
/**background-color:#ffffff;*/
width:71px;
height:71px;
margin-left:0px;
}
.ratingnumber{
font-size: 42px;
margin-left:16px;
width:80px;
height:80px;
background-color:#ffffff;
/**padding-left:15px;
padding-top:15px;*/
}
.section1 .featuredclub span,
.section2 .featuredclub span {
line-height: 85px;
}
.ratingpositiontext{
margin-right:15px;
margin-top:55px;
}
.section1 table.featuredclub .rating div.ratingimage,
.section2 table.featuredclub .rating div.ratingimage{
font-size: 26px;
margin-left:0px;
width:80px;
height:80px;
background-color:#ffffff;
}
.section1 .featuredclub .featuredtext{
width:100%;
height:100px;
background-color:#f0f0f0;
font:14px/20px AdlWebNorm, Sserif;
display:inline-block;
}
.section1 .featuredclub span p.rating{
margin-top:-5px;
margin-left:25px;
margin-bottom:10px;
background-color:#ffffff;
width:71px;
height:71px;
/**display:inline;*/
}
.section1 .featuredclub span p.text{
margin-top:-5px;
margin-left:5px;
margin-bottom:10px;
background-color:#ffffff;
/**width:71px;*/
height:71px;
display:inline;
}
.section2 .featuredclub{
width:100%;
height:100px;
background-color:#f0f0f0;
font:14px/20px AdlWebNorm, Sserif;
}
.section1 .featuredclub span.featuredclubname,
.section2 .featuredclub span.featuredclubname
{
clear:both;
color:#120006;
float:left;
font: 22px/22px DinWebCond, Sans-serif;
}
.section1 .featuredclub span.featuredclubaddress,
.section2 .featuredclub span.featuredclubaddress
{
clear:both;
float:left;
font: 14px/20px AdlWebNorm, Serif;
color: #000000;
}
.section1 .featuredclub span.featuredclublocality,
.section2 .featuredclub span.featuredclublocality
{
clear:both;
float:left;
font: 14px/20px AdlWebNorm, Serif;
color: #000000;
}
.section1 .featuredclub div.featuredclubphone,
.section2 .featuredclub div.featuredclubphone
{
position: relative;
clear:both;
float:left;
font: bold 12px/12px Arial, Helvtica, Sans-serif;
margin-top:2px;
height: 18px;
font: bold 14px/14px Arial, Helvetica, Sans-serif;
padding: 1px 0px 0px 22px;
margin-right: 10px;
background: url(data:image/gif;base64,R0lGODlhEgASALMAADMzAJmZZv///8/Pz87OzszMzJmZmWlpaWZmZjMzMwAAAAAAAAAAAAAAAAAAAAAAACwAAAAAEgASAAAEWFDISatNiCaVjBWIonhSsHEEZYgKYK3KMLEiiUkFN9OFUJyelY3V0ygkOh+xkstsJqeERWeQ7hTFSbYCw34+oeS3chpJNodxmSbaUsJssSXHto4F1dp9HwEAOw==) 0px 0px no-repeat;
}
.section2 .featuredclub span p.rating,
{
margin-top:-5px;
margin-left:25px;
margin-bottom:10px;
background-color:#ffffff;
width:71px;
height:71px;
}
.section1 .featuredclub p.rating img.featuredavatar{
margin-top:-27px;
width:70px;
height:70px;
margin-left:69px;
display:block;
}
.section2 .featuredclub p.rating img.featuredavatar{
margin-top:-27px;
width:70px;
height:70px;
margin-left:69px;
}
.section1 .featuredclub span p.rating span.rating-number-box
{
text-align:center;
font-size: 36px;
color:#bd673a;
margin-top:20px;
}
.section2 .featuredclub span p.rating span.rating-number-box
{
text-align:center;
font-size: 36px;
color:#bd673a;
margin-top:20px;
}
.section1 .featuredclub span{
/**margin-left:25px;*/
}
.section2 .featuredclub span{
/**margin-left:25px;*/
}
.section1 {
width:50%;
border-right: 1px solid #d0d0d0;
float:left;
box-sizing: border-box;
}
td {
font:14px/20px AdlWebNorm, Sserif;
}
.section2 {
width:50%;
/**border-right: 1px solid #d0d0d0;*/
float:left;
box-sizing: border-box;
}
.section1 h2{
font: 22px/24px DinWebCond, Sans-serif;
color: #120006;
margin: 0px 0px 5px 0px;
text-transform: uppercase;
padding-left:17px;
padding-bottom:10px;
}
.section2 h2{
font: 22px/24px DinWebCond, Sans-serif;
color: #120006;
margin: 0px 0px 5px 0px;
text-transform: uppercase;
padding-left:17px;
padding-bottom:10px;
}
td {
text-align:right;
}
td.imagetd{
text-align:left;
}
.progress-bar .horizontal {
float: left;
height: 45px;
width: 100%;
/**padding: 12px 0;*/
}
.progress-track {
position: relative;
width: 30%;
height: 13px;
background: #FFFFFF;
float:right;
margin-left:-20px;
}
.progress-fill {
position: relative;
background: #2272af;
height: 13px;
width: 50%;
color: #2272af;
text-align: center;
font-family: "Lato","Verdana",sans-serif;
font-size: 12px;
line-height: 20px;
border-radius:0px 4px 4px 0px;
/**border-radius:0px 0px 0px 0px;*/
/**border-radius-top-right:5x;
border-radius-bottom-right:5px;*/
}
/**tr td { padding-top: 1px }*/
.ratingpositiontext{
color:#e8620d;
font: 42px/44px DinWebCond, Sans-serif;
}
.featuredclub { border-collapse: collapse; }
td { padding: 0; }
span.reviewlink {
position: absolute;
right: 0px;
font: 16px/16px DinWebCond, Sans-serif;
color: #000000;
text-transform: uppercase;
background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAAATCAYAAABvLghXAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD9AAAAWgAAANkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAD//9rZHHe17HGFAAAAAElFTkSuQmCC) right 0px no-repeat;
padding: 3px 11px 2px 4px;
#if gecko
line-height: 0.95;
/**bottom: -1px;*/
#endif
}
最后这是我的 javascript:
var hundreds = document.getElementsByClassName("clubname");
for(var i=0;i<hundreds.length;i++){
hundreds[i].onmouseover = function(e){
var firstParent = this.parentNode;
firstParent.parentNode.style.backgroundColor="#ffff99";
firstParent.parentNode.style.cursor='pointer';
updateFeaturedData(this);
}
hundreds[i].onmouseout = function(e){
var firstParent = this.parentNode;
firstParent.parentNode.style.backgroundColor="#ffffff";
firstParent.parentNode.style.cursor='default';
}
}
无论如何,我们将不胜感激。
最佳答案
那是给span.value的margin right为负值造成的
负边距将元素移到表空间之外。
关于javascript - 表格行数据没有扩展到足以在悬停时更改背景颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33661572/
我正在学习和使用 jQuery,并且想要显示某些元素的删除图标。 我有一个外部主 div,其中包含许多元素的包装器。在元素包装器内部,我想当用户将鼠标悬停在元素包装器上时显示删除图标,并在用户移出元素
已关闭。此问题需要 debugging details 。目前不接受答案。 编辑问题以包含 desired behavior, a specific problem or error, and the
我从 Qt 开始,每当有人将鼠标悬停在 QPushButton 上时,我想将 QPushButton 设置为不同的图标。到目前为止,这是我的代码: #include QPushButton *but
我从 Qt 开始,我想在有人将鼠标悬停在 QPushButton 上时将其设置为不同的图标。到目前为止,这是我的代码: #include QPushButton *button = new QPus
我有以下代码... jQuery(function($) { var timer; $('.action-viewer').hide(); $('.task').on('mouseover
我有一张照片,当用户将鼠标悬停在它上面时,我会在照片顶部显示(使用绝对定位)2 个箭头,一个用于进入上一张照片,一个用于进入下一张照片。这是到目前为止的代码... $('a.large_product
$('li > a').hover( function(){ $(this).animate({ backgroundColor: '#2a639a', color: '#fff'
我有一个悬停事件附加到几个链接,当您点击它时,会出现一个框。 有没有一种方法可以让悬停事件仅在鼠标悬停在链接上超过 500 毫秒时触发?因此,目前只要鼠标移到链接上,就会出现该框,但我希望只有当鼠标悬
我正在创建包含各种样式控件的演示应用程序。它允许我快速预览更改。 我的问题是下面的代码不起作用: Pressed button 它表示 IsPressed 的 setter 受到保护。我明白了,但我需
我正在尝试使用 js 并创建带有一些“信息文本”的“描述框” HTML google JS function info() {} 我不知道是哪个代码用一些文本创建了所谓的“描
我有一个 Accordion 风格的菜单,在悬停状态下工作正常,但我想改为点击... $(document).ready(function(){ $('#nav > li').hover(
我正在使用 Chartjs v.1.0.2 并尝试将点设置为仅在悬停在当前点上时出现。同样的问题是当我使用悬停或鼠标悬停时。可以使用 getPointsAtEvent(e); 找到当前点,但它仅在我将
我使用foreach 语句访问IEnumerable 的所有元素并将其呈现在详细信息页面中。我想让每个元素的悬停属性只影响一个元素。所以我使用 jQuery 单独影响每个元素 但是当我运行代码并将鼠标
首先提前感谢您的帮助。 案例:我在一行中有多个 div。这些 div 位于一个框中,我可以在此框中水平滚动以查看其他 div。我制作了两个按钮(L 表示左侧,R 表示右侧),以便在悬停或单击这些按钮时
我正在创建一个应用外观页面。 我希望在鼠标悬停时打开底部菜单上的其中一个按钮。 这感觉像是一项简单的任务,但我所做的一切似乎都不起作用。我错过了什么,我做了很多研究,但似乎找不到解决方案。 我尝试使用
我遇到的问题是,当您将鼠标悬停在按钮上时,只有按钮的某些部分会触发悬停/可点击状态,而不是所有实际 block 。有什么想法吗? 这是使用它的站点:http://www.revival.tv/turn
我有一位客户想要在他们的网站上实现特定功能,但我有点困惑如何做到这一点。 基本上,如果你查看他们的 existing site您可以看到 4 个圆形按钮。 他们想要的是,当有人将鼠标悬停(或单击,如果
关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。 关闭 9 年前。 关于您编写的代码问题的问题必须在问题本身中描述具体问题 — 并且包括有效代码 以
我目前正在编写我的第一个响应式网站(总的来说我是一个初学者)并且我遇到了很多障碍。其中之一是我的菜单有问题。我会尽量具体。我有一个用于桌面的水平菜单和一个用于平板电脑/手机的垂直菜单。我不知道如何解决
我正在为网站创建菜单。我正试图在链接上实现悬停 和点击 效果。我希望列表元素 a 上的悬停事件触发彩色动画并添加“事件”类。如果触发了点击和悬停事件,我想为该元素分配相同的类。问题是,一旦元素未悬停并
我是一名优秀的程序员,十分优秀!