Tag: 式样

SVG USE元素和:hover样式

我试图使用CSS :hover伪类从<defs> <use>标签样式embedded从<defs>embedded的SVG元素,但它似乎不工作: – /这里是我的代码: <!DOCTYPE HTML> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <meta http-equiv="content-type" content="application/xhtml+xml; charset=utf-8"/> <style type="text/css" media="screen"> .active { fill: #0BE; } .active:hover { opacity: 0.8; stroke: #F0F; stroke-width: 4px; } .active2 #p2 { fill: #0BE; } .active2:hover #p2 { opacity: 0.8; stroke: #F0F; stroke-width: 4px; } #p2:hover { opacity: 0.8; stroke: #F0F; stroke-width: […]

当用户点击它时,使用jQuery来隐藏DIV

我正在使用这个代码: $('body').click(function() { $('.form_wrapper').hide(); }); $('.form_wrapper').click(function(event){ event.stopPropagation(); }); 而这个HTML: <div class="form_wrapper"> <a class="agree" href="javascript:;">I Agree</a> <a class="disagree" href="javascript:;">Disagree</a> </div> 问题是我有DIV内的链接,当他们点击时不再工作。