padding 相关问题

额外的空间插入到内存结构中以实现地址对齐 - 或者框架与HTML元素内容之间的额外空间 - 或者 - 使用格式化打印命令打印输出值时的额外空格或零,例如,在C中,printf * -family功能。



杂货:Cupertinoswitch填充

Cupertino开关的每一侧都在4PX填充物中构建,默认尺寸为51x31(59x39带填充物)。 Cupertinoswitch的代码() const double _ktrackheight = 31.0; const double _ktrackWidth = ...

回答 1 投票 0

C结构填充。嵌套结构

结构y { int int int_one; int int_two; void *指针; } struct x { char char_one; char char_two; 结构y y__tructures [20]; } 32和64位机器上的填充物不同。我...

回答 2 投票 0



Java AES 加密 - 如何修复 IllegalBlockSizeException

我有两种Java方法,一种用于加密,另一种用于解密。我想用主密码加密/解密密码。但是当我尝试解密加密的密码时,我得到......

回答 1 投票 0

为什么VC++中的#pragma pack使用堆栈?

我在msdn中读到这篇文章,我想知道为什么有一个内部编译器堆栈保存对齐?我的意思是只有 5 个值可以设置为包装对齐,为什么你想...

回答 1 投票 0

将 CSV 字符串填充为 6 个双引号值

我正在开发一个项目,用户可以通过表单选择最多 6 个类别(我正在使用 ExpressionEngine)。输出是这样的: “类别 1”、“类别 2”、“类别 3” ...所以...

回答 3 投票 0

到处使用 [[no_unique_address]] 会有什么缺点?

[[no_unique_address]] 允许更有效地布局结构,有时将成员放入前面成员的尾部填充中。我们都喜欢节省 RAM 并拥有更高效缓存的结构...

回答 1 投票 0

在 SwiftUI 中将图像添加到 TextField/SecureField,为占位符文本添加填充

我在 SwiftUI 中创建了一个文本字段和一个安全文本字段,但我不知道如何将图像添加到 SwiftUI 中的文本字段/安全文本字段中。 SwiftUI 的在线文档并不多,例如......

回答 5 投票 0

如何将结构打包到结构中

让我更清楚, 我想填充内部结构我该怎么做..?例子- 其中结构 b 是 结构体b{ u_int32_t aa; u_int32_t bb; }; 结构体c{ u_int64_t cc; }; 现在,我的编译器是

回答 2 投票 0

如何增加 HTML 中表格列之间的距离?

假设我想创建一个单行表格,每列之间有 50 个像素,但顶部和底部填充 10 个像素。 我该如何在 HTML/CSS 中做到这一点?

回答 7 投票 0

如何让这段文字保持一致?

我正在尝试显示一行数据,我想要整齐地显示数据。我使用了 ,但使用 tab 不一致: 电流输出(大致): 地点 城市 价格

回答 1 投票 0

如何使所有这些文本一致排列?

我正在尝试显示一行数据,我想要整齐地显示数据。我使用了 ,但使用 tab 不一致: 电流输出(大致): 地点 城市 价格

回答 1 投票 0

Div 滚动使 padding-bottom 消失

我有一个具有以下结构的网站: 成分 我有一个具有以下结构的网站: <div class="main-outer"> <div class="main-inner"> <div class="test"> components </div> </div> </div> div 'test' 调用不同的组件。 我正在尝试使其高度响应,这样如果组件具有“高度:100%”,它应该随着屏幕的增长而增长。 但是,如果我在组件中设置最小高度,则滚动(来自 main-outer div)应该从该高度出现。 我的问题是:当屏幕达到该最小高度时,我在'主内部类'中设置的填充底部(或边距)消失......我该如何解决这个问题? 我这里有一个例子: https://jsfiddle.net/4o1j2zmn/1/ 编辑:我需要比“测试”的div更高的边距,因为当我调用许多组件时,我想让边距成为全局的 我检查了你的代码,我认为“.main-outer”填充工作正常。这是“.main-inner”边距和“.test”类的固定高度的问题。我已将您的边距属性从“.main-inner”转移到“.test”类,并将“.test”高度设置为自动,以便它将根据内容进行调整,并显示距父容器外边缘的边距。请检查并尝试以下代码片段: .main-outer { padding: 0 50px; height:100vh; overflow-y: auto; overflow-x: hidden; background-color: blue; } .main-inner { height: 100%; box-sizing: border-box; } .test{ display: block; content: ''; height: auto; background-color: red; margin: 50px 0 50px 0; } <div class="main-outer"> <div class="main-inner"> <div class="test"> http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ </div> </div> </div> 对于任何在未来遇到这个问题的人来说,对我有用的修复方法是删除显式的 .main-inner 的 height: 100%;。 注意:min-height: 100%;似乎也会导致同样的问题。 .main-outer { padding: 0 50px; height:100vh; overflow-y: auto; overflow-x: hidden; background-color: blue; } .main-inner { /* height: 100%; */ box-sizing: border-box; } .test{ display: block; content: ''; height: auto; background-color: red; margin: 50px 0 50px 0; } <div class="main-outer"> <div class="main-inner"> <div class="test"> http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ http://www.himanshu-joshi.com/ </div> </div> </div>

回答 2 投票 0

应用默认 CSS 属性的浏览器

大家好这是我在这个平台上的第一个问题!目前我正在开发一个网站项目,我的 div 容器遇到一些问题。我已经在我的容器中插入了一个图像,我...

回答 1 投票 0

C++ 编译器对齐 - 只有字符,没有填充

在 VC++ 上,为什么编译器仅在使用非 char 数据类型时填充结构? IE。 结构测试 { 字符a[7]; }; 结构体TEST2 { __int32a; 字符b[7]; }; 大小(测试); // 返回 7 尺寸...

回答 1 投票 0

什么允许普通可复制类型具有填充位

查看了许多关于 C++ 中对象的低级操作的讨论(从字符数组创建,std::memcpy,...),我想知道它如何适用于具有填充位的类: #包括...

回答 1 投票 0

边距/填充不起作用

我在一个主 div 中有 2 个主 div。我尝试添加大量的边距和填充来进行测试,但它只是有效。为什么我不能在它们之间添加边距/填充?请帮忙。 超文本标记语言 <...

回答 4 投票 0

最新问题
© www.soinside.com 2019 - 2025. All rights reserved.