Answer the question
In order to leave comments, you need to log in
What to do with dynamic height on photo frame?
Hey!
The bottom line is this: when I load a page that has a gallery on a photo frame, while the pictures can be different in height and width, the height is calculated very strangely. She's just huge. I don't specify either height or width. in the attributes I prescribe: data-width="100%". The maximum width can be 940px, I can't set a static width and height.
How to be?
Answer the question
In order to leave comments, you need to log in
Probably you need to limit the max dimensions - here is a link to the help - fotorama.io/customize/dimensions
<div class="fotorama"
data-width="100%"
data-ratio="800/600"
data-minwidth="400"
data-maxwidth="1000"
data-minheight="300"
data-maxheight="100%">
<img src="1.jpg">
<img src="2.jpg">
</div>
obviously take a large news site and carefully parse, this is done twice.
and it is better to have several sites so that one is not overloaded with requests and can be received relatively quickly.
There are aggregators:
https://news.google.ru/
https://news.yandex.ru/
True, they are focused on the news sites themselves (it is believed that the news is more interesting if more news sites are trumpeting it) without taking into account the interest index user (that is, the number of people who read this news is not taken into account).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question