Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/85.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/33.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 影响文本的css不透明度转换_Html_Css - Fatal编程技术网

Html 影响文本的css不透明度转换

Html 影响文本的css不透明度转换,html,css,Html,Css,我的导航栏上有一个问题..试图用html和css来cpy“Dragon interactive”导航(这仍然是新的,所以我还不能处理javascript或jquery!!)。 由于渐变背景上的过渡在css上不可用,所以我尝试了不透明度…对于背景来说,情况似乎很好,但当鼠标悬停时,导航栏文本会消失!!有没有办法简单地解决这个问题!!(仅css:p) html 谢谢 这是因为这条线: ul li a:hover { opacity:0; } 好的…不透明度:0将使文本变为无…我如何修复它?

我的导航栏上有一个问题..试图用html和css来cpy“Dragon interactive”导航(这仍然是新的,所以我还不能处理javascript或jquery!!)。 由于渐变背景上的过渡在css上不可用,所以我尝试了不透明度…对于背景来说,情况似乎很好,但当鼠标悬停时,导航栏文本会消失!!有没有办法简单地解决这个问题!!(仅css:p) html


谢谢

这是因为这条线:

ul li a:hover {
    opacity:0;
}

好的…不透明度:0将使文本变为无…我如何修复它?只需将其设置为(唯一的问题是没有动画):
ul li a:hover{background:-webkit渐变(径向,50%100%,10,50%50%,90,从(rgba(31169244,1)),到(rgba(0,28,78,1));背景:-moz径向渐变(中心80px 45度,圆形覆盖,rgba(31169244,1)0%,rgba(0,28,78,1)100%);颜色:#fff;}
这里有动画。使用:before pseudo来实现这一点。Ookkkay伙计们……我在你们的帮助下得到了它!!谢谢你们…如果有人需要,请检查这里的最终工作代码!!
.wrapper {
width: 100%;
height: 70px;
background : #464646;
background : -webkit-gradient(linear, left top, left bottom, from(rgb(168,168,168)), to(rgb(69,69,69)));
background : -moz-linear-gradient(top, rgb(168,168,168), rgb(69,69,69));
border-top: 0px solid #939393;
position: relative;
margin-bottom: 30px;
margin-left:150px;

}

ul {
margin: 0;
padding: 0;
}

 ul.menu {
height: 70px;
border-left: 1px solid rgba(0,0,0,0.3);
border-right: 1px solid rgba(255,255,255,0.3);
float:left;
}

 ul.menu li {
list-style: none;
float:left;
height: 69px;
text-align: center;
background: -webkit-gradient(radial, 50% 100%, 10, 50% 50%, 90, from(rgba(31,169,244,1)), to(rgba(0,28,78, 1)) );
background: -moz-radial-gradient(center 80px 45deg, circle cover, rgba(31,169,244,1) 0%, rgba(0,28,78, 1) 100%);

}

ul li a {
display: block;
padding: 0 20px;
border-left: 1px solid rgba(255,255,255,0.1);
border-right: 1px solid rgba(0,0,0,0.1);
text-align: center;
line-height: 69px;
background : -webkit-gradient(linear, left top, left bottom, from(rgb(168,168,168)), to(rgb(69,69,69)));
background : -moz-linear-gradient(top, rgb(168,168,168), rgb(69,69,69));
-webkit-transition-property: opacity;
-webkit-transition-duration: 1.5s;
-moz-transition-property: opacity;
-moz-transition-duration: 1.5s;
text-decoration:none;
color:#000;
font-weight:bold;
text-transform: uppercase;
font-size:13px;
opacity:1;
}

ul li a:hover {
opacity:0;

 }

 ul li.active a{
background: -webkit-gradient(radial, 50% 100%, 10, 50% 50%, 90, from(rgba(31,169,244,1)), to(rgba(0,28,78, 1)) );
background: -moz-radial-gradient(center 80px 45deg, circle cover, rgba(31,169,244,1) 0%, rgba(0,28,78, 1) 100%);
color:#fff;
 }
ul li a:hover {
    opacity:0;
}