Сообщество IT-специалистов
Ответы на любые вопросы об IT
Профессиональное развитие в IT
.container { background: #c5c7d0 url(https://hsto.org/webt/5b/ac/ff/5bacff616663f822951184.jpeg) no-repeat center top; background-size: 100% 100%; }
overflow: hidden; /* Fix for firefox and IE 10-11 */ -webkit-column-break-inside: avoid; /* Chrome, Safari, Opera */ page-break-inside: avoid; /* Firefox */ break-inside: avoid; /* IE 10+ */ break-inside: avoid-column;
#change_wrap_div .three:nth-of-type(3) .porfolio_single_item .h6.widget-title, #change_wrap_div .three:nth-of-type(3) .porfolio_single_item .folio-inner-subtitle{ color: #fff; }
let items = document.querySelectorAll('p'); for(let i = 0; i < items.length; i++){ items[i].addEventListener('click', function(){ alert(i); }); }
.container { width: 300px; height: 300px; background-color: green; text-align: center; } .container:after { content: ''; height: 100%; vertical-align: middle; display: inline-block; } .container span { text-align: center; }
str.split(' ').join('')
input
contenteditable="true"
display: inline-block;
vertical-align: baseline
vertical-align: top;
function sumArr(arr, index){ var sum = 0; for(var i = index; i < arr.length; i++){ sum += arr[i]; } return sum; } console.log(sumArr([1,2,3,4,5,6], 3));
option