The div inside the table is ignored?

Updated on amusement 2024-02-09
28 answers
  1. Anonymous users2024-02-05

    This starts with the DOM model.

    In the standard DOM, even if you don't write a tbody, the browser will put all the content in it by default, which allows the browser to display the table in a short time. And don't have to wait.

    Even if tbody is not written, the browser will automatically parse it like this. So when you use js to read the tr parent node, you will naturally read the tbody.

  2. Anonymous users2024-02-04

    tbody is a hidden tag of the table, just like the body of the page, whether you write it or not, it will always exist. If you write it, it will be calculated according to the structure you wrote, and if you don't write it, it will be between the default table and tr.

    div can't be added between table and tr, which is not standard.

    If you want to add, write it like this:

  3. Anonymous users2024-02-03

    I wrote a**:

    wolrd in div

    hellomy

    The source code after wolrd is opened with chrome becomes (div disappeared.,I don't know the specific reason):

    wolrd in div

    hellomy

    wolrd

  4. Anonymous users2024-02-02

    Typical syntax mistakes are problematic with nested tags.

  5. Anonymous users2024-02-01

    The div cannot be added directly to the table, but can be placed in the td.

  6. Anonymous users2024-01-31

    You can't add div in the table like this, and you can add it in tr.

  7. Anonymous users2024-01-30

    You didn't set the height of the td.,The div must be set.,The div is set to absolute again.,If you don't come out, there's a ghost.。。

    The most important thing is that you set the position property. caused div to pop out.

  8. Anonymous users2024-01-29

    div has position:absolute is detached, remove or td to set the height.

  9. Anonymous users2024-01-28

    Just set the height of the TD to the next level.

  10. Anonymous users2024-01-27

    Why is it that I only thunder and not rain here?

  11. Anonymous users2024-01-26

    Table, beginners who don't know CSS can also use Table to make web pages, using div is more flexible, and the style is separated from the page, and maintenance is also convenient. Beginners use table first, and you must div to improve your ability

  12. Anonymous users2024-01-25

    You can't wrap tr with div in the table, otherwise div will be ignored, and div will disappear when parsing.

    You can print the HTML method of the table, you can clearly see that the div is gone, and your review element is also missing, so you can't find it, so your html table structure is wrong.

    table-tr-th or td-div

    It should be such a relationship.

    Tables can also be nested within a td

    These are basic common sense, you waste a lot of time, that is, there is no foundation, if you want to add tr, you can set a tr of no class, for example, a class is the same class every time you add it, you can use the nextuntil method to get the last one that meets.

    Without further details, wake up for yourself

  13. Anonymous users2024-01-24

    Have you set the positioning of the table to float or absolute???

    Or does the div have a set height?

    View through debugging.

  14. Anonymous users2024-01-23

    There is ambiguity in your words, do you want it to get bigger with the table or don't want it to get bigger?

  15. Anonymous users2024-01-22

    No. Learning ** and div+css can be used in combination, and there are many places where it is not suitable to write with div.

    For example, if you use a div, it's too cumbersome.

    It's much easier and more convenient to write with **.

    So it's advisable to learn both and not fall behind.

  16. Anonymous users2024-01-21

    It will also be used, for example, when you are making a web page, a certain part uses a lot of ** form layout, you can use table to make it. There are times when web page production requires a table layout, then you need to use a table, which is like this now, because the div itself is not styled, when the page does not load CSS, the page looks very messy, and the table is not like this. Hope it helps.

  17. Anonymous users2024-01-20

    No. If you need to list some* data at the time. Table is a good choice. Major portals will also be used.

    But generally don't use ** layout.

  18. Anonymous users2024-01-19

    Useful, table tag is a good tag! The layout is still very useful. It has to be used when it should be used, and div+css will not replace it.

    Advocate div+css because it was too abusive in the early days, and the whole page is a big table, which also has the consequence of ps-direct slicing.

  19. Anonymous users2024-01-18

    I can definitely use it. Otherwise, it can be used when the form is used. . .

  20. Anonymous users2024-01-17

    Don't use ** for a single column, many columns and many rows must be used**, execl and word can't replace each other.

  21. Anonymous users2024-01-16

    Not necessarily! See what you need for the web page!

  22. Anonymous users2024-01-15

    You can change the width of the div to the same width as the table, or you can increase the width of the table.

  23. Anonymous users2024-01-14

    The width of the table is a percentage, so that it scales relative to the div.

  24. Anonymous users2024-01-13

    div, you can understand it as a square box, table you can understand as a ** box.

    The div and table layout methods are the common layout methods of web pages.

    table** is cumbersome, but the compatibility is good.

    div, introduction, clear. However, pay attention to the attribute settings, otherwise it may be deformed!

  25. Anonymous users2024-01-12

    It's all the way the page is laid out.

    Nowadays, the div+css layout is generally used, and many people used to use tables.

    The advantage of div+css layout is that it is more convenient and concise, **less, and it is easier to make and maintain, that is, in some places, different browsers have different compatibility and may have different displays.

    There are many table layouts, and it is a headache to maintain them in the later stage. I have a deep understanding of this.,I just took over a**, I used the table layout.,As a result, the whole page is nested layer after layer**.,There's trtd everywhere.,It's big to see.。

  26. Anonymous users2024-01-11

    The table layout is more limited, the div is more open, the design style is more, the effect is beautiful, the table advantage is that all browsers are compatible with div, and the disadvantage is that the compatibility is very troublesome.

  27. Anonymous users2024-01-10

    div and table are the two most commonly used layout methods on web pages, and table is more intuitive and easy to get started.

    div is not so intuitive, and it usually needs to be combined with css to achieve the desired effect, which is the development trend of the future layout.

    In terms of web page loading speed, divs load faster than tables.

  28. Anonymous users2024-01-09

    The layout saves pages compared to the table layout, and the structure is clearer and clearer.

    The layout makes it easier to modify the layout of the layout, because the layout is written in a separate CSS file, which is much easier to modify, unlike the table to modify a lot of information in the page.

Related questions
22 answers2024-02-09

Of course it's fake, she just deliberately got it when she wanted to reflect the effect of a bad girl when she was filming the MV, it should have been painted, or it was pasted.

4 answers2024-02-09

Without the influence of the computer?? Is that to have an impact on the computer? Your expressive skills need to be improved. >>>More

13 answers2024-02-09

Item crafting. 1, for example, if you buy a Healing Orb, you can drink the above row, <>2, Healing Orb and Cloth Armor can be combined into a Hero Badge. >>>More

12 answers2024-02-09

qt is also a kind of **file,You can go to the next conversion software,What format can be put on the phone, it depends on the type of your phone,You can look at the phone description,You can also try a few different formats。

23 answers2024-02-09

The strongest brain, I've been watching, including the latest season. From a personal point of view. Most of them are true, and there is indeed some injustice, that is, there is a certain amount of moisture. >>>More