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
The button image is implemented through image exchange, but there is a problem: loading an image first, but loading the other one is slow, and the effect is poor. This is an online solution to achieve pre-loading of CSS images:
I didn't use
/**/
/// /// Remove HTML tags /// /// Including the source code of HTML /// Removed text
Public
Static
String
Nohtml (
String
Htmlstring)
{ // Delete script Htmlstring = RegEx.
ArticleDirectory
1. display: inline-block
2. inline-block in IE
3. Other browsers
4. References
1. display: inline-block
2. inline-block in IE
3. Other browsers
4. References
1. display: inline-block
Let an element
I. Use CSS abbreviationsUsing abbreviations can help reduce the size of your CSS file and make it easier to read. For the main rules of CSS abbreviations, see common CSS abbreviations syntax summary, which is not described here. Ii. Define the
Recently, the effect of Windows Vista glass has been imitated by peers in the world. The younger brother is not talented. He also posted his own remark.
First, prepare two background images. One is a normal image, and the other is a blur of the
CSSBrowser compatibility is sometimes a headache. Maybe when you understand the skills and principles, you will feel that it is not difficult to collect IE7 from the Internet, 6. Solutions for compatibility with fireofx have been sorted out.For over
I will summarize the following HTML encoding elements:
1. The text size is incompatible. It is also the font-size: 14px text. The space occupied by different browsers is different. The actual space occupied by IE is 16 PX, and the space reserved by
STR indicates the xmlrequest returned through Ajax
/* Dynamically load CSS style */
Function loadstyle (STR)
{
VaR regexp_src =/ [^ <>] * /GI;
VaR matcharray_src = Str. Match (regexp_src );
Alert (matcharray_src [0]);
If (matcharray_src ){
For (VAR
Of course, only one idea is provided here, and you can flexibly modify and use it.
feet home the border is the default style foot home This border is concave
Let's look at a simple CSS:
Div # divbox P span. red {color: red;}. According to our habits, the browser first looks for the DIV element whose ID is divbox, and then finds all the P elements under it, search for all the span elements and apply
Reset the default settings of the browser
Add the following code to your global css file:
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->/* 1. Reset browser defaults then reset the browser font
[Translation] Use CSS for text Rotation
Address: http://snook.ca/archives/html_and_css/css-text-rotation
Http://www.cnblogs.com/AndersLiu/archive/2009/07/29/css-text-rotation.html.
Translation: Anders Liu
Abstract: I have been inspired by other
If the background color of this paragraph is green (a darker green than this page's background) then the hack was applied.Example Code
p.test { background-color: #f66;}*:first-child+html p.test { background-color: #6f6;}List of browsers that apply
Copy codeThe Code is as follows: // dynamic loading of external js files
Var flag = true;
If (flag ){
LoadScript ("js/index. js ");
};
Function loadScript (url ){
Var script = document. createElement ("script ");
Script. type = "type/javascipt
I recently read a website and found that different resolutions of the display and style files are called differently. Today I wrote an example to study it,
Copy codeThe Code is as follows:
untitled document
Content in c1.css Copy
Recently, I am working on some front-end OA interfaces. In order to better manage the Page code, I want to write a js selector, which says it is very laborious to find it on the Internet. I am very hard to find a mini css selector, outstanding
This can also be implemented with CSS! For ease of demonstration, the JavaScript code is used to control the switching of playing cards, which is quite good.
Xmlns = "http://www.w3.org/1999/xhtml" lang = "en">
Select an option abve to
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.