User activity analysis method and system based on CSS3
The user activity analysis chart is disassembled through CSS3, and the rounded edge effect is achieved by combining rectangular and circular components, which solves the problem of unsatisfactory rounded corners in CSS3 and improves user experience and loading efficiency.
Patent Information
- Application Number
- CN202110264887.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-11
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2041-03-11
AI Technical Summary
When using CSS3 in the existing technology, the arc of the rectangular rounded effect set by border-radius is not ideal, resulting in a poor user experience, and using images to achieve the rounded effect will increase the file size and loading time.
Obtain the user activity analysis chart through CSS3, disassemble it into a rectangular parent component, a circular sub-component and a rectangular sub-component, set the position and overflow attributes to achieve a rounded edge effect, avoid the use of pictures, reduce the volume and improve Loading speed.
It achieves smooth interaction effects, provides important user activity information, improves user experience, reduces resource loading time, and avoids style imperfections.
Smart Images

Figure CN113010826B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data analysis technology, and more specifically, to a method and system for analyzing user activity based on CSS3. Background Art
[0002] CSS (Cascading Style Sheets) is a computer language used to express the style of files such as HTML (an application of Standard Generalized Markup Language) or XML (a subset of Standard Generalized Markup Language). CSS can not only modify web pages statically, but also dynamically format the elements of web pages in conjunction with various scripting languages. CSS3 is an upgraded version of CSS technology. It began to be developed in 1999. On May 23, 2001, W3C completed the working draft of CSS3, which mainly includes modules such as box model, list module, hyperlink mode, language module, background and border, text effects, and multi-column layout. There are many new features of CSS3, such as rounded corners, graphical borders, block shadows and text shadows, using RGBA to achieve transparency, gradient effects, using @Font-Face to achieve custom fonts, multiple background images, text or image deformation processing (rotation, scaling, tilting, moving), multi-column layout, media queries, etc.
[0003] Nowadays, the Internet is widely used, and users generate and accumulate a large amount of historical data while using various services. Massive user data contains rich customer information and is a valuable resource in business operations. User data contains user behavior characteristics, and user behavior is usually related to a variety of social factors and technical parameters, which will affect the role and characteristic patterns of users in different scenarios. A very important criterion for measuring user behavior is the user activity level (user activity level). The activity analysis chart can use diagrams to show active people in different states. CSS can be used to obtain user activity analysis charts. Before CSS3, the rounded corner effect can be achieved through pictures, but it will cause the file size to increase and the loading speed to slow down. Use CSS3's border-radius (create rounded borders, CSS3 border properties) to achieve the rounded corners of the rectangle, and the curvature is not ideal, such as Figure 1 As shown, this results in a poor user experience. Summary of the invention
[0004] In view of the above problems, the present invention provides a user activity analysis method based on CSS3, which includes:
[0005] Steps to obtain the activity analysis graph: obtain the activity analysis graph based on CSS3;
[0006] Activity analysis graph disassembly step: disassembly of the activity analysis graph;
[0007] User activity analysis steps: Perform user activity analysis based on the disassembly results to obtain active user information in different status areas.
[0008] In the above-mentioned user activity analysis method based on CSS3, in the activity analysis graph disassembly step, each state area in the activity analysis graph is disassembled into three parts: a rectangular parent component, a circular child component, and a rectangular child component.
[0009] In the above-mentioned CSS3-based user activity analysis method, the width of the rectangular child component is 75% of the width of the rectangular parent component.
[0010] In the above-mentioned user activity analysis method based on CSS3, the rectangular parent component sets position to relative layout and overflow to hidden, and the circular subcomponent and the rectangular subcomponent set position to absolute layout.
[0011] In the above-mentioned user activity analysis method based on CSS3, the right margin of the circular subcomponent is 0, it is located on the right side of the rectangular parent component, centered vertically, and the left margin of the rectangular subcomponent is 0, it is located on the left side of the rectangular parent component, centered vertically.
[0012] In the above-mentioned user activity analysis method based on CSS3, the user activity analysis step specifically includes the following steps:
[0013] A state area selection step: selecting the state area in the activity analysis graph that needs to be analyzed for activity;
[0014] Parent component width setting step: setting the width of the rectangular parent component of the selected state area to 100%, and setting the width of the rectangular parent component of the remaining state area to 0;
[0015] User activity acquisition step: acquiring the active population and the active user information in the selected status area.
[0016] Based on the same inventive concept, the present invention also discloses a user activity analysis system based on CSS3 based on the user activity analysis method based on CSS3 disclosed in any one of the inventions.
[0017] The CSS3-based user activity analysis system includes:
[0018] Activity analysis chart acquisition module, which obtains activity analysis chart based on CSS3;
[0019] An activity analysis graph disassembly module, which disassembles the activity analysis graph;
[0020] The user activity analysis module performs user activity analysis based on the disassembly results and obtains active user information in different status areas.
[0021] In the above-mentioned CSS3-based user activity analysis system, the activity analysis graph disassembly module disassembles each state area in the activity analysis graph into three parts: a rectangular parent component, a circular child component, and a rectangular child component.
[0022] In the above-mentioned CSS3-based user activity analysis system, the width of the rectangular child component is 75% of the width of the rectangular parent component.
[0023] In the above-mentioned CSS3-based user activity analysis system, the rectangular parent component sets position to relative layout and overflow to hidden, and the circular subcomponent and the rectangular subcomponent set position to absolute layout.
[0024] Compared with the prior art, the present invention has the following beneficial effects:
[0025] 1. A user activity analysis method based on CSS3 is proposed. The user activity analysis graph is obtained through CSS3, and the active user information is obtained by disassembling the activity analysis graph, providing important data information for enterprise operations;
[0026] 2. Use icons to show active people in different status areas, and click on different areas to display more user information, with smooth interaction effect;
[0027] 3. Do not use pictures to achieve round edge effects, reduce volume, speed up resource loading, and improve work efficiency;
[0028] 4. It avoids the disadvantage of using border-radius directly to set the radius of the rectangular corners, improves the user experience, and avoids imperfections in style.
[0029] Details of one or more embodiments of the present application are set forth in the following drawings and description to make other features, objects, and advantages of the present application more readily apparent. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0031] Figure 1 This is the effect diagram of using border-radius to set the rounded corners of a rectangle in the prior art;
[0032] Figure 2 This is an overall flow chart of a user activity analysis method based on CSS3 provided by an embodiment of the present invention;
[0033] Figure 3 is an activity analysis diagram disclosed in this embodiment;
[0034] Figure 4 is a disassembly diagram of the activity analysis diagram disclosed in this embodiment;
[0035] Figure 5 It is a content leakage diagram of the rectangular parent component M disclosed in this embodiment;
[0036] Figure 6 yes Figure 2 The disclosed overall flow chart of step S3;
[0037] Figure 7 It is a state area activity effect diagram disclosed in this embodiment;
[0038] Figure 8 This is a structural framework diagram of a user activity analysis system based on CSS3 provided in this embodiment;
[0039] Fig. 9 is a framework diagram of a computer device according to an embodiment of the present invention.
[0040] In the above picture:
[0041] 10. Activity analysis graph acquisition module; 20. Activity analysis graph disassembly module; 30. User activity analysis module; 31. Status area selection unit; 32. Parent component width setting unit; 33. User activity acquisition unit; 80. Bus; 81. Processor; 82. Memory; 83. Communication interface. DETAILED DESCRIPTION
[0042] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is described and illustrated below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments provided in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.
[0043] Obviously, the drawings described below are only some examples or embodiments of the present application. For ordinary technicians in this field, the present application can also be applied to other similar scenarios based on these drawings without creative work. In addition, it can also be understood that although the efforts made in this development process may be complicated and lengthy, for ordinary technicians in this field related to the content disclosed in this application, some changes in design, manufacturing or production based on the technical content disclosed in this application are just conventional technical means, and should not be understood as insufficient content disclosed in this application.
[0044] Reference to "embodiments" in this application means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those of ordinary skill in the art that the embodiments described in this application may be combined with other embodiments without conflict.
[0045] Unless otherwise defined, the technical terms or scientific terms involved in this application should be understood by people with ordinary skills in the technical field to which this application belongs. The words "one", "a", "a", "the" and the like involved in this application do not indicate a quantitative limitation, and may represent the singular or plural. The terms "include", "comprise", "have" and any of their variations involved in this application are intended to cover non-exclusive inclusions; for example, a process, method, system, product or device that includes a series of steps or modules (units) is not limited to the listed steps or units, but may also include steps or units that are not listed, or may also include other steps or units inherent to these processes, methods, products or devices. The words "connect", "connected", "coupled" and the like involved in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The "multiple" involved in this application refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there may be three relationships, for example, "A and / or B" can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects before and after are in an "or" relationship. The terms "first", "second", "third", etc. involved in this application are only used to distinguish similar objects, and do not represent a specific ordering of the objects.
[0046] The present invention is described in detail below in conjunction with the various embodiments shown in the accompanying drawings, but it should be noted that these embodiments are not limitations of the present invention, and any equivalent transformations or substitutions in functions, methods, or structures made by ordinary technicians in the field based on these embodiments are all within the scope of protection of the present invention.
[0047] Before describing in detail various embodiments of the present invention, the core inventive concept of the present invention is summarized and described in detail through the following several embodiments.
[0048] The present invention can obtain a user activity analysis graph based on CSS3, and obtain active user information in different status areas based on the user activity analysis graph.
[0049] Embodiment 1:
[0050] Reference Figures 2 to 7 As shown, this example discloses a specific implementation of a user activity analysis method based on CSS3 (hereinafter referred to as "method").
[0051] Specifically, refer to Figure 2 As shown, the method disclosed in this embodiment includes the following steps:
[0052] Step S1, obtaining an activity analysis graph based on CSS3.
[0053] Specifically, in some of the embodiments, a user activity analysis graph is first obtained, such as Figure 3 The figure shows an activity analysis diagram, which uses gradient colors to represent different status areas.
[0054] Then, step S2 is executed to disassemble the activity analysis graph.
[0055] Specifically, in some of the embodiments, each state area of the activity analysis graph is disassembled. Figure 4 Each of the status areas shown is decomposed into three parts: a rectangular parent component, a circular subcomponent, and a rectangular subcomponent. Figure 1 is the rectangular parent component M of the activity analysis diagram, and Figure 2 is a complete circular subcomponent C, which is implemented through border-radius in CSS3. Figure 3 is a rectangular subcomponent R. The right margin of the circular subcomponent C is 0, and it is located on the right side of the rectangular parent component M, centered vertically. The left margin of the rectangular subcomponent R is 0, and it is located on the left side of the rectangular parent component M, centered vertically. The circular subcomponent C makes the right side of the activity analysis diagram rounded after it is decomposed. The rectangular subcomponent R prevents a part of the rectangular parent component M from leaking out on the left side when the width of the rectangular parent component M is greater than the diameter of the circular component, as shown in the figure below. Figure 5 The left part of the circular sub-component C is the leaked part of the rectangular parent component M.
[0056] Specifically, in some of the embodiments, the width of the rectangular subcomponent R is 75% of the width of the rectangular parent component M, and its height is consistent with the diameter of the circular subcomponent C. The present invention does not limit the height of the rectangular subcomponent.
[0057] Specifically, the rectangular parent component M sets the position (specifies the positioning type of the element) to relative layout (relative), and the overflow (specifies what happens when the content overflows the element box) to content clipping (hidden). In this way, when the elements inside the status area exceed M, the part will be hidden. The circular subcomponent C and the rectangular subcomponent R set the position to absolute layout (absolute), and use gradient colors. When the heights of the circular subcomponent C and the rectangular subcomponent R are consistent, the problem of inaccurate color transition can be avoided.
[0058] Then, step S3 is executed to analyze user activity based on the disassembly result to obtain information about active users in different states.
[0059] Specifically, in some of the embodiments, reference is made to Figure 6 As shown, step S3 specifically includes the following steps:
[0060] S31, selecting the state area in the activity analysis graph that needs to be analyzed for activity;
[0061] S32, setting the width of the rectangular parent component of the selected state area to 100%, and setting the width of the rectangular parent component of the remaining state areas to 0;
[0062] S33: Acquire the active population and the active user information in the selected status area.
[0063] Specifically, in some of the embodiments, the active user information under the status area is obtained by setting the width of the rectangular parent component, for example Figure 3 The activity analysis diagram shown in the figure has four status areas, that is, it consists of four rectangular parent components M, with widths of 25%, 50%, 75%, and 100% respectively. Select the status area that needs to be analyzed for activity, change the width of the rectangular parent component of the clicked status area to 100%, and set the width of the rectangular parent components of the remaining three status areas to 0, and you can achieve the activity analysis diagram effect, as shown in the figure below. Figure 7 The following is an activity effect diagram of one of the status areas. Clicking it will display more active user information.
[0064] A user activity analysis method based on CSS3 disclosed in an embodiment of the present application obtains a user activity analysis graph through CSS3, and obtains active user information by disassembling the activity analysis graph, thereby providing important data information for enterprise operations; active people in different status areas are represented by diagrams, and more user information can be displayed by clicking on different areas, and the interactive effect is smooth; rounded edge effects are achieved without using pictures, which reduces the volume, speeds up resource loading, and improves work efficiency; the disadvantage of directly using border-radius to set the unsatisfactory curvature of the rectangular rounded corners is avoided, thereby improving user experience and avoiding imperfections in style.
[0065] Details of one or more embodiments of the present application are set forth in the following drawings and description to make other features, objects, and advantages of the present application more readily apparent.
[0066] Embodiment 2:
[0067] In combination with the user activity analysis method based on CSS3 disclosed in Example 1, this embodiment discloses a specific implementation example of a user activity analysis system based on CSS3 (hereinafter referred to as the “system”).
[0068] Reference Figure 8 As shown, the system comprises:
[0069] An activity analysis graph acquisition module 10 acquires an activity analysis graph based on CSS3;
[0070] An activity analysis graph disassembling module 20, which disassembles the activity analysis graph;
[0071] The user activity analysis module 30 performs user activity analysis based on the disassembly results and obtains active user information in different status areas.
[0072] Specifically, in some embodiments, the user activity analysis module 30 specifically includes:
[0073] A state area selection unit 31 selects the state area in the activity analysis graph that needs to be analyzed for activity;
[0074] The parent component width setting unit 32 sets the width of the rectangular parent component of the selected state area to 100%, and sets the width of the rectangular parent component of the remaining state area to 0;
[0075] The user activity acquisition unit 33 acquires the active group of people and the active user information in the selected state area.
[0076] For the technical solutions of the user activity analysis system based on CSS3 disclosed in this embodiment and the user activity analysis method based on CSS3 disclosed in the first embodiment, please refer to the description of the first embodiment, which will not be repeated here.
[0077] Embodiment three:
[0078] Combination Fig. 9 As shown, this embodiment discloses a specific implementation of a computer device. The computer device may include a processor 81 and a memory 82 storing computer program instructions.
[0079] Specifically, the processor 81 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0080] Among them, the memory 82 may include a large-capacity memory for data or instructions. By way of example and not limitation, the memory 82 may include a hard disk drive (HDD), a floppy disk drive, a solid-state drive (SSD), a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive, or a combination of two or more of these. Where appropriate, the memory 82 may include a removable or non-removable (or fixed) medium. Where appropriate, the memory 82 may be inside or outside the data processing device. In a specific embodiment, the memory 82 is a non-volatile memory. In a specific embodiment, the memory 82 includes a read-only memory (ROM) and a random access memory (RAM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (Programmable Read-Only Memory, PROM for short), an erasable PROM (Erasable ProgrammableRead-Only Memory, EPROM for short), an electrically erasable PROM (Electrically Erasable ProgrammableRead-Only Memory, EEPROM for short), an electrically alterable ROM (Electrically Alterable Read-Only Memory, EAROM for short) or a flash memory (FLASH) or a combination of two or more of these. Under appropriate circumstances, the RAM can be a static random access memory (SRAM) or a dynamic random access memory (DRAM), wherein the DRAM can be a fast page mode dynamic random access memory (FPMDRAM), an extended data output dynamic random access memory (EDODRAM), a synchronous dynamic random access memory (SDRAM), etc.
[0081] The memory 82 may be used to store or cache various data files required for processing and / or communication, as well as possible computer program instructions executed by the processor 81 .
[0082] The processor 81 implements any one of the CSS3-based user activity analysis in the above embodiments by reading and executing the computer program instructions stored in the memory 82 .
[0083] In some of these embodiments, the computer device may further include a communication interface 83 and a bus 80. Fig. 9 As shown, the processor 81, the memory 82, and the communication interface 83 are connected via a bus 80 and communicate with each other.
[0084] The communication interface 83 is used to implement communication between the modules, devices, units and / or equipment in the embodiment of the present application. The communication port 83 can also implement data communication with other components such as: external devices, image / data acquisition equipment, databases, external storage, and image / data processing workstations.
[0085] The bus 80 includes hardware, software or both, and couples the components of the computer device to each other. The bus 80 includes but is not limited to at least one of the following: a data bus, an address bus, a control bus, an expansion bus, and a local bus. By way of example and not limitation, bus 80 may include an Accelerated Graphics Port (AGP) or other graphics bus, an Extended Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hyper Transport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an InfiniBand interconnect, a Low Pin Count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local Bus (VLB) bus, or other suitable buses or a combination of two or more of these. Where appropriate, bus 80 may include one or more buses. Although embodiments of the present application describe and illustrate a particular bus, the present application contemplates any suitable bus or interconnect.
[0086] The computer device can obtain active user information based on the activity analysis graph, thereby realizing the combination Figure 2 Describe the method.
[0087] In addition, in combination with the user activity analysis method based on CSS3 in the above embodiment, the embodiment of the present application can provide a computer-readable storage medium for implementation. The computer-readable storage medium stores computer program instructions; when the computer program instructions are executed by the processor, any one of the user activity analysis methods based on CSS3 in the above embodiment is implemented.
[0088] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0089] In summary, the beneficial effects of the present invention are that a user activity analysis method based on CSS3 is proposed, a user activity analysis graph is obtained through CSS3, and active user information is obtained by disassembling the activity analysis graph, so as to provide important data information for enterprise operation; active people in different status areas are represented by diagrams, and more user information can be displayed by clicking on different areas, and the interactive effect is smooth; rounded edge effects are achieved without using pictures, which reduces the volume, speeds up resource loading, and improves work efficiency; the disadvantage of directly using border-radius to set the arc of the rectangular rounded corners is avoided, thereby improving user experience and avoiding imperfections in style.
[0090] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A user activity analysis method based on CSS3, characterized in that , including the following steps: Steps to obtain the activity analysis graph: obtain the activity analysis graph based on CSS3; Activity analysis graph disassembly step: disassembly of the activity analysis graph; User activity analysis step: Perform user activity analysis based on the disassembly results to obtain active user information in different status areas; The activity analysis graph acquisition step includes: using gradient colors to represent different status areas; The activity analysis graph disassembly step includes: disassembling each state area of the activity analysis graph, and disassembling each state area of the activity analysis graph into three parts: a rectangular parent component, a circular subcomponent, and a rectangular subcomponent, wherein the width of the rectangular subcomponent is 75% of the width of the rectangular parent component, the height of the rectangular subcomponent is the same as the diameter of the circular subcomponent, the rectangular parent component sets the position to relative layout, and sets the overflow to hidden, the circular subcomponent and the rectangular subcomponent set the position to absolute layout, and the color is a gradient color, the right margin of the circular subcomponent is 0, and it is located on the right side of the rectangular parent component and centered vertically, and the left margin of the rectangular subcomponent is 0, and it is located on the left side of the rectangular parent component and centered vertically; The user activity analysis step specifically includes the following steps: A state area selection step: selecting the state area in the activity analysis graph that needs to be analyzed for activity; Parent component width setting step: setting the width of the rectangular parent component of the selected state area to 100%, and setting the width of the rectangular parent component of the remaining state area to 0; User activity acquisition step: acquiring the active population and the active user information in the selected status area.
2. A user activity analysis system based on CSS3, characterized by ,include: Activity analysis chart acquisition module, which obtains activity analysis chart based on CSS3; An activity analysis graph disassembly module, which disassembles the activity analysis graph; User activity analysis module, which performs user activity analysis based on the disassembly results and obtains information about active users in different status areas; The activity analysis graph acquisition module includes: using gradient colors to represent different status areas; Among them, the activity analysis graph disassembly module includes: disassembling each state area of the activity analysis graph, and the activity analysis graph disassembly module disassembles each state area in the activity analysis graph into three parts: a rectangular parent component, a circular subcomponent, and a rectangular subcomponent, the width of the rectangular subcomponent is 75% of the width of the rectangular parent component, the height of the rectangular subcomponent is the same as the diameter of the circular subcomponent, the rectangular parent component sets the position to relative layout, sets the overflow to hidden, the circular subcomponent and the rectangular subcomponent set the position to absolute layout, the color is a gradient color, the right margin of the circular subcomponent is 0, it is located on the right side of the rectangular parent component, and is centered vertically, the left margin of the rectangular subcomponent is 0, it is located on the left side of the rectangular parent component, and is centered vertically; Among them, the user activity analysis module includes: A state area selection unit: selects the state area in the activity analysis graph that needs to be analyzed for activity; Parent component width setting unit: sets the width of the rectangular parent component of the selected state area to 100%, and sets the width of the rectangular parent component of the remaining state area to 0; A user activity acquisition unit is configured to acquire the active population and the active user information in the selected status area.
Citation Information
Patent Citations
Providing Direct Manipulation Of An Analytics Data Visualization Within An Analytics Report
CN103207853A
Visualized display method for energy efficiency index decomposition
CN107194549A
Analysis report generation method and device based on full index analysis scene pool
CN111523202A
Method, device and terminal for implementing regional screen capture
US20170371844A1
