ul {"/>
首页 \ 问答 \ 为什么隐藏的可见性必须在css中添加绝对位置?(Why the visibility hidden must add position absolute in css?)

为什么隐藏的可见性必须在css中添加绝对位置?(Why the visibility hidden must add position absolute in css?)

这是我的代码:

<html>
<head>
<style type="text/css">
 ul {list-style:none; margin:0; padding:0;   }
  li{ float:left;  background-color:#444444; text-align: center; width: 100px;  
  border-right:1px solid white; color: white; }

li ul li { float: none;
         border-top:1px solid white;}

         li ul { visibility:hidden; position: absolute;}
        li:hover ul {visibility:visible;}
  </style>
</head>
<body>
     <ul>
       <li>home</li>
       <li id="up">pages
       <ul class="down">
       <li>a</li>
       <li>b</li>
       <li>c</li>                  
      </ul>
       </li> 
     </ul>    
</body>
</html>

在里面部分,如果我只是把可见性:隐藏起来,它不会隐藏起来,那里还有一列,为什么?


This is my code:

<html>
<head>
<style type="text/css">
 ul {list-style:none; margin:0; padding:0;   }
  li{ float:left;  background-color:#444444; text-align: center; width: 100px;  
  border-right:1px solid white; color: white; }

li ul li { float: none;
         border-top:1px solid white;}

         li ul { visibility:hidden; position: absolute;}
        li:hover ul {visibility:visible;}
  </style>
</head>
<body>
     <ul>
       <li>home</li>
       <li id="up">pages
       <ul class="down">
       <li>a</li>
       <li>b</li>
       <li>c</li>                  
      </ul>
       </li> 
     </ul>    
</body>
</html>

In the li ul section if i only put visibility:hidden, it does not hide up there is still a column there, why?


原文:https://stackoverflow.com/questions/13638386
更新时间:2023-12-07 11:12

最满意答案

Android应用程序包文件。 每个Android应用程序都被编译并打包在一个文件中,该文件包含应用程序的所有代码(.dex文件),资源,资产和清单文件。 应用程序包文件可以具有任何名称,但必须使用.apk扩展名。 例如:myExampleAppname.apk。 为方便起见,应用程序包文件通常称为“.apk”。


Android application package file. Each Android application is compiled and packaged in a single file that includes all of the application's code (.dex files), resources, assets, and manifest file. The application package file can have any name but must use the .apk extension. For example: myExampleAppname.apk. For convenience, an application package file is often referred to as an ".apk".

相关问答

更多
  • 好的,我没有测试过,但解决办法可能是在签名前向APK添加额外的文件。 您可以从命令行自动执行此操作: $ ant release $ zip -r bin/MyApp-unsigned.apk $ jarsigner -verbose -keystore -storepass bin/MyApp-unsigned.apk $ zipalign -v 4 bin/MyApp-unsigned.apk bin/MyApp ...
  • 使用adb 。 使用adb pull ,当设备连接USB时,可以将文件从设备复制到系统。 当然,您还需要正确的权限才能访问您的文件所在的目录。如果不是,您将需要首先使用设备。 Use adb. With adb pull you can copy files from your device to your system, when the device is attached with USB. Of course you also need the right permissions to access ...
  • 预装的应用程序在/system/app文件夹中。 用户安装的应用程序在/data/app 。 我想你不能访问,除非你有一个rooted手机。 我在这里没有无根手机,但尝试这个代码: public class Testing extends Activity { private static final String TAG = "TEST"; @Override public void onCreate(Bundle savedInstanceState) { sup ...
  • 实际上,apk文件只是一个zip存档,所以你可以尝试将该文件重命名为theappname.apk.zip ,并用任何zip实用程序(例如7zip)解压缩。 androidmanifest.xml文件和资源将被提取并可以被查看,而源代码不在包中 - 只是编译的.dex文件(“Dalvik Executable”) Actually the apk file is just a zip archive, so you can try to rename the file to theappname.apk.zi ...
  • 使用zip是非常安全的(直到在未来的Android版本中引入了一些重大变化)。 你可以使用aapt ,但它不接受漂亮的递归标志。 您可以查看提取共享库的系统代码 。 没有魔法,它打开ZIP(aka APK)文件的内容表,并查找与支持的ABI匹配的文件。 Using zip is quite safe (until some breaking change is introduced in a future version of Android). You could work with aapt, but ...
  • 也许Android库是你正在寻找的。 这是一个可以放置一些通用代码并将其包含在多个应用程序(apks)中的地方。 请参阅有关库项目的文档。 Perhaps an Android Library is what you are looking for. This is a place where you can put some common code and include it in multiple applications (apks). See this documentation on libra ...
  • Android应用程序包文件。 每个Android应用程序都被编译并打包在一个文件中,该文件包含应用程序的所有代码(.dex文件),资源,资产和清单文件。 应用程序包文件可以具有任何名称,但必须使用.apk扩展名。 例如:myExampleAppname.apk。 为方便起见,应用程序包文件通常称为“.apk”。 Android application package file. Each Android application is compiled and packaged in a single fi ...
  • @ user1524658,我想你试图签署该应用并导出它。 确保正确创建此证书并使用任何其他Android应用程序尝试此证书,并查看该应用程序中是否有相同的证书。 由于它是从eclipse直接安装到设备,因此apk创建没有问题。 @user1524658, I think you tried to sign the app and export it. Make sure this certificate is created properly and try this certificate with a ...
  • Kotlin可以编译成java类文件格式,因此它是:.kt文件 - > .class文件 - > classes.dex - > .apk文件。 它仅在第一步中与Java到APK工具链不同,我以给定链接的格式编写了一个简单的解释: Kotlin汇编 你的代码是用kotlin编写的。 但是,kotlin代码的编译和运行方式与Web应用程序相同吗? 用kotlin编写的Android应用程序的编译过程与其他Java应用程序有很大不同。 但它以同样的方式开始:使用kotlinc命令将您的kotlin源代码文件编译 ...
  • 我用apk文件遇到的唯一依赖项是来自设备的框架。 如果您正在处理Play中提供的标准应用程序,那么它通常包含其自己的包中所需的所有内容。 一些自定义版本如亚马逊Kindle Fire,Barns和Noble Nook等已经构建了自定义启动器和其他服务,然后通过其框架提供其他功能。 framework-res.apk通常存储在/ system / framework位置。 您可以从设备中提取它并将其放在%userprofile%/〜的apktool文件夹中。 Apktool(我假设这是你正在使用的工具之一)然 ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)