browser
-
Jquery determines the browser type Using jquery to determine the browser requires syntax: $. browser. ['Browser keyword '] to determine the syntax of each browser example two thousand and thirteen six thousand nine hundred and two -
JQuery anchor link smooth scrolling effect In the previous article, the floating sidebar effect of e-commerce website mentioned the CSS3 special effect that makes the sidebar display when entering the special area, hide after leaving, and add. If the effect is further enhanced, we can make the click anchor link scroll smoothly to the anchor point, such as the anchor point code for the smooth scroll on the topic page of Eason: the advantage of this code is that click the anchor link to scroll smoothly to the anchor point, And the URL suffix of the browser does not contain anchor words, which can be realized without modifying the above code two thousand and thirteen fifteen thousand eight hundred and sixty-eight -
Iframe adaptive height method I haven't updated my blog for a long time. Due to the busy work, the team of the small editor came up with the problem of iframe adaptive height when making zblog topics. Now I share it with you. I hope it can help you. Many students who are exposed to the WEB front end have been troubled by the adaptive height of iframe. Today, Tuoyuan shares the method of adaptive height of iframe. The width of iframe is 300px by default, and the height is 150px by default. If you need to adapt the height, you need to use the following two thousand and thirteen fourteen thousand one hundred and twenty-five -
CSS Hack of IE10 Just now I saw the CSSHack method of IE10 on the Internet, and found that IE10 browser no longer supports conditional annotation. So I used IE10 browser to visit some projects I had done before, and found no exceptions. PS: The project seldom uses conditional annotation, which is nothing more than transparent style compatible with IE6. PNG images used by IE7+are transparent, so it doesn't matter if IE10 doesn't support conditional annotation two thousand and thirteen seven thousand five hundred and eighty-four -
Set as the code of home page and favorite site, compatible with IE, chrome, firefox I believe many friends are looking for the codes of "set as home page" and "collect this site". Now there are many codes on the Internet, but the compatibility is not very good. Let's share these two codes with good compatibility, which are also used in some topics of Tuoyuan. I hope it can save your time. Why write if you can use them directly two thousand and twelve eighteen thousand two hundred and ninety-five -
Solution to font size: 0 failure in IE6/7 Recently, the war between Jingdong and Suning Gome is very fierce. The boss of Jingdong, Liu Qiangdong, is full of arrogance. Let's study the website of Jingdong Mall. I am a person who likes to pursue details. I like to find faults. Maybe I choose front-end design. There are many occupational diseases. Open the JD website and use red as the main color. It must mean that business is booming. As Lao Liu's microblog (@ Liu Qiangdong) said: JD is really a child! We still have many shortcomings and shortcomings, and we often wrestle! But we will get up by ourselves and try our best to walk better and better two thousand and twelve ten thousand four hundred and twenty-four -
The method of CSS implementation background not scrolling with the browser In memory, we have seen many blogs, microblogs and QQ spaces, where many people have set a fixed background for their den and do not scroll with the browser. Besides javascript, CSS can also be easily implemented two thousand and twelve seven thousand five hundred and sixty-nine -
IE6 does not support first child solutions The Oolong Cat website was just launched yesterday. Later, under IE6, it was found that the margin top of the first module in the smart floating of the sidebar was not 0, which was originally defined in CSS two thousand and twelve eleven thousand nine hundred and forty-seven -
Intelligent floating layer positioning solution When the page scrolls and the smart floating layer begins to fade out of the browser window, it floats on the top edge of the browser window. This effect is common on major websites in China, such as Sina Weibo and Taobao. Implementation principle: The default state is the default state, and you don't need to do anything. It's OK to locate it as absolute or static two thousand and twelve seven thousand three hundred and forty-nine -
Jquery gets the browser height, width, and scroll bar height We often need to get the width and height of the browser, as well as the height of the scroll bar when we do the front end. Today, we will sort it out and use it directly in the future two thousand and twelve fifteen thousand five hundred and sixty-nine -
How does free make money? When it comes to free, we have to mention Zhou Hongyi, the "god man" of the Chinese Internet, and his company 360. Zhou Hongyi is one of the few publicly discussed and high-profile "free" entrepreneurs in China. In fact, "free" is not completely free. If we really want to do free, then he must be a charity organization rather than an entrepreneur. The core of "free" is to attract users through free services, and enterprises use this free service two thousand and twelve four thousand five hundred and forty-five -
CSS implementation of modifying the color and background color of the selected text on the web page First of all, thank you for visiting Tuoyuan. If you are using IE9, Firefox, Chrome, Safari, Opera and other browsers, you can try to select the text on any page of Tuoyuan. You will find that the color of the selected text and the background color are very different from those of other websites two thousand and twelve nine thousand four hundred and twenty-five -
Solution to position: fixed failure in IE6 IE6 browser does not support position: fixed. IE7/8/9, Firefox, Chrome and other browsers all support fixed positioning. How to solve this problem? Method 1: Write hack for ie6. Other browsers still use the position: fixed attribute two thousand and eleven eight thousand one hundred and ninety-eight -
The difference between cookies and sessions Sessions are saved on the server side and cookies are saved on the client side. Definition of the two: When you are browsing the website, the WEB server will first send a small amount of information to your computer, and cookies will help you record the text or some choices you have typed on the website. When you visit the same website next time, the WEB server will first check whether there is any cookie data left by it last time. If there is, it will judge the user according to the content in the cookie and send it to the specific network two thousand and eleven five thousand and seventy-five -
Browser Window Properties Window object is one of the highest level objects of client-side javascript. As long as a browser window is opened, no matter whether there is an open web page in the window, when a BODY, FRAMESET or FRAME element is encountered, an instance of the window object will be automatically created. In addition, the instance of this object can also be created by the window. open () method. Since the window object is the common ancestor of most other objects, you can omit the window two thousand and eleven four thousand four hundred and sixty-six -
Solution to invalid min height in IE6 When writing HTML, we often use the css style of min height, but sometimes we encounter that min height is not very compatible in IE6. In order to keep the minimum height when there is less content, we will use the min height attribute to control. How to solve the compatibility problem of min height in IE6? The following is the compatible code two thousand and eleven five thousand nine hundred and thirteen -
Strategic significance of browser After instant messaging software (IM) and Chinese input method, web browsers have once again become the target of Internet giants and entrepreneurs. Different from instant messaging software and input method, the threshold of web browsers is lower. The ubiquitous browser core allows them to develop a browser without much time, More importantly, the promotion of browsers does not need a considerable user base. After Internet users know that there are other browsers in the world besides IE, excellent browsers grow faster, have lower promotion costs, and are easier to get users and markets two thousand and eleven three thousand two hundred and eighteen -
Method of unifying font size among browsers I found that if you use absolute px to specify the font size, you can only scale the text in non ie browsers, but it may damage the layout, and the function of scaling the entire page is relatively simple. However, under IE6, there is no overall scaling function. If you still use px to define the size, the function of text resizing will become invalid. In other words, you can't change the font size with px and ie6 two thousand and eleven five thousand three hundred and ten