ASP.NET复选框文字不对齐的右侧或左侧的复选框 [英] ASP.NET Checkbox Text not aligned right or left to the Checkbox

查看:818
本文介绍了ASP.NET复选框文字不对齐的右侧或左侧的复选框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在新的Visual Studio 2012 Web表单模板我所有的ASP.NET复选框和单选按钮对顶部或底部的文本。

In the new Visual Studio 2012 Webforms Templates all my ASP.NET Checkboxes and Radiobuttons have the Text on top or on bottom.

时的预期!?我怎样才能对齐文本正确,因为它始终是?我试图禁用主题化,并设置的CssClass为复选框,但什么都没有改变。

Is the intended!? How can i align the text right as it always was? I tried disable theming and set the cssclass to checkbox but nothing changed.

解决方案找到:我研究了萤火虫的HTML,似乎默认的微软CSS被打破标签{显示(!):块; }将导致错误的aligment

Solution found: I researched the html in firebug and it seems that the default Microsoft CSS is broken(!) label { display: block; } causes the wrong aligment

推荐答案

这是造型的问题。也许在页面视口过小,而导致你所看到的。

It is styling issue. Maybe the page viewport is too small and that results in what you see.

如果在asp.net中设置属性没有帮助的话,那绝对可以用CSS解决。 毕竟,输出是好的旧的HTML ...

If setting properties in asp.net does not help, then it can definitely be solved by css. After all, output is good old html...

这篇关于ASP.NET复选框文字不对齐的右侧或左侧的复选框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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