You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure whether or not you would consider this a bug, but I think changing it would be beneficial.
I prefer to avoid inline css. Instead I added a class to the prototype div which is used for the navigation buttons. However, when the button was active or pressed down, my css was being removed. I discovered that when the av or dn classes are added to the element, they are actually appended to the existing class name. For example, if I had a class of nav-prototype on the prototype div, when pressed, the class name became nav-prototypedn instead of the element now having two separate classes of nav-prototype and dn. With two separate classes, you could target each separately with css as opposed to the concatenation approach which essentially removes the previous class and adds some new class.
The text was updated successfully, but these errors were encountered:
As ie 7 or earlier doesn't recognize multi class names. The main purpose is to be compatible with old browsers. For the experience by specifying single class for button like element, we benefit on good performance with all browsers.
The methodology in jssor to implement a button like element is,
Given an element with class name 'yourclassname', it will add 'dn' suffix on mousedown, 'av' on active and 'ds' on disabled.
Open 'skin\arrow-01.source.html', you will see typical css for arrow navigator,
I'm not sure whether or not you would consider this a bug, but I think changing it would be beneficial.
I prefer to avoid inline css. Instead I added a class to the prototype
div
which is used for the navigation buttons. However, when the button was active or pressed down, my css was being removed. I discovered that when theav
ordn
classes are added to the element, they are actually appended to the existing class name. For example, if I had a class ofnav-prototype
on the prototype div, when pressed, the class name becamenav-prototypedn
instead of the element now having two separate classes ofnav-prototype
anddn
. With two separate classes, you could target each separately with css as opposed to the concatenation approach which essentially removes the previous class and adds some new class.The text was updated successfully, but these errors were encountered: