按钮和饼图Css
我对CSS Pie和iE8有一个奇怪的问题,Pie正确地将border radius属性应用于元素,但是元素的背景(渐变色或平面色)溢出了边界,看起来它位于顶部,隐藏了实际的元素 我已经使用派CSS有一段时间了。我知道在PHP环境中使用pie.PHP是必要的,pie的正确位置在站点的根目录下。我从来没有遇到过这个问题,但现在我使用的是一个响应框架,我有这个问题。按钮由以下结构制成:按钮和饼图Css,css,css3pie,Css,Css3pie,我对CSS Pie和iE8有一个奇怪的问题,Pie正确地将border radius属性应用于元素,但是元素的背景(渐变色或平面色)溢出了边界,看起来它位于顶部,隐藏了实际的元素 我已经使用派CSS有一段时间了。我知道在PHP环境中使用pie.PHP是必要的,pie的正确位置在站点的根目录下。我从来没有遇到过这个问题,但现在我使用的是一个响应框架,我有这个问题。按钮由以下结构制成: <p class="btn"> <a href="#">Learn More</
<p class="btn">
<a href="#">Learn More</a>
</p>
是过滤器溢出;如果让PIE通过PIE背景渲染渐变,则不需要使用它。移除过滤器,一切都会好起来。CSS是什么样子的?谢谢你看这个,凯文,我刚刚在问题中添加了CSS。你是对的,这是正确的答案,非常感谢。
.btn {
position: relative;
display: inline-block;
width: auto;
height: 36px;
font-size: 16px;
line-height: 36px !important;
border: 1px solid #a0c401;
border-radius: 4px;
cursor: pointer;
margin: 0 0 20px 0;
-webkit-box-shadow: inset 0 1px 1px #fff,
0 1px 2px rgba(0,0,0,0.31); /* Remove this line if you dont want a dropshadow on your buttons*/
box-shadow: inset 0 1px 1px #fff,
0 1px 2px rgba(0,0,0,0.31); /* Remove this line if you dont want a dropshadow on your buttons*/
background: #c0eb03; /* Old browsers */
background: -moz-linear-gradient(top, #c0eb03 0%, #a8cd01 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#c0eb03), color-stop(100%,#a8cd01)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #c0eb03 0%,#a8cd01 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #c0eb03 0%,#a8cd01 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #c0eb03 0%,#a8cd01 100%); /* IE10+ */
background: linear-gradient(top, #c0eb03 0%,#a8cd01 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#c0eb03', endColorstr='#a8cd01',GradientType=0 ); /* IE6-9 */
-pie-background: linear-gradient(top, #c0eb03 0%,#a8cd01 100%);
behavior: url("PIE.php");
z-index: 10 !important;
}
.btn a, .btn:hover a {
display: block;
text-shadow: 0px 1px 1px rgba(199, 243, 6, 1);
text-transform: uppercase;
font-family: 'AvantGardeGothicITCW01D 731075';
padding: 0 20px;
text-align: center;
text-decoration: none;
color: #6a8100;
text-shadow: 0px 1px 1px rgba(199, 243, 6, 1);
}