Self-made simple adaptive width and height-gpfq self-adaptive is actually the width and height are changing,
However, if the sibling tag (whose parent level is fixed with px) is in px Unit, then setting p100 % is definitely out of the range (with the length of the sibling tag more than px ),Box-sizing Solution
Outer Layerbox-sizing: border-box;Setpadding: 100px 0 0;
Elements with a height of 100 pixels in the inner layer move up to 100 pixels, or
This article mainly introduces cookie encapsulation and Usage Guide made by javascript. For more information, see section 1. Preface
Previously, cookies were operated in the form of document. cookie, which is compatible but troublesome. An individual is a person who prefers to create wheels. Therefore, a tool class is encapsulated for cookies. For a long time, I like to write code, but I don't like text summarization, and I don't like to write someth
This article mainly introduces the support for IE, chrome, and firefoxetc for self-made File Upload JS controls. For more information, see
The Code is as follows:
(Function (){If (window. FileUpload ){Return;}Window. FileUpload = function (id, url ){This. id = id;This. autoUpload = true;This. url = url;This. maxSize = null;This. extensions = null;This. dropId = null;};Window. FileUpload. prototype. init = function (){Var obj = this;$ ('#' + This. i
methods used for Windows window layers. Of course, the Windows window, which is the container space of the animation engine layer, does not consider transparency and does much less.The demo address is below:Https://github.com/bbqz007/xw/tree/master/demoThe idea of a year ago is here: To conceive a OBJC UI engine based on animation layer UI programming under Windows imitationNow in the use of this engine to emulate the QQ butler to accelerate the function of the suspension of small windows, but
Principle Reference http://www.yyyweb.com/demo/colorful-clock/index.htmlA very nice little clock, though very shabby.The source code is written by itself.It is not difficult to realize, everyone learn to learn it.One of the CSS3 Flex box, the individual feel that with this elastic box, the level of layout is simple, but flex compatibility is relatively low, so some small demo can be used!EffectThe above is purely a personal point of view, wrong please show us.SOURCE attached: https://github.com/
I made a simple image similarity calculator using JAVA.Key Algorithms: Copy code 1 // full process 2 public static void main (String [] args) throws IOException {3 // get image 4 File imageFile = new File ("c: /1.jpg"); 5 Image image = ImageIO. read (imageFile); 6 // convert to grayscale 7 image = toGrayscale (image); 8 // scale down to a thumbnail of 32x32 9 image = scale (image ); 10 // obtain the gray pixel array 11 int [] pixels = getPixels (image
A six-year rookie, some features made before four years, a 64-year
Foreplay:I have been in the park for so long. I wrote my blog so seriously for the first time. I will introduce myself to myself. I am an old cainiao living in the C # camp, and I am confused in the C # camp, I have been working in other camps for six years. Now I am still in Suzhou, and there is no major technical breakthrough. I have limited time and energy, so I have been doing this
I wrote a js self-made scroll bar. First, let's take a look at the demo (Click here) first.
There are two demos. The black one on the right is a superficial code I wrote at the beginning:
Copy codeThe Code is as follows:Var scrollself = (function (){
Var scrollblock, // scroll BlockScrollcontent, // The scrolling contentScrollbar, // scroll barScrollpanel, // scroll area of the scrolling contentCdistance, // The distance from which the scrolling conte
Recently, I was relatively idle. I made a JavaScript NodeTree myself. There are actually a lot of similar things on the internet, and there are more functions than this. I am doing this purely for the trainer.The icons can be customized (16X16). The menu items are completely JSON-type and easy to modify.Interface:Usage:1. Copy the NodeTree-JSON.js and CSS folder to the project and reference it.2. Reference The JQuery framework.3. Modify the NodeTreeMe
This is a graph counter made of sessions. After a user logs on, the counter is added. Only when the browser is closed and re-opened will the counter be added.
// Counter written with SESSION,Session_start ();If (session_is_registered (count) = false ){While ($ fp = fopen ("counter.txt", "r +") = false );While (flock ($ fp, 3) = false );$ Count = fgets ($ fp, 255 );$ Count + = 1;Fseek ($ fp, 0 );Fputs ($ fp, $ count );Fclose ($ fp );Session_register
People make mistakes whether they are studying or working. Although Python syntax is simple and flexible, there are also some pitfalls. If you are not careful, beginners and senior Python programmers may fall behind. This article shares 10 common errors. For more information, see
Common error 1: The expression is incorrectly used as the default parameter of the function.
In Python, we can set a default value for a function parameter to make this parameter an optional parameter. Although this is
Note for demo statements made by mysql: mysql union and group encounter errors. Both parties must separate the not in and limit brackets (SELECT app_type_id, app_type_name FROM 'app _ dw '. 'app _ type' # table_nameorder by app_type_id limit 5) www.2cto.com union all (select sum (app_type_id) app_type_id, 'the _ six 'from 'app _ dw '. 'app _ type' where app_type_key not in (select * from (SELECT app_type_key FROM 'app _ dw '. 'app _ type' order by app
mistake.Unknown errorReturnCode = [1999]ErrorMessage = [Unexpected error occurred on the system-the type initializer for ' Com.hitrust.trustpay.client.MerchantConfig ' threw an exception.]This error after several days of communication with ABC. Finally solved. The workaround is to install WSE 3.0 on the serverAfter the installation is complete, the error does not exist. It looks like the first thing about the server.Second error encountered while integratingReturnCode = [1002]errormessage = [Un
{ Response.sendredirect (applicationprops.getproperty ("Oauth.ucenter.url"));} }The server depends on whether the request header X-requested-with has a value and whether it is XMLHttpRequest (which represents an AJAX request) to determine if it is an AJAX request, and if so, to return the JSON data, if not the normal jump; The front end is the global complete method added to the AJAX request, which is triggered when the AJAX request completes (regardless of the success of the request), where
stretched to the tab. When you change the background of a tab item (LI) to white, you can mask the top border of a portion of the main block. This effect is achieved. CSS Code
"TABS1" >
"Menu1box" >
"menu1" >
"hover" onmouseover="Settab (1,0)" >"#" > News
"Settab" >"#" > Comments
"Settab" >"#" > Technology
"Settab (1,3)" >"#" > Reviews
"Main1box" >
"main" id="main1" >
"block" >
The first to second type of JS code: JS Code
function Set
Always want to use JQUERY+HTML+CSS to complete a game, from the classic greedy snake start. Directly on the code:You can copy and run a bit.But I still have the following unfinished work:1, after eating the food, the snake did not add itself to a lattice, that is, add a long body;2, the snake in one lattice to the winding movement;3, the greedy snake bit his body, game over;Suffering from their own ability to limit, has not thought of a better solution, welcome Bo friends to provide ideas (langu
[Self-made simple operating system] 5. Miscellaneous (high resolution and keyboard input) and miscellaneous (High Resolution)
Preface:
>_These days, I have been studying a piece of fun. I am going to write "soft and hardware integration Article 3-The course class can still repair computers". However, I have encountered a technical difficulty-WHDI, so the operating system is slowing down! But with the idea of operating system multi-task, I feel like
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.