我需要在课后设置一个 url module-content
,使用纯 css。这段代码不起作用,但基本上我需要Custom·Link
在content: ' ' attr(href);
.
<div class="module-content">
<div class="aidanews2" style="clear: both;">
<div class="aidanews2_art aidacat_2 aidapage105 hidepiece odd first" style="clear: both; display: block;">
<div class="aidanews2_art aidacat_2 aidapage105 hidepiece even last" style="clear: both; display: block;">
</div>
<div class="aidanews2_bottomlink">
<a href="/joomla/index.php">Custom·Link</a>
</div>
</div>
.moduletable>.module-content:after{
background: none repeat scroll 0 0 #050505;
content: ' ' attr(href);
}
不成功的 Jquery尝试:
var a = $('.aidanews2_bottomlink').html();
var b = $('.top-1 > .moduletable > .module-content:after ').html(a);