自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

DIV+CSS常見問題及解決方案

開發(fā) 前端
DIV+CSS有很多值得學(xué)習(xí)的地方,但是在使用的過程中難免會出現(xiàn)一些問題,這里和大家分享一下DIV+CSS常見問題及解決方案,希望對你的學(xué)習(xí)有所幫助。

本文向大家描述一下DIV+CSS常見問題及解決方案,比如說超鏈接訪問過后hover樣式不出現(xiàn)問題,被點擊訪問過的超鏈接樣式不在具有hover和active了,解決方法是改變CSS屬性的排列順序:L-V-H-A。

DIV+CSS常見問題及解決方案

1.超鏈接訪問過后hover樣式就不出現(xiàn)的問題?

被點擊訪問過的超鏈接樣式不在具有hover和active了,解決方法是改變CSS屬性的排列順序:L-V-H-A。

2.IE6的雙倍邊距BUG

例如:

viewplaincopytoclipboardprint? 

  1. <styletypestyletype="text/css"> 
  2. body{margin:0;}  
  3. div{float:left;margin-left:10px;width:200px;  
  4. height:200px;border:1pxsolidred;}  
  5. style> 
  6. <styletypestyletype="text/css"> 
  7. body{margin:0;}  
  8. div{float:left;margin-left:10px;width:200px;  
  9. height:200px;border:1pxsolidred;}  
  10. style> 
  11.  

浮動后本來外邊距10px,但IE解釋為20px,解決辦法是加上display:inline

3.DIV+CSS為什么FF下文本無法撐開容器的高度?

標(biāo)準(zhǔn)瀏覽器中固定高度值的容器是不會象IE6里那樣被撐開的,那我又想固定高度,又想能被撐開需要怎樣設(shè)置呢?辦法就是去掉height設(shè)置min-height:200px;這里為了照顧不認識min-height的IE6可以這樣定義:

viewplaincopytoclipboardprint? 

  1. div{height:auto!important;height:200px;min-height:200px;}  
  2. div{height:auto!important;height:200px;min-height:200px;}  
  3.  

4.DIV+CSS為什么web標(biāo)準(zhǔn)中IE無法設(shè)置滾動條顏色了?

原來樣式設(shè)置:

viewplaincopytoclipboardprint? 

  1. <styletypestyletype="text/css"> 
  2. body{scrollbar-face-color:#f6f6f6;  
  3. scrollbar-highlight-color:#fff;scrollbar-shadow-color:#eeeeee;  
  4. scrollbar-3dlight-color:#eeeeee;scrollbar-arrow-color:#000;  
  5. scrollbar-track-color:#fff;scrollbar-darkshadow-color:#fff;}  
  6. style> 
  7. <styletypestyletype="text/css"> 
  8. body{scrollbar-face-color:#f6f6f6;scrollbar-highlight-color:#fff;  
  9. scrollbar-shadow-color:#eeeeee;scrollbar-3dlight-color:#eeeeee;  
  10. scrollbar-arrow-color:#000;scrollbar-track-color:#fff;  
  11. scrollbar-darkshadow-color:#fff;}  
  12. style> 

 解決辦法是將body換成html。#p#

5.為什么無法定義1px左右高度的容器?

IE6下這個問題是因為默認的行高造成的,解決的方法也有很多,例如:overflow:hidden|zoom:0.08|line-height:1px。

6.DIV+CSS怎么樣才能讓層顯示在FLASH之上呢?

解決的辦法是給FLASH設(shè)置透明:

viewplaincopytoclipboardprint? 

  1. <ahrefahref="http://www.easyq.net.cn/">:a> 
  2. <prelangprelang="html"line="1"> 
  3. <paramnameparamname="wmode"value="transparent"/> 
  4. <ahrefahref="http://www.easyq.net.cn/">:  
  5. <prelangprelang="html"line="1"> 
  6. <paramnameparamname="wmode"value="transparent"/> 
  7.  

 7.怎樣使一個層垂直居中于瀏覽器中?

viewplaincopytoclipboardprint?

  1. <styletypestyletype="text/css"> 
  2. 2019-10-08 16:05:19

    Redis數(shù)據(jù)庫系統(tǒng)

2010-08-23 14:06:57

DIV+CSS

2010-09-01 14:51:12

CSSIEFirefox

2010-09-07 09:50:35

DIVCSS

2010-08-26 12:59:29

marginCSS

2010-09-14 10:00:41

CSS+DIV

2010-08-23 09:53:41

DivCSSweb

2024-07-08 08:45:41

2010-08-30 12:46:42

DIV+CSS

2011-05-17 09:51:27

Div+CSS

2010-08-24 10:32:34

DIV+CSS

2010-08-27 14:05:40

DIV+CSS

2011-07-26 16:05:19

Oracle數(shù)據(jù)庫服務(wù)器

2016-09-27 21:14:53

JavaURL

2014-01-07 13:54:02

HadoopYARN

2010-08-17 11:35:46

DIV CSS

2010-08-30 13:09:40

DIVCSS

2021-05-18 08:21:38

React HooksReact前端

2010-08-24 13:25:16

DIV+CSS

2010-09-07 13:24:18

CSS
點贊
收藏

51CTO技術(shù)棧公眾號

業(yè)務(wù)
速覽
在線客服