How to realize this requirement! ! _html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:19:13
Original
898 people have browsed it

My requirement: There are 2 divs: div1 and div2, of which div2 is inside div1. Now I want to add 100 tables in div2. These tables can only be arranged horizontally, and div2 can only have horizontal scroll bars. If There are multiple div2, and only vertical scroll bars can appear in div1. How to implement

Here is my code:

Private Sub Command5_Click()
Dim w1 As String, i As Long
w1 = "

w1 = w1 & "
For i = 1 To 100
' 'These 100 tables can only be arranged horizontally in div2 and cannot be folded!
w1 = w1 & ""
w1 = w1 & ""
w1 = w1 & "
...
"
Next
w1 = w1 & "
"
w1 = w1 & "
"
WB.Document.body.innerHTML = w1
End Sub


Reply to the discussion (solution)

This is a style sheet problem and can be solved by adding styles in div2
It is recommended to ask in the style sheet area or go directly

If table If you know the width and quantity, it's easy to solve. Now the question is how to solve it if the width and quantity are unknown?

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template