hover

css hover特效

不羁的心 提交于 2019-12-23 17:28:35
css hover2: <!-- 按钮特效 --> <a class="video-btn" href="###"> <span class="video-ico">Video icon</span> <span>Watch Video<span>What and how we work</span></span> </a> <style type="text/css"> a.video-btn { color: #3399cc; text-decoration: none;} a.video-btn:hover, a.video-btn:focus { color: #8ab206; text-decoration: none;} a:active, a:hover { outline: 0;} a, input[type="button"], input[type="submit"], button { -moz-transition: background 550ms cubic-bezier(0.45, 1, 0.32, 1), color 550ms cubic-bezier(0.45, 1, 0.32, 1); -webkit-transition: background 550ms cubic-bezier(0.45, 1, 0.32, 1), color 550ms

IE10 Hover + Pseudo Elements

风流意气都作罢 提交于 2019-12-23 16:59:55
问题 Example: http://codepen.io/mastastealth/pen/gFjhi Basically, I have an element with an :after element set to opacity 0. On hover, it goes to opacity 1. Apparently it works in IE9 and everywhere else, but not IE10 (unless I click)? Ideas? 回答1: It appears there is a bug where the selector with a pseudo class followed by a pseudo element is not listened for when an event happens. If you add the listener by simply adding the selector with only the pseudo class your style will be applied on the

Want to change the background of an div on hovering another div in css3

你离开我真会死。 提交于 2019-12-23 16:16:11
问题 I Want to change the background of a Div when Hovering over another Div and i tried HTML5 part: <nav> <div id="nav1"></div> <a href="#"><div id="nav2"></div></a> <a href="#"><div id="nav3"></div></a> <a href="#"><div id="nav4"></div></a> <a href="#"><div id="nav5"></div></a> <a href="#"><div id="nav6"></div></a> <div id="nav7"></div> </nav> <article> <div id="nav8"></div> </article> And the CSS i tried is #nav2 { float:left; height:429px; width:34px; background:url(images/nav_02.gif) no

后台管理页面1

自作多情 提交于 2019-12-23 15:47:43
1. html:标签 2.CSS: position background text-align margin padding font-size z-index overflow hover opacity float(clear:both) line-height border color display 页面布局: 后台管理布局: position:   fixed   relative   absolute 1. .left{ float:left; 因为float经常用,所以可以给它写一个样式,然后在下面直接应用这个样式就可以了。 2. 父亲定义了高度/宽度以后,里面的div才可以用%的形式来定义高度/宽度,定义的时候是以父亲div为标准的。现在的问题就卡在怎么样设置高度上了。是猜一下页面高度呢,还是设置100%呢(实际上无效)。 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <style> body{ margin:0; } .pg-header{ height:48px; background-color:#2459a2; color:white; } .pg-content .menu{ width:20%; background-color

后台管理页面布局

吃可爱长大的小学妹 提交于 2019-12-23 15:47:27
1 <!DOCTYPE html> 2 <!--后台管理页面布局1--> 3 <html lang="en"> 4 <head> 5 <meta charset="UTF-8"> 6 <title>Title</title> 7 <style> 8 body{ 9 margin: 0; 10 } 11 .left{ 12 float: left; 13 } 14 .right{ 15 float: right; 16 } 17 .pg-header{ 18 height:48px; 19 background-color: #2459a2; 20 color: white; 21 } 22 .pg-content .menu{ 23 width:20%; 24 background-color: red; 25 min-width: 200px; 26 height:500px; 27 } 28 .pg-content .content{ 29 width:80%; 30 background-color: green; 31 } 32 </style> 33 </head> 34 <body> 35 <div class="pg-header"></div> 36 <div class="pg-content"> 37 <div class="menu left">a</div>

Losing :hover status on <tr> between <td>'s in Chrome

做~自己de王妃 提交于 2019-12-23 15:23:26
问题 I am trying to achieve a simple table row hover effect by changing the background colour of a row when a users hovers overs over it, that was simple enough: tr:hover { background: red; } However I have noticed a bug in chrome where there is a small space between cells in a row where I lose the :hover and the <tr> flicks the style on/off as you move over it even though my mouse is still on the row. I've tried border-collapse: collapse , cellspacing="0" but cannot see why I am losing the <tr>

前端常用的CSS代码

て烟熏妆下的殇ゞ 提交于 2019-12-23 13:56:44
(非原创): demo演示 1、垂直居中对齐 .vc { position : absolute ; top : 50% ; left : 50% ; transform : translate ( -50%, -50% ) ; } .vc { position : absolute ; top : 50% ; left : 50% ; width : 100px ; height : 100px ; margin : -50px 0 -50px ; } ``````css 在这里插入代码片 2、全屏显示 html, body { position : fixed ; width : 100% ; height : 100% ; } div { height : 100% ; } 3、不同a标签链接使用不同样式 // link a [ href ^ = "http://" ] { background: url ( link . gif ) no-repeat center right ; } / / emails a [ href ^ = "mailto:" ] { background: url ( email . png ) no-repeat center right ; } / / pdfs a [ href$ = ".pdf" ] { background: url (

Change option background color on hover?

寵の児 提交于 2019-12-23 13:08:49
问题 How can I change the background color when user hovers it ? I have tried this but it's not working. <select> <option>bmw</option> <option>audi</option> <option>mercedes</option> </select> $('option').hover(function(){ $(this).css("background-color","#FFFFCC"); }); 回答1: You cannot use option in this way. The best solution would be styling something similar with <ul> and <li> and interacting with JS. 回答2: hover event can not be bound to an option tag. I'll update this post if I find the

CSS Hover+Background Image

ε祈祈猫儿з 提交于 2019-12-23 11:42:09
问题 I'm creating a special UI control using HTML/CSS to mimic the Windows 7 Control Panel buttons. So far, I've got the layout right and now I'd like to add some cosmetics to it. As seen here, there is a gradient that appears when you hover over the button with your mouse. http://m.cncfps.com/zack/files/this-control.png Now, you can see here that I've got the layout done. I'd like to add a :hover effect to the whole div item with a background image. Currently, here is what I have for the CSS- yet

CSS Hover+Background Image

Deadly 提交于 2019-12-23 11:42:04
问题 I'm creating a special UI control using HTML/CSS to mimic the Windows 7 Control Panel buttons. So far, I've got the layout right and now I'd like to add some cosmetics to it. As seen here, there is a gradient that appears when you hover over the button with your mouse. http://m.cncfps.com/zack/files/this-control.png Now, you can see here that I've got the layout done. I'd like to add a :hover effect to the whole div item with a background image. Currently, here is what I have for the CSS- yet