我得到了一个大小为32 x 32的图像(即宽度和高度属性)。但是,图像的大小仍为其默认值150 x 150。
查看CSS,我可以看到在父CSS文件中有一个width: auto。当我将其关闭时,图像的大小将调整为32 x 32。
我想在不改变父CSS文件的情况下覆盖它。我该怎么做呢?
注意:我最初尝试了width: none,它不是有效的CSS。
index.html
<td>
<div id="wrapper">
words go her alot of them
</div>
</td>
style.css
#wrapper {
height: 100%;
width: 200px;
overflow: auto;
}
我目前无法使滚动条出现,这是我得到的:
我已经尝试解决这个布局问题一个小时左右了,但没有成功。我只想让我的li扩展到与其内容的高度相匹配,这样margin-bottom就能正常工作。下面是我的代码(注意:这只是一个草稿,所以相关的CSS是通过style属性混合在一起的):
<!-- This uses ASP.NET markup syntax but should still be legible to anyone -->
<h2>Related</h2>
<ul class="list-unstyled owner-list">
@fore
这是我的css:
html {
/* force document to be 200% of window size */
min-height: 200%;
}
body {
height:auto;
margin:0 auto;
}
div#wrapper {
/* so that child divs with floats stay contained */
overflow:hidden;
margin:auto;
min-width:200%;
min-height:200%; /* doesn't work */
background-color:#000;
bor
我想让它在这个div类中有相同的高度(“行”)。我已经读过很多关于这方面的东西了,但是没有什么对我有用的。由于我只是一个网页设计的初学者,我没有什么可做的。如果你能帮我一把,我会非常感激的!
HTML:
<div class="row">
<section id="sectionL">(Mouse pointer) Left-click on a picture to see the name!<br /><br />
<
问题:我无法在Telerik TopPane中将高度设置为auto。我的默认高度值为230 of。
代码:
条件:如果我将“高度”属性设置为“自动”,则会得到以下错误:
Property value is not valid.
如果我点击细节,我会得到:
'auto' cannot be parsed as a unit as there are no numeric values in it. Examples of valid unit strings are '1px' and '.5in'.
问:看起来,在Telerik控件中,汽