我修改了代码Breadcrumbs箭头,用于从右到左的方向工作,但是文字不能正常工作,这个代码在jsfiddle看看文字显示如何:jsfiddle.net/tr7th3d2
list_element *list_take_first(list *mylist) {
list_element *le = mylist->first;
if (le != NULL) {
mylist->first = le->next;
le->next = NULL;
if (mylist->first == NULL) {
mylist->last = NULL;
}
}
return le;
}
void list_append(list *mylist, list_element *le) {
if (le) {
if (mylist->first == NULL) {
mylist->first = le;
} else {
mylist->last->next = le;
}
while (le->next) {
le = le->next;
}
mylist->last = le;
}
}
list_element *partition(list *input, list *left, list *right) {
/* simplistic partitioning: use first element as pivot */
list_element *pivot = list_take_first(input);
if (pivot != NULL) {
list_element *tmp;
while ((tmp = list_take_first(input)) != NULL) {
if (tmp->data.anzahl >= pivot->data.anzahl) {
list_append(right, tmp);
} else {
list_append(left, tmp);
}
}
}
return pivot;
}
void qsort_list(list *mylist) {
if (mylist->first != mylist->last) {
list left, right;
init_list(&left);
init_list(&right);
list_element *pivot = partition(mylist, &left, &right);
qsort_list(&left);
qsort_list(&right);
list_append(mylist, left.first);
list_append(mylist, pivot);
list_append(mylist, right.first);
}
}
答案 0 :(得分:0)
您必须更改标记填充
.breadcrumb li a {
padding: 10px 55px 10px 0px;
}