browser
-
Jquery determines the browser type Using jquery to determine the browser needs to use the syntax: $ Browser. ['Browser keyword '] Judge the syntax example of each browser two thousand and thirteen ten thousand seven hundred and fifty -
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 of the Eason special page: the advantage of this code is to 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 twenty thousand and fifteen -
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 eighteen thousand three hundred and thirty-nine -
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 twelve thousand two hundred and forty-nine -
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 twenty-two thousand nine hundred and seven -
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, which means that business must be 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 fourteen thousand four hundred and forty -
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 twelve thousand two hundred and seventy-two -
Solution for IE6 does not support first child 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 fifteen thousand eight hundred and thirty-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 twelve thousand five hundred and sixty-one -
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 eighteen thousand nine hundred and sixty-five -
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 eleven thousand one hundred and three -
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 thirteen thousand eight hundred and nineteen -
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 twelve thousand and fifty-three -
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 eight thousand nine hundred and thirty -
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 sixteen thousand six hundred and forty-four -
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 nine thousand three hundred and seventy-one -
Strategic significance of browser Following instant messaging software (IM) After the Chinese input method, the web browser has again become the target of Internet giants and entrepreneurs. Unlike instant messaging software and input method, the threshold of web browser is lower. The ubiquitous browser core does not require much time for them to develop a browser. More importantly, the promotion of the browser does not require 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 fifteen thousand seven hundred and eighty-one -
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 eight thousand six hundred and forty-nine