------------ S 解决方案 S schreef: 你好 我的标题栏没有排队。专家的简单问题,但我还没有。 ;) http://www.dorseygraphics.com/toolbar_1a / http:/ /www.dorseygraphics.com/toolbar_1a/css/styles.css 任何想法? 谢谢, --- --------- S Okeh, 请看: #controlSection { ~snip~ margin-top:-14px; } 我认为这让IE变得更加自卑将盒子移动14个像素到其位置的顶部。所以专注于 那部分。 但请记住,你只能在页面上使用一次id,你应该将#controlSection改为 ..controlSection和chage< div id =" controlSection"> to< div class =" controlSection"> 对于其余部分,这是非常好的,但还有一个提示。 你可以缩短代码如下: br /> 身体{ margin-left:0px; margin-top:0px; margin-right:0px ; 保证金底部:0px; } 至: 身体{ 保证金:0; } 如果是零则不需要单位 保证金:2px 4px 6px 8px cab可读取像这样:保证金:右上角左下方(顺时针!) 和代码如: border-left-width:1px; border -right-width:1px; border-bottom-width:1px; border-left-style:solid; border-right -style:solid; border-bottom-style:solid; border-left-color:#8a8a8a; border-right-颜色:#8a8a8a; border-bottom-color:#8a8a8a; to: border:1px solid#8a8a8a; border-top:none; 这将保留你的代码comacte和可理解 祝你好运 - Niek 感谢以前的输入。 我的代码仍然遇到问题我的项目是 在内容之间有差距的浏览器中渲染和标题。另外, 我的链接被推到右边,而不是左对齐 a 4像素保证金。 http://www.dorseygraphics.com/toolbar_1a/ http://www.dorseygraphics.com/toolbar_1a/css/styles.css 我在这里很困惑。任何帮助表示赞赏。 谢谢, ----------------- Steve S写道:感谢以前的输入。 我仍然遇到问题我的代码在于我的项目在浏览器中呈现,内容和标题之间存在间隙。此外,我的链接被推向右边,而不是左边是一个4像素边距。 http://www.dorseygraphics.com/toolbar_1a/ http://www.dorseygraphics.com/toolbar_1a/css/styles.css 我在这里很困惑。感谢任何帮助。 谢谢, -----------------史蒂夫 嘿, 你需要带走评论标记,yjat应该把你排除在外,所以 就像........ .... ..controlSection { 宽度:128px; background-color:#ebebeb; font-family:Arial,Helvetica,sans-serif; font-size:10px; text-align:left; text-indent:4px; border:1px solid#8a8a8a; border-top:none; / * margin-顶部:-14px; * / } 和.......... ..controlSection ul li a { / * margin-left:-40px; * / } 拿出/ *和* /'s你应该好好去:-) - 下巴下巴 辛克莱 Hello My title bars are not lining up. Simple problem for an expert, but I''m notone yet. ;) http://www.dorseygraphics.com/toolbar_1a/ http://www.dorseygraphics.com/toolbar_1a/css/styles.css Any ideas? Thanks, ------------S 解决方案 S schreef: Hello My title bars are not lining up. Simple problem for an expert, but I''m not one yet. ;) http://www.dorseygraphics.com/toolbar_1a/ http://www.dorseygraphics.com/toolbar_1a/css/styles.css Any ideas? Thanks, ------------SOkeh,Look at:#controlSection {~snip~margin-top: -14px;} I think that that makes IE deceide to move the box 14 pixels to the top of its location. So concentrate onthat part. But remember that you can use an id only once on a page, zo you should shange #controlSection to..controlSection and chage <div id="controlSection"> to <div class="controlSection">For the rest it''s pretty okeh, one more hint though.You can shorten code like:body {margin-left: 0px;margin-top: 0px;margin-right: 0px;margin-bottom: 0px;}to:body {margin: 0;}No need for units if it''s zeromargin: 2px 4px 6px 8px cab be read like this: margin: top right bottom left (clockwise!)and code like:border-left-width: 1px;border-right-width: 1px;border-bottom-width: 1px;border-left-style: solid;border-right-style: solid;border-bottom-style: solid;border-left-color: #8a8a8a;border-right-color: #8a8a8a;border-bottom-color: #8a8a8a;to:border: 1px solid #8a8a8a;border-top: none;That will keep your code comacte and comprehensibleGood luck --NiekThanks for previous input. I''m still encountering problems with my code in that my items arerendering in browsers with gaps between the content and the headers. Also,my links are being pushed to the right in stead of being left justified witha 4 pixel margin. http://www.dorseygraphics.com/toolbar_1a/ http://www.dorseygraphics.com/toolbar_1a/css/styles.css I''m pretty confused here. Any help is appreciated. Thanks, -----------------Steve S wrote: Thanks for previous input. I''m still encountering problems with my code in that my items are rendering in browsers with gaps between the content and the headers. Also, my links are being pushed to the right in stead of being left justified with a 4 pixel margin. http://www.dorseygraphics.com/toolbar_1a/ http://www.dorseygraphics.com/toolbar_1a/css/styles.css I''m pretty confused here. Any help is appreciated. Thanks, -----------------SteveHey, You need to take away the comment marks, yjat should sort you out, solike ............ ..controlSection {width:128px;background-color: #ebebeb;font-family: Arial, Helvetica, sans-serif;font-size: 10px;text-align: left;text-indent: 4px;border: 1px solid #8a8a8a;border-top: none;/*margin-top: -14px;*/}and.......... ..controlSection ul li a {/*margin-left: -40px;*/} Take out the /* and the */''s and you should be good to go :-) --chin chinSinclair 这篇关于谁可以检查我的代码?我的CSS页面上的小问题。 。 。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 10-26 22:09