简体   繁体   English

为什么我的文本没有在我的外部分区中浮动?

[英]Why my textes does not float right in my outer division?

As you see in my code, my items(I mean, Links division) does not, float right in the outer division(I mean, PopularSearch division), the styles for both division, are shown below.正如您在我的代码中看到的,我的项目(我的意思是,链接部门)没有,在外部部门(我的意思是,PopularSearch 部门)中浮动,两个部门的 styles 如下所示。

 .PopularSearch { width: 80%; height: 80px; float: right; margin-right: 120px; margin-top: 50px; margin-bottom: 50px; border: 1px solid black; }.Links { width: 80px; height: 45px; float: right; border-radius: 3px; border: 5px solid #00d363; }
 <div class="PopularSearch"> <div class="links">خلاقیت</div> <div class="links">فروش</div> <div class="links">مدیریت</div> <div class="links">ایده</div> <div class="links">نرم افزار</div> </div>

This is because the class for the divs is "links" but the css is trying to add style to the class name of "Links" with a capital L. And lower and capital cases do matter in html therefore "links" will not equal to "Links." This is because the class for the divs is "links" but the css is trying to add style to the class name of "Links" with a capital L. And lower and capital cases do matter in html therefore "links" will not equal to “链接。”

 As you see in my code,my items(I mean,Links division) does not,float right in the outer division(I mean,PopularSearch division),the styles for both division,are shows below. .PopularSearch { width: 80%; height: 80px; float: right; margin-right: 120px; margin-top: 50px; margin-bottom: 50px; border: 1px solid black; } /* lowered the case for "L" */.links { width: 80px; height: 45px; float: right; border-radius: 3px; border: 5px solid #00d363; }
 <div class="PopularSearch"> <div class="links">خلاقیت</div> <div class="links">فروش</div> <div class="links">مدیریت</div> <div class="links">ایده</div> <div class="links">نرم افزار</div> </div>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 为什么我的背景不向右移动? - Why does my background does not move to the right? 为什么我的浮动右侧元素越来越多地出现在左侧 - Why are my float right elements coming in left more and more 为什么 bootstrap float-right class 对我的按钮不起作用? - Why bootstrap float-right class not working for my button? 为什么我的外部变量在使用 while 循环时不会改变? - Why does my outer variable not change when using a while loop? 为什么我的角色动作感觉不正确? - Why does my character movement not feel right? 为什么我的async fetch调用一直返回或退出到最外面的function,执行外面的function,然后继续执行里面的? - Why does my async fetch call return or exit all the way to the most outer function, execute the outer function, THEN continue executing the inner one? 为什么我的js代码没有反映正确的运行时值? - why does'nt my js code reflect the right runtime value? 为什么我的 position(right) 属性在 JavaScript 中没有改变 - Why my position(right) property does not change in JavaScript 为什么我的右下角图像一直被拉伸? - Why does my bottom right image keep getting stretched? 为什么我的按钮没有打印出代码并选择正确的选项? - Why does my button not print out the code and select the right option?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM