size 相关问题

计算中的大小可以指各种维度:以位为单位的大小,以字节为单位,以像素为单位,在内存中,在磁盘空间中等。请不要在帖子中使用此标记 - 它太通用,无法对您的问题进行有用的分类。

Swift - 如何获取视频尺寸?

我正在开发一个视频编辑应用程序,其中每个视频都以这样的方式进行平方,视频的任何部分都不会被裁剪。为此,在纵向视频的情况下,它包含左侧的黑色部分&

回答 3 投票 0

WHM 无法更改 WordPress 最大上传大小

我在 WHM 环境中安装了多个 Wordpress。我的 WHM PHP(5.6) 最大上传大小设置为 100MB,PHP 最大 POST 大小设置为 150MB。我还检查了 MultiPHP INI 编辑器,最大上传大小是...

回答 3 投票 0

Android 模拟器中的小字体

有时我注意到 Android 模拟器以非常小的字体开始。这似乎是随机发生的。其他时候它有正常的字体大小。 我使用ADT 10.0.1。 你知道问题出在哪里吗?

回答 3 投票 0

适合 <iframe> 以正确调整动态 HTML 的大小

看这里: 我只想打开黄色部分,背景中的其余部分是不必要的,我该怎么做? 打开iframe的代码: ... 看这里: 我只想打开黄色部分,背景中的其余部分是不必要的,我该怎么做? 打开iframe的代码: <div class="col-12 mb-3"> <a class="nav-link text-white" href="javascript:void(0);" onclick="openModal('emailVerification', '../pages/email-verification.html')"> <button id="verifyEmailButton" type="button" class="btn btn-success" style="width: 300px;">Bekräfta din e-post</button> </a> </div> <div class="modal fade" id="emailVerificationModal" tabindex="-1" role="dialog" aria-labelledby="emailVerificationModalLabel" aria-hidden="true"> <div class="modal-dialog modal-dialog-scrollable modal-xl" role="document"> <div class="modal-content border-0"> <button style="background-color: #2e4873; color: white;;" type="button" class="btn btn-info close small-close-btn" aria-label="Close" data-dismiss="modal" onclick="closeEmailVerificationModal()">&times;</button> <br> </button> <div class="modal-body"> <iframe id="emailVerificationIframe" src="" frameborder="2" style="width: 100%; height: 80vh;"></iframe> </div> </div> </div> </div> & 带有 iframe 内容的 HTML: <div class="main"> <div class="div-1"> <div class="div-2"> <img src="../social/icons/mail.png" width="70px" /> <h3>Verifiera din e-post adress</h3> <p id="ppp"> Du är nästan där! Vi har skickat ett mail till: <span style="font-weight: bold;" class="d-sm-inline d-none" id="userID"><span id="userName"></span></span> </p> <p> Klicka bara på länken i det e-postmeddelandet för att slutföra din registrering. Om du inte set det, kan du behöva <span id="bold">kolla din skräppost.</span </p> </div> <p id="message"></p> <div class="buttondiv"> <button style="background-color: #2e4873;" type="button" class="btn btn-info"onClick="resend()">Skicka igen</button> <button style="background-color: #2e4873;" type="button" class="btn btn-info" onClick="reload()">Bekräfta</button> </div> <div id="info-message" class="alert alert-success alert-dismissible text-white" role="info" style="display: none;"> <span class="text-sm">Nu har vi skickat verifikationslänken igen.</span> </div> <div id="warning-message" style="display: none;"> <span class="text-sm">Du har inte bekräftat din e-post adress än.</span> </div> <div id="success-message" style="display: none;"> <span class="text-sm">Din e-post adress är nu bekräftad.</span> </div> </div> </div> 我有多个这样制作的模态,确实需要调整它们的大小。 这是一个如何使用具有透明背景的对话框的简单示例 您可以在这里找到文档:https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog const dialog = document.querySelector("dialog"); const showButton = document.querySelector("dialog + button"); const closeButton = document.querySelector("dialog button"); // Le bouton "Afficher la fenêtre" ouvre le dialogue showButton.addEventListener("click", () => { dialog.showModal(); }); // Le bouton "Fermer" ferme le dialogue closeButton.addEventListener("click", () => { dialog.close(); }); ::backdrop { opacity: 0; } <main> <dialog> <p>Hello World</p> <button autofocus>Close</button> </dialog> <button>Show Dialog</button> <p>"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum." Section 1.10.32 du "De Finibus Bonorum et Malorum" de Ciceron (45 av. J.-C.) "Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?" Traduction de H. Rackham (1914) "But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but because occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences, or one who avoids a pain that produces no resultant pleasure?" </p> <main>

回答 1 投票 0

Python:如何获取当前命名空间中所有对象的大小?

我有一些代码正在从我自己的包中运行,并且该程序使用的内存(60GB)比应有的要多得多。如何打印当前名称空间中所有对象的大小(以字节为单位)...

回答 3 投票 0

Java/Swing:如何将两者结合起来 - 固定大小和滚动能力 - 对于 JScrollPane(包括 JTextArea)

所以我创建了一个 JTextArea (在我的例子中是 TextArea - 覆盖包含换行符的追加和 setText 方法),以可视化最终用户在什么时间发生了什么。 我有: 空间有限 维...

回答 1 投票 0

C# FileStream:写入大文件的最佳缓冲区大小?

假设我正在将几个文件写入磁盘,大小在 2MB 到 5GB 之间。 FileStream 的合理缓冲区值是多少? 使用几兆字节的缓冲区大小是否明智,或者我应该...

回答 4 投票 0

如何知道 MATLAB 中变量的大小

我在 MATLAB 中有变量,我已经使用 class() 检查了它们的类,但我也想知道它们在内存中占用的大小。更准确地说,我知道它们是双重类型,我想...

回答 6 投票 0

在 Android Studio 中更改回默认字体大小

我不小心在Android Studio中将字体大小设置得太大了。我现在无法使用任何功能,包括滚动。我没有启用通过 Ctrl+鼠标滚轮更改字体大小。我怎样才能改回d...

回答 1 投票 0

通过 Visual Studio 进行 C++ 调试 - 矢量大小变化的观察点

我想用我的向量探索这些变化。因此我想在向量大小上设置一个点。因此,Visual Studio 将让我在每次大小更改后查看向量中的内容。我怎样才能...

回答 3 投票 0

设置约束后获取实际视图尺寸

如何获取实际视图尺寸?现在我从 gameView.frame.size 获取它。它确实给了我设置的正确值,但它没有给我实际的大小。 例如,在我的故事中...

回答 1 投票 0

获取文件夹大小的简单方法(ObjC/Cocoa)?

现在我正在使用此代码来获取文件夹的大小: NSArray *内容; NSEnumerator *枚举器; NSString *路径; 内容= [[NSFileManager defaultManager] subpathsAtPath:folderPath]; 枚举...

回答 7 投票 0

为什么要循环接收数据长度?

我已经看到通过套接字接收数据的代码,其中包含两个循环: 接收数据长度 自己接收数据 ...例如(请参阅这些答案): 套接字无法正常工作,因为它应该有帮助!

回答 1 投票 0

我收到“无法设置属性..只有一个吸气剂”错误(javascript画布宽度)

更完整地,我得到: “无法设置只有 getter 的 # 属性 clientWidth” (显然我可以有一个 HTML 元素,但这是一个最小化的 ex...

回答 1 投票 0

为什么在leetcode中for循环结构条件判断中使用.size()计算数组长度会超时?

这是原来的问题 下面是我的超时代码: 类解决方案{ 民众: int removeElement(向量& nums, int val) { 整数计数=0; for(int i=0;i 下面是我的超时代码: class Solution { public: int removeElement(vector<int>& nums, int val) { int count=0; for(int i=0;i<nums.size();i++){ if(nums[i]==val){ for(int j=i;j+1<nums.size();j++){ nums[j]=nums[j+1]; count+=1; } i--; } } return nums.size()-count; } }; 我尝试用一个变量来记录nums.size()的值,并将其作为for循环结构的条件判断。就成功了。 但是我还是想知道.size()的使用时间以及它的内部代码和时间复杂度。 class Solution { public: int removeElement(vector<int>& nums, int val) { int count=0,size=nums.size(); for(int i=0;i<size;i++){ if(nums[i]==val){ for(int j=i;j+1<size;j++){ nums[j]=nums[j+1]; count+=1; } i--; size--; } } return size; } }; vector::size的时间复杂度是恒定的。但毫不奇怪,调用函数 5000 次 (size()) 或读取变量 5000 次 (size) 会有差异。 实际上你很幸运,测试仅使用大小不超过 100 的向量,因为你的算法效率不高:在最坏的情况下它的时间复杂度为 O(𝑛²)。为了说明这一点,如果输入 nums 有 100 个元素,并且它们都等于给定的 val,那么你的算法将移动 99 个元素,然后是 98 个元素,然后是 97 个,...,所以总共会有1+2+3+..+99 次运动,即 4950 次。 代码挑战中有一个提示:“元素的顺序可能会改变。”。这意味着,您可以从向量(的活动部分)中获取 last 值并用它覆盖该事件,而不是移动 val 出现后出现的所有值。然后减少 size 即可继续。这消除了您拥有的内部循环。 这是这个想法的剧透实现: class Solution { public: int removeElement(vector& nums, int val) { int size = nums.size(); for (int i = 0; i < size; i++) { if (nums[i] == val) { size--; nums[i] = nums[size]; i--; } } return size; } };

回答 1 投票 0

Pygame 窗口大小错误

当我运行此代码时: 导入pygame 屏幕 = pygame.display.set_mode((0,0),pygame.FULLSCREEN) img = pygame.image.load("无标题.png") 运行=真 运行时: 对于 pygame.event.get() 中的 _...

回答 1 投票 0

为什么 MathJax html-css 中的文本在同一分数部分会出现不同字母大小的分数,以及如何防止这种情况?

目前我正在尝试使用 MathJax 2 将一些公式放入 doxygen (1.8.20) 生成的 HTML 文档中 不知何故,我不明白为什么在 ext{TEST} 中所有字母的大小相同,但在 rac 中...

回答 1 投票 0

使用Swiper js时出现字体大小问题

我正在学习如何使用swiper JS并通过制作轮播进行练习。不幸的是,我遇到了字体大小问题。我在测试移动设备时注意到了这个问题。每当我从...

回答 1 投票 0

如何通过使用 size 函数 not (sizeof) 来获取已经声明的数组中的元素数量

如何使用 size() 函数而不是 sizeof() 获取已声明数组中的元素数量? 我通过使用 sizeof()、begin() 和 end() 函数来做到这一点,但是 size()

回答 1 投票 0

更改控制台窗口的大小会引发 ArgumentOutOfRangeException

我正在尝试在 C# 控制台应用程序中设置控制台窗口的大小。我收到 ArgumentOutOfRangeException 并显示以下消息: 该值必须小于控制台当前的最大w...

回答 5 投票 0

© www.soinside.com 2019 - 2024. All rights reserved.