我们最近将我们的应用程序从 .net 2.0 升级到了 4.5。因此我们不得不使用 IE11。我面临的问题是应用程序母版页中的某些按钮和地址没有显示在页面显示中。只有当我打开不推荐的兼容性 View 时才会显示它。它使用 Css Class bluebutton,其他按钮也在使用它,并且它们正在页面上显示。 下面是CSS类, 隐藏复制代码
input.bluebutton
{
font-size:.875em;
font-family:Arial;
color:white;
width:auto;
height:22px;
background: #606060 url(../../images/BlankBlueButton61x22RepeatX.gif) 0px 0px repeat-x scroll;
border:1px none solid;
border-collapse: collapse;
padding: 0px 0.5em 0px 0.5em;
}
下面是其中一个页面的HTML标签,
<asp:Button ID="ButtonSearch" runat="server" CssClass="bluebutton" CausesValidation="false"
meta:resourcekey="ButtonSearch" OnClick="ButtonSearchClick" />
请让我知道我该如何着手让它工作? 提前致谢!
最佳答案
我遇到了同样的问题
第一个是字体大小,点值像 8.5p,它永远不起作用
第二个是 css 中的这样一个属性
过滤器:progid:DXImageTransform.Microsoft.Gradient (GradientType=0,StartColorStr= 'buttonface' ,EndColorStr= 'oldlace' );
我使用 Internet Explorer devlopper 工具找到了解决方案,您选择包含按钮的 div 并开始向下搜索,直到找到它,然后才开始激活和停用 css 属性,直到找到您要查找的内容
关于css - 按钮在 IE11 中不显示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32860234/