2011-07-16 23:33:46 +04:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
2011-07-16 23:34:11 +04:00
|
|
|
<title>Text-decoration:underline tests</title>
|
2011-07-16 23:33:46 +04:00
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
2012-12-28 01:06:47 +04:00
|
|
|
<script type="text/javascript" src="../../test.js"></script>
|
2011-07-16 23:33:46 +04:00
|
|
|
<script type="text/javascript">
|
2011-12-11 21:12:20 +04:00
|
|
|
function setUp() {
|
2019-05-26 01:54:41 +03:00
|
|
|
var container = document.querySelector('#test');
|
|
|
|
container.innerHTML = '';
|
2012-12-28 01:06:47 +04:00
|
|
|
|
2019-05-26 01:54:41 +03:00
|
|
|
['arial','verdana','courier new'].forEach(function(e) {
|
|
|
|
var div = document.createElement('div');
|
|
|
|
div.style.fontFamily = e;
|
|
|
|
container.appendChild(div);
|
|
|
|
for(var i=1;i<=10;i*=2) {
|
|
|
|
var text = document.createElement('div');
|
|
|
|
text.innerText = 'Testing texts';
|
|
|
|
text.style.marginTop = '1px';
|
|
|
|
text.style.fontSize = (16+i*6) + 'px';
|
|
|
|
div.appendChild(text);
|
|
|
|
}
|
2011-07-16 23:34:11 +04:00
|
|
|
});
|
2011-12-11 21:12:20 +04:00
|
|
|
}
|
2011-07-16 23:33:46 +04:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
.small{
|
|
|
|
font-size:14px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.medium{
|
|
|
|
font-size:18px;
|
|
|
|
}
|
|
|
|
.large{
|
|
|
|
font-size:24px;
|
|
|
|
}
|
2011-07-16 23:34:11 +04:00
|
|
|
|
2011-07-16 23:33:46 +04:00
|
|
|
div{
|
2011-07-16 23:34:11 +04:00
|
|
|
text-decoration:underline;
|
2017-08-10 18:26:22 +03:00
|
|
|
line-height: 1em;
|
2011-07-16 23:34:11 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
.lineheight{
|
|
|
|
line-height:40px;
|
2011-07-16 23:33:46 +04:00
|
|
|
}
|
2011-07-16 23:34:11 +04:00
|
|
|
|
2011-07-16 23:33:46 +04:00
|
|
|
h2 {
|
|
|
|
clear:both;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
|
|
|
</head>
|
2012-12-28 01:06:47 +04:00
|
|
|
<body>
|
2019-05-26 01:54:41 +03:00
|
|
|
test <u> </u> label u
|
|
|
|
<div id="test">
|
|
|
|
Creating content through JavaScript
|
|
|
|
</div>
|
2011-07-16 23:33:46 +04:00
|
|
|
</body>
|
|
|
|
</html>
|