Home > Web Front-end > HTML Tutorial > No need for js, let css select the specified index element, compatible with _html/css_WEB-ITnose of lower versions of IE

No need for js, let css select the specified index element, compatible with _html/css_WEB-ITnose of lower versions of IE

WBOY
Release: 2016-06-24 11:49:53
Original
1028 people have browsed it


As shown in the picture, there are 2 LIs. There is a gap between the first and the second one, and there is no gap between the left and the most. It requires support from a lower version of IE, such as IE6, 7, etc., only uses css. Is it possible?


Reply to discussion (solution)

Use conditional comments to determine the browser.



and gt lt gte lte

Use conditional comments to determine the browser.



How to make conditional judgment leave a gap between the first LI and the second LI in IE6 and 7?


Use conditional comments Determine the browser.



How to make conditional judgment have a gap between the first LI and the second LI in IE6 and 7,
gap? Then just write CSS hack
http://blog.csdn. net/freshlover/article/details/12132801

Just two li?

<style type="text/css">ul{margin:0;padding:0;}li{list-style:none;width:100px;height:50px;background:red;}li.left{float:left;}li.right{float:right;}</style><ul><li class="left"></li><li class="right"></li></ul>
Copy after login
Copy after login

Just two li?

<style type="text/css">ul{margin:0;padding:0;}li{list-style:none;width:100px;height:50px;background:red;}li.left{float:left;}li.right{float:right;}</style><ul><li class="left"></li><li class="right"></li></ul>
Copy after login
Copy after login


No, your definition is very bad.
I suggest you read the basic CSS tutorial.
http://w3school.com.cn/css/index.asp
If you have time, check out CSS3.
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template