Home >Web Front-end >HTML Tutorial >Some thoughts on learning DIV CSS layout (II)_html/css_WEB-ITnose

Some thoughts on learning DIV CSS layout (II)_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:31:301071browse

Haha, following the results of yesterday’s reading, I will continue to learn DIV CSS and post what I am interested in. I hope everyone can learn together and provide valuable guidance. Thank you!

Because older browsers do not support CSS, a common approach is to use the @import technique to hide CSS. For example: @import url("main.css"); However, this method does not work for IE4, which gave me a headache for a while. Later, I wrote it like this: @import "main.css"
This way, I can hide CSS in IE4. Haha, I also saved 5 bytes. If you want to know the detailed explanation of @import syntax, you can see here "centricle’s css filter chart"

More durable than CSS Hacks is to use Microsoft's private attribute conditional comments (conditional comments). Using this method you can define some styles separately for IE without affecting the definition of the main style sheet. Like this:

I’ve finished reading it, that’s all I can learn! !

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn