CodeMirror-Tern智能标签样式 [英] CodeMirror - styling Tern intellisense labels

查看:128
本文介绍了CodeMirror-Tern智能标签样式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用适用于CodeMirror的Tern插件,该插件向编辑器添加了智能感知功能(即,弹出内联提示标签)。

I'm using the Tern plugin for CodeMirror, which adds intellisense features to the editor (i.e. pops up inline hint-labels).

我想更改提示标签样式,怎么做?

I want to change the hint-labels style, how to do so?

推荐答案

Tern将CSS类名附加到提示框,您可以利用它们来设置样式它,例如:

Tern attaches CSS classnames to the hint box, you can utilize them to style it, e.g.:

.CodeMirror-Tern-tooltip:before {
    content: url('http://n5.nabble.com/images/smiley/smiley_thinking.gif');
    width: 20px;
    height: 20px;
}

…会导致以下结果:

… which will result in this:

这篇关于CodeMirror-Tern智能标签样式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆