鼠标事件,显示悬浮窗

案例2:鼠标悬浮弹出气泡

<style>
body {font-family:arial;font-size:12px;text-align:center;}
div#paragraph {width:300px;height:200opx;margin:0 auto;text-align:right}
a {text-decoration:none;cursor:pointer;cursor:hand}
a:hover {color:#000;text-decoration:none;}
.clear {clear:both}
/* Tooltip */
#tooltip {
    position:absolute;
    z-index:9999;
    color:#fff;
    font-size:10px;
    width:180px;
}
#tooltip .tipHeader {
    height:8px;
    background:url(images/tipHeader.gif) no-repeat;
}
#tooltip .tipBody {
    background-color:#000;
    padding:5px 5px 5px 15px;
}

#tooltip .tipFooter {
    height:8px;
    background:url(images/tipFooter.gif) no-repeat;
}
</style>

$('a.hha').mouseover(functi

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
要让el-select显示悬浮窗,可以使用el-cascader组件,它可以实现级联选择,也可以显示悬浮窗。具体实现方法如下: 1. 在el-select中使用el-cascader组件,设置options属性为一个数组,数组中每个元素为一个对象,该对象包含label和value属性,分别表示选项的文本和值。 2. 设置el-cascader的show-all-levels属性为true,这样就可以显示悬浮窗。 3. 设置el-cascader的expand-trigger属性为'hover',这样就可以在鼠标悬停时展开悬浮窗。 例如,以下代码实现了一个带有悬浮窗的el-select: ``` <template> <el-select v-model="value" placeholder="请选择"> <el-cascader :options="options" :show-all-levels="true" :expand-trigger="'hover'" ></el-cascader> </el-select> </template> <script> export default { data() { return { value: '', options: [ { value: 'zhinan', label: '指南', children: [ { value: 'shejiyuanze', label: '设计原则', children: [ { value: 'yizhi', label: '一致', }, { value: 'fankui', label: '反馈', }, { value: 'xiaolv', label: '效率', }, { value: 'kekong', label: '可控', }, ], }, { value: 'daohang', label: '导航', children: [ { value: 'cexiangdaohang', label: '侧向导航', }, { value: 'dingbudaohang', label: '顶部导航', }, ], }, ], }, { value: 'zujian', label: '组件', children: [ { value: 'basic', label: 'Basic', children: [ { value: 'layout', label: 'Layout 布局', }, { value: 'color', label: 'Color 色彩', }, { value: 'typography', label: 'Typography 字体', }, { value: 'icon', label: 'Icon 图标', }, { value: 'button', label: 'Button 按钮', }, ], }, { value: 'form', label: 'Form', children: [ { value: 'radio', label: 'Radio 单选框', }, { value: 'checkbox', label: 'Checkbox 多选框', }, { value: 'input', label: 'Input 输入框', }, { value: 'input-number', label: 'InputNumber 计数器', }, { value: 'select', label: 'Select 选择器', }, { value: 'cascader', label: 'Cascader 级联选择器', }, ], }, ], }, ], }; }, }; </script> ```

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值