asp:带引导程序的TextBox样式 [英] asp:TextBox styling with bootstrap

查看:184
本文介绍了asp:带引导程序的TextBox样式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用它:

I am using this:

<asp:TextBox ID="TextBox1" CssClass="input-small" runat="server" 

        style="z-index: 1; left: 20px; top: 150px; position: absolute "></asp:TextBox>



我已将bootstrap的css类链接到我的页面我正在使用一个简单的javascript警报(不是随引导程序提供的),显示电子邮件是有效还是无效。



问题:当第一次加载页面时,一切都很好。然后我在文本框中输入并按下登录按钮,显示js警报。当我点击警告框和网页上的确定按钮时再次显示,文本框的高度缩小。

有什么我缺少的吗?


I have linked the css classes of bootstrap to my page properly. I am using a simple javascript alert (not that provided with bootstrap) that displays whether email is valid or invalid.

The Problem: When the page is loaded for the first time, every thing is fine. Then I take input in the text box and press the login button, the js alert is displayed. When I click the ok button on the alert box and the web page is again displayed, the height of textbox is shrunk.
Is there anything which I am missing?

推荐答案

我不能说太多查看您提供的代码。尝试使用IE开发人员工具栏,看看样式方面的变化。



PS:更好地移动内联样式到css类并使用它。
I can't say much looking at the code you have provided. Try to use IE developer toolbar and see what has changed in terms of styles.

P.S. : Better move the inline styling to a css class and use it.


尝试使用Firebug

或将您的编码代码放入更新面板
Try to use Firebug
or put your coded code in update pannel


这篇关于asp:带引导程序的TextBox样式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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