I am developing a web application for which working with both IE 7 and Firefox 3.6 I use CSS I am laying down the tax form. The look is so beautiful I want each of these devices to stand in line with the label and option on the line (in the form of a line) on their line. Here is the CSS that works in Firefox:
.data-group {/ * display: inline-block; * / Vertical-align: top; Padding-top: 5px; Padding-down: 5px; }. Editor-label, .option1, .option2 {display: inline-block; / * Float: left; * /}. EditorLabel {width: 250px; Vertical-alignment: top; }
Unfortunately, it does not work in IE7. In order to achieve the same effect, I have to delete two commented lines and comment on inline-block. Editor-labels, .option1, .option2 Selection Unfortunately this Firefox breaks ... and it does not seem to be exactly the right thing to do anyway (Firefox makes a lot of sense). (I can get this method of working in Firefox if I add a "clear" dividend where I have "clear": on that div square ... but it looks like a hack.)
< P> Do I have something clear here?
Edit: Please provide the requested (trivial) HTML.
<%: Html.CheckBoxFor (model => model.cb1)%> <%: HTML .LabelFor (model => gt; model.label1)%> gt; & lt; / div & gt; & lt; div class = "option 1" & gt; Lt;%: Html.TextBoxFor (model = & gt; model.T2)%> gt; class = "label" & gt; & lt;%: HTML.LabelFor (model = & gt; model Label2)% & gt; & lt; / div & gt; & lt; / div & gt; & lt; div class = "verification" & gt; & lt; div & gt; & lt;%: HTML Validation message (Model = & gt; model.T2)%>
& lt ;! - Groups. - & gt; & lt; div class = "data-group" & gt; & lt; div class = "editor-label" & gt; & Lt;%: Html.CheckBoxFor (model = & gt; model.cb1)%> & Lt;%: HTML.LabelFor (model = & gt; model.label1)% & gt; & Lt; / Div & gt; & Lt; Div class = "option1" & gt; & Lt;%: Html.TextBoxFor (model = & gt; model.T2)%> & Lt; Div class = "label" & gt; & Lt;%: HTML.LabelFor (model = & gt; model.label2)%> & Lt; / Div & gt; & Lt; / Div & gt; & Lt; Div class = "verification" & gt; & Lt; Div & gt; & Lt;%: HTML Validation message (model = & gt; model. T2)%> & Lt; / Div & gt; & Lt; / Div & gt; & Lt; / Div & gt;
inline block
does not work properly in IE ,
You Display: Inline;
must be republished on block-level elements which means that inline-block
is IE, which means that you have to change the rule again for the device, so that you have an inline- Block was given.
& lt ;! - [if lt IE 8] & gt; & Lt; Style & gt; . EditorLabel {Display: Inline; Zoom: 1; } & Lt; / Style & gt; & Lt; [Endif] - & gt;
This will solve your problem. If not, then post a demo.
Popular posts from this blog
I hope this is a good question to ask here. This programming is related, so I thought it would be better than the superuser, so I am using the CDT C ++ Eclipse plugin. I know how the editor changes colors for some things But is there a way to do that all the variables are different colors? For example in KDEValue, it sets the local variables and square variables in different colors and bold square squares. Can I copy it to CDT? Eclips provides some level of color customization for text editor syntax You can see it on the following: There are many elements, including the Window> Preferences> C / C ++> Editor> Syntax color code that can be changed, assembly, Comments, Preprocessor and Doxian Under the code, it is possible to change the color of some variable types, such as global variables, local variable announcements, local variable references, and parameter variables. But I do not think the code is capable of changing the color of each variable declared....
$ (दस्तावेज़) .ready (function () {function ajaxselectrss (rssurlvar) {var ajaxRequest; // वेरिएबल जो अजाक्स को संभव बनाता है! कोशिश करें कि {// ओपेरा 8.0+, फ़ायरफ़ॉक्स, सफारी अजाक्स अनुरोध} = नया एक्सएमएलएचटीपीआरइवेस्ट ();} कैच (ई) {// इंटरनेट एक्सप्लोरर ब्राउज़र्स {ajaxRequest = new ActiveXObject ("Msxml2.XMLHTTP");} पकड़ो (ई) {try {ajaxRequest = new ActiveXObject ("Microsoft.XMLHTTP");} कैच (ई) {// कुछ गलत चेतावनी ("आपका ब्राउज़र तोड़ दिया!"); वापसी झूठी;}}} // एक बनाएं फ़ंक्शन जो सर्वर से भेजे गए डेटा प्राप्त करेंगे ajaxRequest.onreadystatechange = function () {if (ajaxRequest.readyState == 4) {var ajaxDisplay = document.getElementById ('news'); ajaxDisplay.innerHTML = ajaxRequest.responseText;}} / / Var rssurlvar = $ (this) .attr ("title"); var queryString = "rurl =" + rssurlvar; var urltofile = "rssget.php"; ajaxRequest.open ("पोस्ट", urltofile, सच); ajaxRequ Est.setRequestHeader ("सामग्री-प्र...
Well, I'm using a custom window box that comes with some custom control boxes that accompany the text The producers who are displayed are called. I have a defined event, which has been subscribed through the original class, it gets burnt when clicking on the button. However, I can not see how to use it effectively, I would like to return one yes, whether yes or not, but obviously my code will continue to execute, so this Below is some example code to clarify the problem that the method has subscibed by clicking on the button. Message box window Public partial class custom message box: window {public representative message messagebox object sender, event events e); Public event messagebox handler messagebox document; Public Customs Box () {Initial group (); } Public Customsbox (String Message) {InitializeComponent (); This.txtdescription.Text = Message; } Public Customsbox (String Message, String Title, String First BTNtext) {Initialization (); This.lbltitle.Content =...
Comments
Post a Comment