Method and system for being compatible with firefox browser based on rich text input drop-down box
The invention relates to the technical field of browser compatibility, and provides a method and system for being compatible with a firefox browser based on a rich text input pull-down box, and the method comprises the steps: defining a multi-level structure of the pull-down box, initializing all le...
Saved in:
Main Authors | , , |
---|---|
Format | Patent |
Language | Chinese English |
Published |
11.11.2022
|
Subjects | |
Online Access | Get full text |
Cover
Loading…
Summary: | The invention relates to the technical field of browser compatibility, and provides a method and system for being compatible with a firefox browser based on a rich text input pull-down box, and the method comprises the steps: defining a multi-level structure of the pull-down box, initializing all levels of labels, and binding a trigger event and a monitoring event; setting a selection effect and a selection canceling effect of the last-level label, and setting an attribute of the first-level label at the same time; and after determining the width of the drop-down box, inserting the label into the rich textbox. The pull-down box can be compatible with various browsers, and labels can be conveniently inserted into the rich textbox, and elements can be conveniently traversed.
本发明涉及浏览器兼容技术领域,提供了一种基于富文本输入下拉框兼容火狐浏览器的方法及系统,包括:定义下拉框的多级结构,对各级标签进行初始化后,绑定触发事件和监听事件;设置最后一级标签的选中效果和取消选中效果,同时设置第一级标签的属性;确定下拉框的宽度后,将标签插入富文本框。能够使下拉框兼容多种浏览器,且方便向富文本框插入标签和遍历元素。 |
---|---|
Bibliography: | Application Number: CN202210830569 |