X
點擊此處開啟此網站的行動版。

技術支援討論區

Cursor changes via is not applied in firefox

已張貼

Hi, I have been working on this issue from a while now. When the cursor is changed from one style to other via firefox simply does not render it. It works fine in opera and chrome . Please help &.grab {

         cursor: move; /* fallback if grab cursor is unsupported */
         cursor: grab;
         // cursor: -moz-grab;
         // cursor: -webkit-grab;
      }
      
      /* (Optional) Apply a "closed-hand" cursor during drag operation. */
      &.grabbing:active {
         cursor: move; /* fallback if grab cursor is unsupported */
         cursor: grabbing;
         // cursor: -moz-grabbing;
         // cursor: -webkit-grabbing;
      }
Hi, I have been working on this issue from a while now. When the cursor is changed from one style to other via firefox simply does not render it. It works fine in opera and chrome . Please help &.grab { cursor: move; /* fallback if grab cursor is unsupported */ cursor: grab; // cursor: -moz-grab; // cursor: -webkit-grab; } /* (Optional) Apply a "closed-hand" cursor during drag operation. */ &.grabbing:active { cursor: move; /* fallback if grab cursor is unsupported */ cursor: grabbing; // cursor: -moz-grabbing; // cursor: -webkit-grabbing; }
引用

額外的系統細節

已安裝的外掛程式

  • Cisco WebEx Start.app Assistant Plug-in Version 100
  • Version 5.41.3.0
  • Picasa plugin.
  • Skype Meetings App
  • Skype for Business Meeting Join Plug-in
  • WebEx64 General Plugin Container Version 205

應用程式

  • User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:50.0) Gecko/20100101 Firefox/50.0

更多資訊

cor-el
  • Top 10 Contributor
  • Moderator
17278 個解決方法 156207 個答案

Did you check the Inspector?

See also:

Can you post a link to a publicly accessible page (i.e. no authentication or signing on required)?

Did you check the Inspector? *https://developer.mozilla.org/en-US/Tools/Page_Inspector See also: *https://developer.mozilla.org/en-US/docs/Web/CSS/cursor Can you post a link to a publicly accessible page (i.e. no authentication or signing on required)?
這篇文章有幫助嗎?
引用
jscher2000
  • Top 10 Contributor
8521 個解決方法 69622 個答案

Why is there an & character here:

chetankumard said

Hi, I have been working on this issue from a while now. When the cursor is changed from one style to other via firefox simply does not render it. It works fine in opera and chrome . Please help
&.grab {
          cursor: move; /* fallback if grab cursor is unsupported */
          cursor: grab;
          // cursor: -moz-grab;
          // cursor: -webkit-grab;
       }
       
       /* (Optional) Apply a "closed-hand" cursor during drag operation. */
       &.grabbing:active {
          cursor: move; /* fallback if grab cursor is unsupported */
          cursor: grabbing;
          // cursor: -moz-grabbing;
          // cursor: -webkit-grabbing;
       }
Why is there an & character here: ''chetankumard [[#question-1261677|said]]'' <blockquote> Hi, I have been working on this issue from a while now. When the cursor is changed from one style to other via firefox simply does not render it. It works fine in opera and chrome . Please help <pre>&.grab { cursor: move; /* fallback if grab cursor is unsupported */ cursor: grab; // cursor: -moz-grab; // cursor: -webkit-grab; } /* (Optional) Apply a "closed-hand" cursor during drag operation. */ &.grabbing:active { cursor: move; /* fallback if grab cursor is unsupported */ cursor: grabbing; // cursor: -moz-grabbing; // cursor: -webkit-grabbing; }</pre> </blockquote>
這篇文章有幫助嗎?
引用

提出問題者

Yes I did and it doesn't reveal much. Unfortunately Its a private app. Can I post you a gif image for reference?

Yes I did and it doesn't reveal much. Unfortunately Its a private app. Can I post you a gif image for reference?
這篇文章有幫助嗎?
引用

提出問題者

Just ignore the & symbol. I haven't posted you the entire css. .grab and . grabbing:active are the css classes involved in applying the grab and grabbing cursor. Thing is when I apply grab cursor or grabbing cursor Firefox has no issue rendering it. But when the class name changes dynamically the cursor does not change from grab to grabbing.

Just ignore the & symbol. I haven't posted you the entire css. .grab and . grabbing:active are the css classes involved in applying the grab and grabbing cursor. Thing is when I apply grab cursor or grabbing cursor Firefox has no issue rendering it. But when the class name changes dynamically the cursor does not change from grab to grabbing.
這篇文章有幫助嗎?
引用
jscher2000
  • Top 10 Contributor
8521 個解決方法 69622 個答案

It's obvious. That we can't help you without understanding how your page works. If you cannot provide a link to the real app, create a demo, for example, using JSFiddle, CodePen, etc.

It's obvious. That we can't help you without understanding how your page works. If you cannot provide a link to the real app, create a demo, for example, using JSFiddle, CodePen, etc.
這篇文章有幫助嗎?
引用

提出問題者

@jscher2000, I will post a link to jsfiddle or codepen shortly.

@jscher2000, I will post a link to jsfiddle or codepen shortly.
這篇文章有幫助嗎?
引用
問個問題

如果您還沒有帳號,您必須先 登入您的帳號 來回覆文章。請 開始一個新問題