Jump to content

den33

Newbie
  • Posts

    4
  • Joined

  • Last visited

Everything posted by den33

  1. Кому интересно вот подсказали на другом форуме <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1251" /> <title>Подч?ркивание по последней строке абзаца</title> <style type="text/css"> #line { border-top: 1px solid red; } #img { visibility: hidden; } </style> <script type="text/javascript"> function recalcLine() { document.getElementById('line').style.width = document.getElementById('img').offsetLeft + 'px'; } </script> </head> <body onresize="recalcLine();" onload="recalcLine();"> <p>Lorem ipsum dolor sit amet consectetuer magna urna convallis Vivamus tincidunt. Congue a nibh nibh tempus Curabitur fermentum malesuada penatibus et vel. Volutpat adipiscing Nam Curabitur orci tincidunt nec tincidunt ut urna ac. Lorem vitae fringilla ut metus Morbi dignissim mauris a Sed eu. Sagittis tortor sapien sagittis quis ante leo libero volutpat ante a. Gravida velit tincidunt. <img src="1x1.gif" id="img" /> </p> <div id="line"></div> </body> </html>
  2. Гуры HTML Подскажите пожалуйста как замутить такое text text text text text text text text text text text text text text text text text text text text text text text text text text text __________ Чтобы подчеркивание растягивалось именно с текстом последней строки, при изменении размера страницы.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy