Tag:Number of columns

  • Merging cells based on element UI (dynamic data merging)

    Time:2021-5-3

    1、 Frame name & version number Framework: element UI Version number: 2.3.9 or higher Portal: Element UI tab:https://element.faas.ele.me/#…Demo address:https://github.com/haryzxw/zx… 2、 Function description Realize the merging cell function of table, and merge the table horizontally and vertically 3、 Core code and comments Basic data example: Spanarr: [// merge coordinates, row is the row index, col is […]

  • Bash skill: shell script that can move Tetris up, down, left and right

    Time:2021-4-28

    In Linux bash, the previous article introduced the shell script for displaying colored Tetris. Next, we will continue to introduce how to use the K, J, h, l keys to move a single box up, down, left and right. Script execution effect First, paste the specific execution screenshot of the shell script as follows: In […]

  • C # to convert TXT document to table

    Time:2021-4-17

    C # implementation of TXT document conversion code: public DataTable TXTToDataTable(string fileName, string columnName) { DataTable dt = new DataTable(); FileStream fs = new FileStream(fileName, System.IO.FileMode.Open, System.IO.FileAccess.Read); StreamReader sr = new StreamReader(fs, System.Text.Encoding.Default); //Record one line of records read at a time string strLine = “”; //Record the contents of each field in each line […]

  • Front end tips: pure CSS to achieve waterfall flow (Mason)

    Time:2021-3-20

    Waterfall flow provides a kind of beautiful layout, which is widely used by various material websites (such as:petal、unsplash)It is widely used. The community also provides many waterfall layout tools, such as:masonry 、colcadeAnd so on. The traditional way to realize waterfall flow is to use js to dynamically calculate the size and position of “bricks”, which […]

  • Write star right triangle with native JS

    Time:2021-3-14

    right triangle:String traversal is done in ascending or reverse order Step idea:1. Number of outer loop rows traversed2. Traversing the number of outer loop columns3. Store characters4. Character wrap Requirement 1: downlink has one more character than uplink var str = ” For (VaR rows = 1; rows < = 5; rows + +) {// […]

  • Bash technique: shell script that can move and rotate Tetris left and right

    Time:2021-2-14

    In Linux bash, the previous article introduced a shell script that uses the K, J, h, l keys to move a single block up and down, left and right. Let’s continue with how to rotate a single square. Implementation effect The specific implementation effect is as follows: Screenshot before rotation Screenshot after moving and rotating […]

  • Bash trick: shell scripts that can move and rotate Tetris from side to side

    Time:2020-12-14

    In Linux bash, previous articles have introduced shell scripts that use the K, J, h, l keys to move a single square up and down, left and right. Here’s how to rotate a single square. Implementation effect The specific implementation effect is as follows: Screenshot before rotation Screenshot after moving and rotating In actual execution, […]

  • Canvas frame animation games (eat apple)

    Time:2020-11-24

    First look at the page effect. The following four buttons indicate start, end, pause and continueHere’s a frame of animation: The key of frame animation is canvas API ctx.drawImage () (9 parameters) and setinterval timer.Set the view window of the picture, and display the next picture by displacement every time the task is executed. Code […]

  • Bash tips: shell scripts that can move and rotate Tetris down and down

    Time:2020-9-24

    In Linux bash, previous articles have introduced shell scripts that use the K, J, h, l keys to move a single square up and down, left and right. Here’s how to rotate a single square. Execution effect The specific implementation effect is as follows: Screenshot before rotation Screenshot after moving and rotating When actually executed, […]

  • Bash tip: shell script that can move Tetris up and down, left and right

    Time:2020-9-9

    In Linux bash, the previous article introduced the shell script for displaying colored Tetris. Next, we will continue to introduce the shell script of how to move a single square up, down, left and right by using the K, J, h, l keys. Script execution effect The specific execution screenshot of the shell script is […]

  • Flutter GridView

    Time:2020-8-13

    I have collected some learning materials, including a lot of learning, interview, advanced fluter information, and a lot of video details. If you want to know more, please see the end of the article for details. Also welcome all the great gods to come to install X. 1. Introduction GridView is one of the commonly […]

  • css3 column

    Time:2020-6-15

    For multi column layout (as shown in the figure), column can be usedhtmlfile <div class=”list-wrapper”> <div class=”list-item” v-for=”item in List”></div> </div> cssfile .list-wrapper{ padding: .4rem; columns:2; //Number of columns column- gap:.4rem; //Interval between columns } To avoid element truncation, see the figure belowEach element needs to be setheight:100%,overflow:auto .list-wrapper{ padding: .4rem;; columns:2; column-gap:.4rem; } .list-item{ […]