这是我的辩论,问题解决了,但我无法弄清楚为什么css-tricks.com上使用的方法不起作用.我认为它没有用的唯一原因是因为我的列是响应式的.
这是问题的一个方面.
不工作,为什么.因为我的客户可以随时添加另一个框(告诉我添加另一个框,或减去一个框).所以我需要我的代码才能做出响应.我顺便把css拿走了,但是如果你能看一下并告诉我如何使这个工作,那就太好了.我坚持的部分是选择UL的孩子.
.pseudo-three-col .col:nth-child(1) { left: 33%; }
.pseudo-three-col .col:nth-child(2) { left: -33.3%; }
.pseudo-three-col .col:nth-child(3) { left: 0; }
Run Code Online (Sandbox Code Playgroud)
我的jQuery捕获了我的无序列表的高度,并将其应用于我的列表项高度.完美的工作.但我是一个真正的CSS开发人员,不想jQuery代码不需要的东西.时间限制导致了这种解决方案.
$(".basic:last-child").show();
// Optimalisation: Store the references outside the event handler:
var catheight = $('ul.categories').height();
$('ul.categories li.clearfix').css({"height" : "" + catheight + ""});
Run Code Online (Sandbox Code Playgroud) 这是我的剧本,我不知道我缺少什么来完成这项工作,这将有助于解决这么多问题.谢谢
$(document).ready(function() {
$("#btnUpdate1_div, #btnAddress1_div, #btnUpdate2_div, #btnAddress2_div").hide();
$("#StepArea_lnkAddressBook, #StepArea_linkToAddressBookItem").hide();
if ("#StepArea_warningAddressBook") {
$("#StepArea_lnkAddressBook, #StepArea_linkToAddressBookItem").show();
}
});
Run Code Online (Sandbox Code Playgroud)