开发者

jQueryUI widget text plus icon

I have:

<div class="ui-widget">
   <div class="ui-widget-header">
      My Menu<span class="ui-icon ui-icon-circle-triangle-n"></span>
   <开发者_运维问答/div>
   <ul class="ui-widget-content">
      <li>Menu Item 1</li>
      <li>Menu Item 2</li>
      <li>Menu Item 3</li>
   </ul>
</div>

Right now, the ui-icon is appearing below "My Menu"

Q: How can I get "My Menu" to appear on the same line as the UI widget?


add the style "display: inline-block;" to ui-icon, or wrap My Menu in a span and use floats

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜