Стас Дацюк, Евгений Андреев: 30 мая
Сергей Горбачев: 4 июня
class Polynomial: | |
''' | |
Class for single-variable polynomials | |
>>> str(Polynomial({1: 1})) | |
'1 * X ** 1' | |
>>> Polynomial({1: 1}) | |
Polynomial({1: 1}) | |
>>> print(Polynomial({1: 1}) + Polynomial({2: 2})) | |
2 * X ** 2 + 1 * X ** 1 |
<script type="text/javascript"> | |
document.getElementById('press').addEventListener('click', function() { | |
alert('Hi!'); | |
}); | |
</script> | |
<input type="button" id='press' value="Press me"> |
body { | |
font-size: 36pt; | |
} | |
#absolute { | |
position: absolute; | |
color: darkred; | |
/*height: 100px;*/ | |
top: 50px; | |
bottom: 50px; |
.box { | |
width: 100px; | |
height:100px; | |
border: 2px dotted green; | |
} | |
.align-bottom { | |
vertical-align: bottom; | |
} |
.wrapper | |
{ | |
padding-left: 4em; | |
text-align: right; | |
} | |
.wrapper p | |
{ | |
/* | |
блочные элементы не выравниваются, |
body | |
{ | |
/* | |
font-family != font.ttf, | |
но может состоять из одного шрфита | |
не забывать про кавычки | |
если есть пробел в названии | |
*/ |
/* | |
1em = 100% | |
1ex = 1/2em или высоте x | |
*/ | |
body | |
{ | |
font-size: 5em; | |
} | |
.em-box { |
/* | |
процентные значения берутся как правило | |
от родителя | |
*/ | |
html, body | |
{ | |
height: 100%; | |
} | |
.main |
body { | |
font-size: 36px; | |
} | |
.outer /* , .outer > div */ { | |
color: red; /* строчное свойство - наследуется */ | |
border: 2px solid black; /* блочное свойство - не наследуется */ | |
} |