Jump to content
php.lv forumi

div overflow scroll leja


Stopp

Recommended Posts

labs vakars.

 

man ir div tags ar konkrētu augstumu un platumu un overflow: scroll. div saturs ir tāds, ka sanāk scrolloties (t.i. augstāks par div augstumu). kā lai es norādu, ka jānoscrollo divam līdz lejai?

 

mēģināju šādi

<html>
<head>
<title>divi leja</title>
</head>
<body>
<div id="logs" style="width: 100px; height: 100px; border: 1px solid #000000; overflow: scroll;">
a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>
</div>
<script type="text/javascript">
document.getElementById("logs").scroll(100, 0);
</script>
</body>
</html>

bet nedarbojas. kā to varētu panākt?

 

paldies.

Edited by Stopp
Link to comment
Share on other sites

<html>
<head>
<title>divi leja</title>
</head>
<body>
<div id="logs" style="width: 100px; height: 100px; border: 1px solid #000000; overflow: scroll;">
a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/><a name="a"></a>apakša

</div>
<a href="#a">uz leju</a>
</body>
</html>

Edited by Kavacky
Link to comment
Share on other sites

×
×
  • Create New...