Article Introduction: As we all know, sometimes in order to achieve some of the effects of IE and modern browser consistent, we have to use some hack means to achieve the purpose. For example, using "\", "\" and "\9" to only allow certain versions of IE to be recognized, and for modern browsers, he will directly ignore the code. Today I would like to introduce you to the use of @media implementation of IE hack
perform all necessary operations related to the job system, such as memory allocation, output to the screen, and creating Windows, and the user's program works with Windows by invoking the API interface, regardless of the application, The bottom end is to implement various functions by invoking various API functions. The API usually has two basic forms: Win16 and Win32. Win16 is the original, 16-bit version of the API for Windows 3.1;win32, which is now the 32-bit version of the API for Windows
VBulletin HACK
----Show topic size and open new Window on Forum index page
Author: gogosoft
"Show topic Size"
Reason: 1.1. This feature is not available in version 4, and some users use it as a reference for viewing the topic.
Pros: Just add a few lines of code to it.
Cons: Because each time a forum index page is displayed, all of the topics on the page need to be sized, which can have a number of effects on the server.
Self-Assessment: This is a smal
This is an article about CSS hack, this article refers to the CSS hack is for class, id the attributes of the hack, the order of arrangement are required. Today to talk to you about class, id do CSS HACK.
The code is as follows
Copy Code
. test{/*ff*/height:20px;Background-color:orange;}*
Document directory
Method 1: Feature Detection: @ cc_on
Method 2: @ media-ms-high-contrast
Method 3: @ media 0
Summary:
Organized from: http://www.impressivewebs.com/ie10-css-hacks/Original Chinese: IE10 CSS hackPlease respect copyright. For more information, see the source. Thank you ~~
It is said that Windows 8 has sold more than 40 million copies in just a few days since its launch. Then we found that many pages in the project were abnormal in IE10. Some were previously caused by
I. Basic Concepts
CSS hack:Write different CSS codes for different browsers.
CSS hack principle:Because different browsers have different support for CSS and parse results, they also have a relationship with the priority of CSS. We can write different CSS for different browsers based on this.
Browser priority:FF
The writing order is generally to write the CSS of a highly recognizable browser behind it, and the CSS
Shield ie browsers (that is, they are not displayed under IE)
*: Lang (zh) Select {Font: 12px! Important;}/* FF dedicated */
Select: Empty {Font: 12px! Important;}/* safari visible */
Here, select is the selector, which can be changed as needed. The second sentence is unique to the Safari browser on Mac.
Only IE7 Recognition
* + HTML {...}This hack can be used only for IE7.Identification of IE6 and IE6 or lower
* HTML {...}Note that many landlor
The official version of IE8 has been coming out for a while, but there are few CSS hack for the official version of IE8. In fact, this is fortunate because IE8 has fixed many bugs in IE6 and IE7, closer to W3C standards.
CSS hack for the official IE8 version can be found in two types: First: "\ 9 ″:
Basic statement:
1.
. Test {color/*\**/:Blue\9 }
IE6, IE7, and IE8 can both be identified. Howe
ArticleDirectory
Method 1: Feature Detection: @ cc_on
Method 2: @ media-MS-high-contrast
Method 3: @ media 0
Summary:
Organized from: http://www.impressivewebs.com/ie10-css-hacks/
Original Chinese Text: ie10 CSS hack, please respect copyright, repost, please indicate the source, thank you ~~
It is said that Windows 8 has sold more than 40 million copies in just a few days since its launch. Then we found that many pag
Common CSS hack methods compatible with various browsers
On underone's website, he complained about the hack.
Now I want to share some of my known hack methods for various browsers.
1. This is a common CSS hack method widely circulated on the Internet that is well compatible with mainstream browsers such as IE
First, explain the title attribute:
Instance Description: The instance code that can be run and can be seen immediately appears in the article.
In line with Chinese characteristics: the most popular browsers used by Chinese netizens are IE and Firefox. Therefore, these csshack mainly aims to solve the compatibility problems of the two browsers. Chinese computer users mainly use Windows operating systems. Therefore, these csshack targets Windows operating system browsers, excluding Mac.
In l
Screen IE browser (ie do not show)
*:lang (en) Select {font:12px!important}/*ff Dedicated * *
Select:empty {font:12px!important}/*safari Visible * *
Here the Select is a selector and is replaced according to the situation. The second sentence is unique to the Safari browser on the Mac.
Only IE7 recognition
*+html {...}
This hack can be used when faced with the need to do IE7 style only.
IE6 and IE6 following identification
* HTML {...}
This place sh
What is CSS hack?
Because of different browsers, such as Internet Explorer 6,internet Explorer 7,mozilla Firefox and so on, the interpretation of the CSS is not the same, so will result in the resulting page effect is not the same, we need the page effect.
This time we need to different browsers to write different CSS, so that it can be compatible with different browsers, in different browsers can also get the page effect we want.
The process of writi
√
√
√
* +html . bb {}
X
√
X
X
X
X
Browser Core
Trident
Trident
Trident
Gecko
Presto
Webkit
(Above. BB can be changed to another style name)
Note the point:
Many information on the internet often put!important also as a means of hack, in fact, this is a misundersta
Knowledge of CSS Hack and CSSHack
Test environment: Windows 7Main tests: IE6, IE7, IE8, Fire Fox3.5.6Secondary tests: Chrome4.0, Opera10.10, Safari4.04, 360 browser 3.1To enable multiple Hack instances in the same example, the following requirements are imposed on the instance page:
1. There are two divs on the left and right: # menu, # content. The font color is white.2. # menu Height: 500px; # content Hei
Less hack compatibleCSS compatibility is inevitable, then use less to write CSS code how to hack it? If you use CSS method to write a similar "\9" in the back of the compiler is to error. Here are the two small methods I tried for reference:1. First define a variable "/*\**/" when hack with this variable compile will not error:@
I have been accustomed to do a good job after the page to solve the compatibility of different browsers, continuous testing, constantly modify the CSS hack to ensure that most of the browser to get the best results. Light IE need to take into account ie5.x and IE6, and perhaps also for IE7 to write a separate CSS hack, perhaps this work to do much more began to hate this kind of inefficient labor. In or
Compatibility range:
Ie:6.0+,firefox:2.0+,opera 10.0+,sarari 3.0+,chromeResources:
1, ie conditional annotation method, Microsoft official recommended hack way.
Effective only under IEThis text is only displayed on IE browser
It only takes effect under the IE6.This text is only displayed on the IE6 browser
Only valid in IE6 above versionThis text is only displayed in the IE6 above version ie browser
Not effective only on IE7This text is displaye
IE6 CSS hack: 1. *html Selector {} /* Selector means that the CSS selector is the same as */ 2. Selector { _property : value ;} /* Property:value represents the property name of the CSS: property value similarly */ 3. Selector { _property /**/: /**/ value ; }4. Selector {-property : value ;} /* ie6 css hack common habits recommended use underscore _ */ IE7 CSS
Test environment: Windows7Main tests: IE6, IE7, IE8, Fire Fox3.5.6Minor tests: Chrome4.0, Opera10.10, Safari4.04, 360 browser 3.1To enable multiple hack in the same example, the following requirements for the instance page are:
1, about two Div is #menu, #content, the font color is white.
2, #menu高度500px, #content高度600px.
3, #menu宽度200px, #content宽度是自适应 (because it is adaptive so the usual method of adding float can not solve 3pxBug).
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.