.block {
width: 200px;
height: 100px;
background-color: skyblue;
}
padding: 20px
width: 180px;
height: 80px;
padding: 20px
git clone url/to/project
npm i
npm run serve
file.onchange = function(e) {
let str = e.target.value;
res.textContent = str.length > 40 ? str.slice(0, 10) + '...' + str.slice(-10) : str;
}
positon: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
position: absolute;
left: 50%;
top: 150%;
transform: translate(-50%, -50%);