No need to set z-index for button here. What makes you want to set z-index? In addition, just learnt today that z-index only works for positioned elements. Please refer to http://coding.smashingmagazine.com/2009/09/15/the-z-index-css-property-a-comprehensive-look/.<button id="locate" data-dojo-type="dijit/form/Button">Locate</button>I can display the button without any problem. See http://jsfiddle.net/4Dm7y/.
Can you post the portion of your html? Normally, buttons should resize themselves automatically unless you specifically set their width and height.
z-index is very tricky. Button's z-index only works within the scope of its container, which is div.floating-layerMenu in your case. Is div.floating-layerMenu visible?
data-dojo-props is used to set the properties for dijit/form/Button, not for style settings. Use style to set css rules.Try:<button id="locate" data-dojo-type="dijit/form/Button" style="z-index: 900">Locate</button>
<button id="locate" data-dojo-type="dijit/form/Button" style="z-index: 900">Locate</button>
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.