水平尺和清除的奇怪问题:两者? [英] Strange issue with Horizontal Rule and Clear:Both?

查看:73
本文介绍了水平尺和清除的奇怪问题:两者?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

因此,我偶然发现了一个非常奇怪的问题,这使我烦恼不已.因此,我正在Visual Studio 2010中使用asp.net和c#开发网站.我的页面完全按照我希望的方式工作,然后我决定要向RadMultiPage添加水平规则.我将其拖到VS的设计页面上,然后单击将其拖到其他位置,突然间,它似乎为我的控件的 ALL 添加了边距或填充.我多次尝试了ctrl-z,直到撤消了将水平标尺拖到页面上之前所做的事情,并且没有任何改变.因此,我进行了一些调查,并在使用google chromes开发人员编辑器时似乎禁用了clear:both;我的母版页底部的div框上具有css属性,可在浏览器中对其进行修复.但是,当我删除样式表中的css属性时,什么也没有发生,也没有同时删除div框,也没有更改clear:左,右,无或继承.这些问题在Google Chrome和IE9中都在发生.有人有什么想法吗?这太令人沮丧了!!!任何帮助将非常感激.谢谢.

Hello,

So I have just stumbled across a very strange issue that is bugging the hell out of me. So I am developing my site with asp.net and c# within visual studio 2010. My pages were working exactly how I wanted them to and then I decided that I wanted to add a horizontal rule to my RadMultiPage. I dragged it onto the design page of VS and then I clicked on it to drag it somewhere else and all of a sudden it seemed to add margins or padding to ALL of my controls. I tried ctrl-z multiple times until I was undoing things that I did before I dragged the horizontal rule onto the page and nothing changed. So I then did a little investigation and while using google chromes developer editor it seems that if I disable the clear: both; css property I have on a div box at the bottom of my master page it fixes it in my browser. However, when I get rid of the css property in my stylesheet nothing happens, neither does getting rid of the div box all together, or changing the clear: both; to left, right, none, or inherit. These issues are happening in both google chrome and IE9. Does anyone have any ideas? This is terribly frustrating!!! Any help would be much appreciated. Thanks.

推荐答案

所以我终于找到了问题所在.这是非常明显的,只是被忽略了.但是我会分享解决方案,以防万一有人遇到相同的问题.

因此,Horizo​​ntal规则只是更改了"*" css类,所以一旦我将这些css设置更改回零,一切都很好.就是这么简单.
So I finally figured out the problem. Which was very obvious, just overlooked. But I though I''d share the solution just incase anyone is confronted with the same problem.

So the Horizontal rule just changed the "*" css class, so once I changed those css settings back to zero''s all is good. Was that simple.


这篇关于水平尺和清除的奇怪问题:两者?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆