Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/72.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 移动设备上的溢出问题_Javascript_Html_Css_Tailwind Css - Fatal编程技术网

Javascript 移动设备上的溢出问题

Javascript 移动设备上的溢出问题,javascript,html,css,tailwind-css,Javascript,Html,Css,Tailwind Css,正如您从屏幕上看到的,我的页面部分有问题,我声明该站点的所有其他溢出部分都工作得很好。我已经尝试了好几次来检查代码,但我不知道它可以是什么。。。另外,将不起作用部分的代码放在下面 <div class="messageDiv w-full h-full flex flex-col justify-start overflow-scroll relative text-xl lg:text-xs"> <!--prototipo di messaggio--

正如您从屏幕上看到的,我的页面部分有问题,我声明该站点的所有其他溢出部分都工作得很好。我已经尝试了好几次来检查代码,但我不知道它可以是什么。。。另外,将不起作用部分的代码放在下面

<div class="messageDiv w-full h-full flex flex-col justify-start overflow-scroll relative text-xl lg:text-xs">
            <!--prototipo di messaggio-->

            <% for(var i=messages.length-1 ; i >= 0 ; i--){ %>
              <% if(messages[i].id_user == userId){ %>

              <div class="flex justify-end items-center">
                <div class="talk-bubble tri-right radius right-in bg-gray-900 text-white w-auto px-5 py-2 mb-2 lg:mb-1 mr-5">
                  <div class="talktext flex flex-col justify-center items-center">

                    <p class="text-left w-full"><%=messages[i].text%></p>
                    <div class="info-message flex justify-start items-center w-full pt-1 mt-1 overflow-hidden">
                      <p class="title text-rigth username"><%=messages[i].username%></p>
                      <i class="fas fa-circle text-white px-2"></i>
                      <i class="far fa-clock title"></i>
                      <p class="title ml-1"><%=messages[i].date.getHours()%>:<%=messages[i].date.getMinutes()%></p>
                    </div>

                  </div>
                </div>
              </div>

              <% } else{ %>
                <div class="flex justify-start items-center">
                  <div class="talk-bubble tri-left radius left-in bg-black text-white w-auto px-5 py-2 ml-5 mb-2 lg:mb-1">
                    <div class="talktext flex flex-col justify-center items-center">

                      <p class="text-left w-full"><%=messages[i].text%></p>
                      <div class="info-message flex justify-end items-center w-full pt-1 mt-1 overflow-hidden flex-no-wrap">
                        <p class="text-giallo text-rigth username"><%=messages[i].username%></p>
                        <i class="fas fa-circle text-white px-2"></i>
                        <i class="far fa-clock text-giallo"></i>
                        <p class="text-giallo ml-1"><%=messages[i].date.getHours()%>:<%=messages[i].date.getMinutes()%></p>
                      </div>

                    </div>
                  </div>
                </div>
              <% } %>
            <% } %>

            <!--end-->
          </div>

= 0 ; 我--{%>

我使用tailwind作为css框架,这就是如何在node.js中猜测项目。 提前谢谢


这与overflow axis相同。

同时感谢您的回复,但是我应该把它放在哪里?把它放在一个您想要滚动的容器中,如下所示:-touch action:pan-y;我试过了,它不起作用。但这里的问题不是touch不起作用,元素不溢出,这是不同的。好像每个人都应该进入div,因此明显重叠。
For mobile devices use:-
touch-action: auto | none | [ [ pan-x | pan-left | pan-right ] || [ pan-y | pan-up|pan-down ] || pinch-zoom ] | manipulation