成人免费xxxxx在线视频软件_久久精品久久久_亚洲国产精品久久久_天天色天天色_亚洲人成一区_欧美一级欧美三级在线观看

解析DIV style中特殊效果的實現(xiàn)

開發(fā) 前端
上節(jié)向大家介紹了DIV Style的常用屬性,本文向大家介紹一下DIV style一些特殊效果,相信本文介紹一定會讓你有所收獲。

本文向大家描述一下DIV style一些特殊效果,主要包括cursor:設置DIV上光標的樣式,filter:濾鏡效果以及其他效果。

DIV style一些特殊效果

1、cursor:設置DIV上光標的樣式。

2、clip:設置剪輯矩形。

例:

代碼

  1. <div style="font:16px宋體;width:600px;height:200px;  
  2. cursor:help;clip:rect(0px100px20px0px);  
  3. line-height:20px;overflow:auto;  
  4. background-color:Yellow;position:absolute">div樣式測式howareyou.</div> 
  5.  

說明:clip:rect(toprightbottomleft);設置上下左右的距離,但此時要把position指定為absolute。看以上效果。

3、filter:濾鏡效果。

例:

代碼

  1. <div style="width:450px;height:200px;  
  2. background-color:Blue;"> 
  3. <dividdivid=”tdiv”style="background-color:Yellow;  
  4.  
  5. filter:alpha(opacity=50);opacity:0.5;float:left;width:200px;  
  6. height:200px;"> 
  7. </div><div style="background-color:Yellow;  
  8. width:200px;height:200px;float:left;"></div> 
  9. </div> 
  10.  

說明:設置透明度:opacity:value(FF專用,value的取值為0至1之間的小數(shù)),filter:alpha(opacity=value)(IE專用,value取值:0至100)。

如果要有JavaScript改變DIV的透明度可用下面的方法:

FF中:document.getElementById('tdiv').style.opacity='0.9';

IE中:document.getElementById('tdiv').style.filter='alpha(opacity=90)';

*以下是濾鏡綜合的例子,將以下代碼復制到一個網(wǎng)頁文件中就可看到其效果,所以就不要加以說明了。

例: 

  1. <styletypestyletype="text/css"> 
  2.  
  3. #paneldivdiv  
  4.  
  5. {  
  6.  
  7. background-Color:yellow;  
  8.  
  9. height:200px;  
  10.  
  11. width:200px;  
  12.  
  13. }  
  14.  
  15. </style> 
  16.  
  17. <dividdivid="paneldiv"style="width:230px;height:2300px;  
  18.  
  19. background-color:Blue;"> 
  20.  
  21. <div style="filter:alpha(opacity=0,finishopacity=80,style=1,  
  22.  
  23. startx=10,starty=10,FinishX=100,FinishY=100);  
  24. opacity:0.5;"> 
  25.  
  26. chroma效果:<br/> 
  27.  
  28. 原為黃色,單擊變成紅色變成透明,雙擊變成黑色。  
  29.  
  30. </div> 
  31.  
  32. <div style="filter:FlipH;"> 
  33.  
  34. glow效果:<br/> 
  35.  
  36. strength的光的強度0--100;此時不能設DIV的背景色。  
  37.  
  38. </div> 
  39.  
  40. <div style="filter:mask(color='ff0000');width:100px;  
  41.  
  42. height:100px;text-transform:uppercase;color:black;"> 
  43.  
  44. mask效果:<br/> 
  45.  
  46. 沒有明顯效果,不能設背景色。  
  47.  
  48. </div> 
  49.  
  50. <div style="filter:shadow(color='0000ff',direction='100');  
  51.  
  52. width:100px;height:100px;"> 
  53.  
  54. </div>   

【編輯推薦】

  1. DIV style常用屬性
  2. IE6.0對padding的解讀分析
  3. 揭露CSS中margins折疊現(xiàn)象內幕
  4. 七大CSS選擇符用法說明
  5. 技術分享 如何使用CSS控制超鏈接文字樣式

 

責任編輯:佚名 來源: cnblogs.com
相關推薦

2010-09-10 09:57:27

DIV樣式

2009-12-29 14:26:04

WPF按鈕

2009-12-25 14:25:39

WPF圖標

2010-08-17 10:16:37

DIV樣式

2015-07-08 16:19:17

iOSUIVisualEff

2010-08-24 13:55:38

DIVstyle

2010-09-14 12:58:41

DIV+CSS圓角

2010-09-07 09:30:25

DIV彈出jQuery

2010-08-25 13:48:51

CSSlist-style-

2009-12-23 17:31:56

WPF Style

2010-09-14 09:18:28

DIVCSS

2010-08-03 11:29:09

Flex全屏

2011-09-01 13:17:46

JQuery滾動

2010-09-10 09:51:05

DIVCSS

2015-07-07 10:15:56

iOSUIVisualEffweak

2009-12-18 15:56:05

Ruby特殊語法

2010-08-17 11:12:18

DIV CSS

2017-02-06 13:31:19

Android樣式繼承關系

2010-08-30 10:09:07

JavaScriptDIV

2014-04-02 10:29:12

iOS 7模糊效果
點贊
收藏

51CTO技術棧公眾號

主站蜘蛛池模板: 午夜一区二区三区视频 | 精品无码久久久久久国产 | 国产视频精品免费 | 国产福利在线 | 中文字幕视频在线 | 国产精品一区在线观看 | 日韩精品成人在线 | 亚洲高清视频一区二区 | 97人人澡人人爽91综合色 | 91大神在线看 | 亚洲一区国产 | 不卡视频一区二区三区 | 国产精品久久在线观看 | 91精品福利 | 亚洲一区久久 | 亚洲欧美激情国产综合久久久 | 国产精品视频在线观看 | 91在线免费观看网站 | 亚洲成人精品一区 | 亚洲 欧美 另类 综合 偷拍 | 成人在线不卡 | 91精品中文字幕一区二区三区 | 久久99精品久久久久 | 中文字幕视频在线看 | 亚洲精品国产区 | 一区二区三区小视频 | 日韩精品一区二区三区高清免费 | 日韩欧美视频 | 一区二区三区四区av | 成人av播放 | 国产成人在线视频 | 亚洲欧美国产精品久久 | 嫩草研究影院 | 国产精品久久久久久婷婷天堂 | 亚洲一区二区国产 | 亚洲欧美在线免费观看 | 国产在线中文字幕 | 日韩三级免费网站 | 亚洲久久| 久久夜视频 | 久久久久久久av |