惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

W
WeLiveSecurity
The GitHub Blog
The GitHub Blog
Engineering at Meta
Engineering at Meta
Microsoft Azure Blog
Microsoft Azure Blog
The Register - Security
The Register - Security
Stack Overflow Blog
Stack Overflow Blog
博客园 - 三生石上(FineUI控件)
T
Threat Research - Cisco Blogs
S
SegmentFault 最新的问题
V2EX - 技术
V2EX - 技术
Hacker News: Ask HN
Hacker News: Ask HN
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
P
Proofpoint News Feed
J
Java Code Geeks
Microsoft Security Blog
Microsoft Security Blog
M
MIT News - Artificial intelligence
AI
AI
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
P
Proofpoint News Feed
Hacker News - Newest:
Hacker News - Newest: "LLM"
B
Blog
N
News and Events Feed by Topic
N
News | PayPal Newsroom
Google DeepMind News
Google DeepMind News
酷 壳 – CoolShell
酷 壳 – CoolShell
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
WordPress大学
WordPress大学
C
Cybersecurity and Infrastructure Security Agency CISA
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园 - 【当耐特】
U
Unit 42
腾讯CDC
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
The Cloudflare Blog
H
Help Net Security
Recent Announcements
Recent Announcements
P
Privacy & Cybersecurity Law Blog
IT之家
IT之家
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Security Archives - TechRepublic
Security Archives - TechRepublic
L
LINUX DO - 热门话题
Martin Fowler
Martin Fowler
MongoDB | Blog
MongoDB | Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
H
Heimdal Security Blog
博客园 - 聂微东
S
Securelist
大猫的无限游戏
大猫的无限游戏
Cloudbric
Cloudbric
Cisco Talos Blog
Cisco Talos Blog

博客园 - ゞ智者.千虑

获取 Google PR 值 ASP(vbs)版 (使用最新算法) Adobe CS4 Design Premium 简体中文正式版全集 提供种子文件 破解方法 jQuery1.4 API 中文版手册(chm格式) ASCII码表 解决在IE7下Ext表单(form)过长的时候fieldset内组件错位的BUG jQuery1.3 API 中文版手册(chm格式) FCKeditor的fckconfig.js配置 中文说明 - ゞ智者.千虑 - 博客园 关于Ext ComboBox组件的expand()方法 - ゞ智者.千虑 - 博客园 Adobe DreamweaverCS4 beta 下载地址+序列号+中文包+破解 全攻略o(∩_∩)o... 清除浮动的最优方法 Adobe DreamweaverCS4 beta+可用序列号,FireworkCS4 beta及SoundboothCS4 beta 官方下载地址 关于IE6处理块级元素内部的问题 - ゞ智者.千虑 - 博客园 Dreamweaver CS4 Prerelease 关于远程桌面与本地计算机之间的复制、粘贴 IE6/IE7/FF CSS HACK jQuery 1.2 cheatsheet 关于IIS 7.0 局域网无法访问的解决方法 China VS USA [转]ajax:拥抱json,让xml走开
IE6.0图片下空隙问题解决方法集合
ゞ智者.千虑 · 2008-04-14 · via 博客园 - ゞ智者.千虑

今天写CSS的时候,发现IE6有个问题,即插入的图片下总有5px的空隙,IE7和FF下都正常,绞尽脑汁不得其解。最后在百度上找到了解决办法,转过来备用...(点击查看原文

问题如下:
<style> div { width:500px; border:1px solid #f00; background:#000; } </style> <div> <img src="http://www.google.com/intl/en/images/logo.gif"    /> </div>

解决方法:一、改变HTML的排列(没看出来改变在什么地方-_-|||)
<style> div { width:500px; border:1px solid #f00; background:#000; } </style> <div><img src="http://www.google.com/intl/en/images/logo.gif"    /></div>

解决方法:二 、display:block
<style> div { width:500px; border:1px solid #f00; background:#000; } img {display:block} </style> <div> <img src="http://www.google.com/intl/en/images/logo.gif"    /> </div>

解决方法:三、负值
<style> div { width:500px; border:1px solid #f00; background:#000; } img {margin-bottom:-5px} div>img {margin-bottom:0} </style> <div> <img src="http://www.google.com/intl/en/images/logo.gif"    /> </div>

解决方法:四、字体大小
<style> div { width:500px; border:1px solid #f00; background:#000; font-size:0 } </style> <div> <img src="http://www.google.com/intl/en/images/logo.gif"    /> </div>

解决方法:五、vertical-align:bottom 、 vertical-align:middle 、vertical-align:top ............. 
<style> div { width:500px; border:1px solid #f00; background:#000 } img {vertical-align:bottom} </style> <div> <img src="http://www.google.com/intl/en/images/logo.gif"    /> </div>