时间:2021-07-01 10:21:17 帮助过:92人阅读
html代码:
- <a onclick="goMessage();" style="width: 60px;height: 100%;color: white;background: transparent;" href="#" class="easyui-linkbutton" data-options="iconCls:'fa fa-bell-o fa-2x',size:'large',iconAlign:'top'">
- 消息<span id="msgNum" class="ii">4</span>
- </a>
css代码:
- /*角标 */
- .ii{
- display: none;
- background: #f00;
- border-radius: 50%;
- width: 20px;
- height: 20px;
- top: 5px;
- right: 0px;
- position: absolute;
- text-align: center;
- color: #FFF;
- z-index: 99999;
- }
js代码:
实现效果:
【相关推荐】
1. HTML免费视频教程
2. Html完成异步上传文件的Jquery代码实例
3. 对HTTP Headers知识点的图文说明
4. Html5 datalist标签详解以及与后台数据的动态匹配
5. 分享一个超全面的HTML、CSS知识点总结
以上就是html实现消息按钮上的数量角标的实例详解的详细内容,更多请关注Gxl网其它相关文章!