简体   繁体   English

如何制作圆形Jquery UI工具提示?

[英]How do I make rounded Jquery UI tooltips?

This is the css in my stylesheet. 这是我样式表中的css。 Weather I use ui-tooltip or make my own custom tooltip class and specifiy it in the tooltip initialization, it doesnt round the corners. 天气我使用ui-tooltip或制作我自己的自定义工具提示类并在工具提示初始化中指定它,它不会绕过角落。 I'm assuming there is some css priority conflict, but I am completely new to css and not sure of its underworkings yet. 我假设有一些css优先级冲突,但我对css完全不熟悉,并且还不确定它的欠工作。

I really just need round corners. 我真的只需要圆角。

.ui-tooltip {
  position: absolute;
    background: #f9a235;
    color: #fff;
    padding: 6px 0px; 
    border-width: 1px;
    border-radius: 25px;
  }

What's not working about your current implementation? 你当前的实施有什么用?

Working Demo in Fiddle 小提琴中的工作演示

This should be doing the trick: 这应该是诀窍:

.ui-tooltip {
    border-radius: 25px;
}

Screenshot: 截图:

截图

Make sure to check for browser compatibility as this won't work in IE8: 确保检查浏览器兼容性,因为这在IE8中不起作用:
http://caniuse.com/border-radius http://caniuse.com/border-radius

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM