侧导航课程,班级名称过长显示效果
This commit is contained in:
parent
59ebadd406
commit
34a1bb0b49
|
@ -104,4 +104,13 @@
|
|||
$("#user_show_more_course").hide();
|
||||
$('#user_hide_course').show();
|
||||
}
|
||||
|
||||
$(".course_list_menu").each(function(){
|
||||
var courseWidth = $(this).children().eq(0).width();
|
||||
var classWidth = 160 -courseWidth;
|
||||
console.log(courseWidth, classWidth);
|
||||
if(courseWidth < 80){
|
||||
$(this).children().eq(2).css("max-width",classWidth + "px");
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue