If you use div to do it, please give me the code. If you do it with dl dt dd, you don’t have to give it
Thank you
No difference Bar. I would use ul instead
This is a practice question from a certain school
If you want me to write it like this, just add float to the div style
<div class="block"> <img src="pic01" /><span>打牌狂降价...</span></div>...
This, Use ul, which is more reasonable. . .
In fact, it can be achieved using any one, it depends on which one LZ is good at using.
I am not good at DIV either. I have done something similar before. I need to set the width and padding value of the parent div, as well as the small div, and then change the float attribute so that all are float: left. It seems that it can be achieved.
This is what I did, I wrote it before.
It is best not to use div, because div has no semantic meaning.
It cannot be generalized
Today’s browsers are not much different, but early browsers (such as ie5) used div instead of table to make a large table, and it was very difficult to open the browser
Don’t understand me wrong, I’m not asking you to consider compatibility with IE5
What I mean is that if it can be achieved, you can use anything, consider other aspects
1. Customer experience (opening speed, occupancy Memory)
2. Development efficiency (quick and simple), secondary development efficiency (especially if it is handed over to the next party for content editing)
3. Reusability (easy to modify)
<div><dl><dt>新品上架</dt><dd>内容</dd><dd></dd></dl></div>
Lists can be semanticized using list elements