I'm trying to complete it with a 360 grid system:
From the database, It is working perfectly on the product of 4 products on the whole, but if there are fewer than 4 products in the category, then the design becomes messy up, because the device has not stopped properly. The problem is that sometimes - There are only 3 or fewer products in the line.
How do any of you accomplish this?
For ($ i = 0; $ I <$ countprod; $ i ++) {$ prevprod = $ products [$ i-1] ['name']; $ Curprod = $ products [$ i] ['name']; If ($ curprod! = $ Prevprod) {echo '& lt; Div class = "grid_12 alpha omega" & gt; & Lt; H2 & gt; $ Products [$ i] ['catname']. '& Lt; / H2 & gt; & Lt; / Div & gt; '; } If ($ i == 0) {echo ' 'Image']; if ($ i% 4 == 3) {echo '
;' (title Sorry about, I did not know what this question is like :))
$ I = 0; $ i & lt; $ countprod; $ i ++) {$ curprod = $ products [$ I] ['name']; if ($ curprod! = $ Prevprod) {If ($ close_div) echo '& lt; / div & gt;'; echo '& lt; div class = "grid_12 alpha omega" & gt; ; & Lt; h2 & gt; $ Products [$ i] ['cat name']. '& Lt; / h2 & gt; & lt; ($ I% 4 == 3) {echo' & lt; div class = "grid_3 alpha" & gt; ; ' $ Close_div = true;} otherwise ($ i% 4 == 3) {echo} '& lt; / div & gt; div class = "grid_3 omega" & gt; $$ close_div = true;} Other {echo & lt; / div & gt; & lt; div class = "grid_3"> $ close_div = true;} $ product [$ i] ['image'] resonate , If ($ i% 4 == 3) {echo ' gt; div class = "clear"> '; $ Close_div = false;} $ Prevprod = $ curprod;}
Popular posts from this blog
I registered my receiver for receiving SMS when I receive the SMS, how do I execute the phone's default SMS app Can i do Can I send the intention to start the default SMS app? This can be done in a few different ways. Here's one: Send intentions = new intent (int. Action_viez); SendIntent.putExtra ("sms_body", "The content of the SMS goes here ..."); SendIntent.setType ("vnd.android-directory / MMS-SMS"); StartActivity (sendIntent);
I have to get the essential CSS property of the element (the property can be inherited from her parents) Standart Jquery .css () can do this. I have such an HTML: & Lt; Span id = "something" & gt; Our element & lt; / Span & gt; & Lt; Br> Some text & lt; / Div & gt; & Lt; Div id = "result" & gt; & Lt; / Div & gt; CSS: #some {font-weight: bold; } # Containers {text-decoration: underline; Color: RGB (0,255,0); Font-size: 32px; } and jQuery code: $ (function () {var decor = $ ("#some") .css ('text-decoration' ) Weight Weight = $ ("#Additional"). CSS ('font-weight'); var color = $ ("#some"). CSS ('color'); var size = $ ("#some") Css ('font-size'); var result = " Our object's own property: Font-weight: "+ weight +" & gt; hereditary property: & lt; / b & gt; & lt; br & gt; ; & Lt; br ...
I would like to display some special Unicode characters in my Android app. These characters are not listed on droidfonts.com, but they are displayed correctly on the emulator and on my phone, but want to ensure that all Android platforms will support them. Is this a document somewhere? Thanks! Edit I'm looking like a method. Android support Unicode is completely, but to display your character, Unicode font needs I Droid Sans font , from the Android Framework, Unicode characters. But if you are going to use the Unicode 6.0 new glyph (like a new Indian version), then you have to use the font supporting it. This article can help you:. In addition to this you can see it for more information:
Comments
Post a Comment