首页 > 编程语言 >短视频app源码,自动滚动条挡住 div内容

短视频app源码,自动滚动条挡住 div内容

时间:2023-09-25 14:23:52浏览次数:32  
标签:app tablebox height 滚动条 源码 dy div

短视频app源码,自动滚动条挡住 div内容

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>IE下横向内容超出宽度,自动滚动条也不会挡住表格内容</title>
<style type="text/css">
.tablebox{width:500px; overflow:hidden;  margin-left:0px; margin-top:0px; position:relative; z-index:0;}
.dy{border:1px solid #999999; min-width:500px;  border-bottom:none; margin-top:11px;}
.dy td{text-overflow:ellipsis; word-break:keep-all; white-space:nowrap; }
 
.dy_top{height:32px; background:#E3E3E3; border-right:1px solid #ffffff; width:136px; text-align:center; line-height:32px; font-weight:bold;}
.dy_td{border-bottom:1px solid #a1a1a1; height:31px; text-align:center; line-height:31px;}
 
</style> 
<script type="text/javascript" src="http://localhost:9086/inc/script/jquery1.3.js"></script>
<script type="text/javascript">
$(document).ready(function(){
var addHeight = 0;
if($("#j_tablebox").get(0).scrollWidth > $("#j_tablebox").get(0).offsetWidth)
addHeight = 18;
$("#j_tablebox").css("height",($("#j_tablebox").get(0).scrollHeight+addHeight)+"px");
$("#j_tablebox").css("overflowY","hidden");
$("#j_tablebox").css("overflowX","auto");
});
</script>
</head>
 
<body>  
<div class="tablebox" id="j_tablebox">
<table border="0" class="dy" cellspacing="0" cellpadding="0">
<!-- 表头 -->
<tr>
<td class="dy_top">L1</td>
<td class="dy_top">L2</td>
<td class="dy_top">L3</td>
<td class="dy_top">L4</td>
</tr>
<tr>
<td class="dy_td">fdsafdsafdsa</td>
<td class="dy_td">fdsafdsaffdsafdsafdsafdsafdsafdsafdsafdsafdsa</td>
<td class="dy_td">fdsafdfdsafdsafdsadsa</td>
<td class="dy_td">fdsafdsa</td> 
</tr>
</table>
</div> 
</body>
</html>

​以上就是 短视频app源码,自动滚动条挡住 div内容,更多内容欢迎关注之后的文章

 

标签:app,tablebox,height,滚动条,源码,dy,div
From: https://www.cnblogs.com/yunbaomengnan/p/17727838.html

相关文章

  • 成品直播源码推荐,Flutter波浪进度条WaveProgressBar
    成品直播源码推荐,Flutter波浪进度条WaveProgressBar第一步:添加以下代码到你的pubspec.yaml文件 dependencies: waveprogressbar_flutter:"^0.1.1"​第二步:导包,添加以下代码到你要使用的文件下 import'package:waveprogressbar_flutter/waveprogressbar_flutter.dart'......
  • HashMap源码解析
    HashMap简介HashMap是基于哈希表的Map接口的非同步实现。此实现提供所有可选的映射操作,并允许使用null值和null键,但最多只允许一条记录的键为null。此类不保证映射的顺序,特别是它不保证该顺序恒久不变。其内部通过单链表解决冲突问题,容量不足(超过了阀值)时,同样会自动增长。HashMap是......
  • ArrayList源码解析
    ArrayList是基于List接口,大小可变数组的实现。实现了所有可选列表操作,并允许包括null在内的所有元素。除了实现List接口外,此类还提供一些方法来操作内部用来存储列表的数组的大小。下面我们来分析ArrayList的源代码,ArrayList继承体系结构如下:publicclassArrayList<E>extend......
  • Rust+appium App自动化测试demo
    1.新建工程打开RustCover,新建工程如下:修改Cargo.toml文件如下:[package]name="test_demo"version="0.1.0"edition="2021"#Seemorekeysandtheirdefinitionsathttps://doc.rust-lang.org/cargo/reference/manifest.html[dependencies......
  • 波场(Tron)USDT 合约授权(Approve)以及授权转账(TransferFrom)
    授权(Approve)privatestaticasyncTask<string>ApproveAsync(stringprivateKey,stringspenderAddress,decimalamount){ conststringcontractAddress="TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t";//合约地址 varrecord=TronServiceExtension.GetRecor......
  • Spring扩展接口(1):ApplicationContextInitializer
    在此系列文章中,我总结了Spring扩展接口,以及各个扩展点的使用场景。并整理出一个bean在spring中从被加载到初始化到销毁的所有可扩展点的顺序调用图。这样,我们也可以看到bean是如何一步步加载到spring容器中的。ApplicationContextInitializerorg.springframework.context.App......
  • 理解并掌握C#的Channel:从使用案例到源码解读(一)
    引言在C#的并发编程中,Channel是一种非常强大的数据结构,用于在生产者和消费者之间进行通信。本文将首先通过一个实际的使用案例,介绍如何在C#中使用Channel,然后深入到Channel的源码中,解析其内部的实现机制。使用案例一:文件遍历和过滤在我们的使用案例中,我们需要遍历一个文件夹及......
  • Java LinkedList与ArrayList源码解析:根本区别和表面区别的详解
    在Java中,LinkedList和ArrayList是两个常见的集合类。它们都实现了List接口,但它们在实现方式上有很大的区别。本篇博客将详细解析LinkedList和ArrayList的源码,解释它们的根本区别和表面区别,并提供详细的代码解释。LinkedList与ArrayList的根本区别:数据结构:LinkedList是基于链表......
  • threejs源码
    剖分管道形状面地表文字水体相交光线三维实体材质运动svg动画输出......
  • Angular APP_INITIALIZER Injection Token 的使用方法介绍
    import{APP_INITIALIZER}from'@angular/core'这行代码在Angular中的作用是导入名为APP_INITIALIZER的常量,它来自Angular核心模块@angular/core。APP_INITIALIZER是一个重要的Angular特性,它用于执行一系列初始化操作,通常用于配置应用程序之前执行一些必要的任务。......