English 中文(简体)
本地端主机Firefox 的布设按钮吗?
原标题:Bootstrap buttons in Firefox on localhost?

http://localhost/mysite-我花了一小段时间调查Firefox(V12.

然而,我注意到,在测试时,如果我将URL换成FQDN(例如, http://myrach.mydomain.com/mysite ),那么它正常和预期的运转。

这算是好消息, 因为它意味着没有一个"错误" 如此我必须解决, 但我好奇为什么它发生 首先。

奇怪的行为如下:

此按钮标记如下( 在此情况下, 是一个 < code@ lt; a> 看起来像一个按钮) :

<p><a class="btn btn-success" href="checkout.aspx"><i class="icon-shopping-cart icon-white"></i> Checkout</a></p>

使用真正的按钮时,我也有同样的行为,标记如下:

<p><input type="submit" name="ctl00$cphMainContent$btnProceedToCustomerDetails" value="Next: Your details" onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;ctl00$cphMainContent$btnProceedToCustomerDetails&quot;, &quot;&quot;, true, &quot;&quot;, &quot;&quot;, false, false))" id="cphMainContent_btnProceedToCustomerDetails" class="btn btn-primary" /></p>

在这两种情况下,按钮都使灰色、无法读取的状态变成灰色,然后在徘徊时以绿色填充,直到大约75%的按钮被填充,然后停止填充。

这里有些图像

上载( 鼠标前)

"https://i.sstatic.net/hVo59.png" alt="按键作为页面负荷"/ >

当你把鼠标放在上面时, 它会在0.5秒内从底部向上填满颜色, 以这个样子结束 :

""https://i.sstatic.net/eBzAI.png" alt="此处输入图像描述"/ >

上载( 鼠标前)

""https://i.sstatic.net/ailm9.png" alt="此处的内置图像描述"/"

在鼠标翻转后,它再次从下往上充满颜色, 大约0.5秒, 看起来像这个:

""https://i.sstatic.net/OiKn1.png" alt="此处输入图像描述"/ >

就像我说的,这只有在使用 Firefox 时才发生,并且只有在查看当地主机时才会发生。其他浏览器也很好。我使用的是新下载的靴套(js)(今天下载),没有修改,我只包括一个其他的 css 文件,即使我不包括,它也是同样的行为。

最佳回答

今天早些时候我遇到了这个问题。 这个链接 : < a href="https://stackoverflow.com/ questions/10401270/twitter-boots traps-button-changes-rendering-oddly-in-firefox-and-chrome > > Twitter 靴杆按钮的改变使火狐和染色体中的纽扣的改变很奇怪。

在我的CS中,我应用了以下方法:

.btn-primary, .btn-danger, .btn-success {    background-image: none;    filter: none;}

成功了 我的页码现在在火狐中正确化了 铬对我很好

问题回答

经过许多努力, 我终于能将这个问题归结到Twitter Bootsstrap的CSS-Hack中。

btn-profile 和其他类似类别 中删除 (星号) 和其他类似类别解决了这个问题。

但问题本身不在中央支助系统,它与执行有关。

例如,我用AjaxMin来简化和合并CSS,而且由于不是一个有效的 CSS,Ajaxmin忽略了它使最终的 CSS 没有这些属性。Buggy按钮效应就是这样的副作用之一。





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!