Bài đăng

Chỉnh chiều cao của 2 column bằng nhau - Theo http://stackoverflow.com/

The problem is very simple: First you have to add a class named "elements" to both columns so your html will look like this: <div id = "content" > <div id = "leftColumn" class = "elements" > left column stuff </div> <div id = "rightColumn" class = "elements" > right column sidebar stuff </div> </div> After this, all you have to do is to compare the 2 heights, and aplay the maximum height to the smallest one. You do this like this: $ ( document ). ready ( function () { var highestCol = Math . max ( $ ( '#leftColumn' ). height (), $ ( '#rightColumn' ). height ()); $ ( '.elements' ). height ( highestCol ); }); Its a jQuery code witch calculate the maximum height between the 2 columns, and set them both with that height, resulting 2 columns with the same height. (the biggest one) Theo http://stackoverflow.com/

Chỉnh chiều cao của fieldset giống nhau

Using simple jQuery code you can achieve the equal column height DEMO HTML <div id = "container" > <fieldset class = "box" > <legend> Title </legend> CONTENT <br/> test </fieldset> <fieldset class = "box" > <legend> Title </legend> CONTENT </fieldset> <fieldset class = "box" > <legend> Title </legend> CONTENT </fieldset> </div> CSS . box { float : left ; width : 25 %; } jQuery $ ( function () { var H = 0 ; $ ( "div" ). each ( function ( i ) { var h = $ ( ".box" ). eq ( i ). height (); if ( h > H ) H = h ; }); $ ( ".box" ). height ( H ); });

Tạo CSS chỉ chạy trên trình duyệt IE theo http://www.viethost.net/

Khi lập trình website, việc tạo CSS chỉ chạy trên trình duyệt Internet Explorer là cần thiết. Có hai cách để làm việc trên Viết một file css cho từng ie, trong thẻ <head> kiểm tra phiên bản ie tương ứng để chạy Hack css theo từng phiên bản ie Cách một: Viết một file css cho từng ie, trong thẻ <head> kiểm tra phiên bản ie tương ứng để chạy Tất cả phiên bản ie <!--[if IE]> <link rel="stylesheet" type="text/css" href="all-ie-only.css" /> <![endif]--> Chạy với các trình duyệt khác, trừ trình duyệt ie <!--[if !IE]><!--> <link rel="stylesheet" type="text/css" href="not-ie.css" /> <!--<![endif]--> Chỉ chạy trên ie6 <!--[if IE 6]> <link rel="stylesheet" type="text/css" href="ie6.css" /> <![endif]--> Chỉ chạy trên ie7 <!--[if IE 7]> <link rel="stylesheet" type="text/c

Visual Studio–Painlessly Renaming Your Project and Solution Directories

Hình ảnh
Working in Visual Studio, we often find ourselves needing to rename our project and/or solution and the directories they live in. In particular, when we clone a project from Github, what we end up with the a complete, workable solution, but named other than what we would like. As an example, I recently posted articles on  Creating a Stripped-down ASP.NET Web Api Solution ,as well as an article on  Extending Identity Accounts and   Implementing Role-Based Security in ASP.NET MVC 5 . In both cases, I linked to example projects on my Github repo which not only serve as examples for the article content, but in fact present the workable start for your own solution. Except, they are named "YadaYadaYadaExample." NOTE: I go into what may seem like excruciating detail in this article. Experienced users may wonder what the fuss is about, that it should take this much space to explain how this works. This is targeted at those newer to Visual Studio who may be running into this fo

Visual Studio 2013, ASP.NET MVC 5 Scaffolded Controls, and Bootstrap theo http://weblogs.asp.net/

Hình ảnh
A few days ago, I created an ASP.NET MVC 5 project in the brand new Visual Studio 2013. I added some model classes and then proceeded to scaffold a controller class and views using the Entity Framework. Scaffolding Some Views Visual Studio 2013, by default, uses the  Bootstrap 3  responsive CSS framework. Great; after all, we all want our web sites to be responsive and work well on mobile devices. Here’s an example of a scaffolded Create view as shown in Google Chrome browser Looks pretty good. Okay, so let’s increase the width of the Title, Description, Address, and Date/Time textboxes. And decrease the width of the  State and MaxActors textbox controls. Can’t be that hard… Digging Into the Code Let’s take a look at the scaffolded Create.cshtml file. Here’s a snippet of code behind the Create view. Pretty simple stuff. @ using (Html.BeginForm()) { @Html.AntiForgeryToken() <div class = "form-horizontal" > <h4>RandomAct</

Visual Studio 2015 and .NET 4.6 Available for Download theo http://blogs.msdn.com/

Hình ảnh
Today, I am excited to announce that Visual Studio 2015 and .Net 4.6 are  available for download !  These releases are the next big step in the journey we outlined  last November  to bring the productivity of Visual Studio and .NET to any developer working on any kind of application while also delivering a new level of innovation in developer productivity for all Visual Studio developers. To celebrate today’s releases, you can join us online for the  Visual Studio 2015 Release Event ,  check out 60+ on-demand feature videos  or just dive right in and  download Visual Studio 2015 now . The Visual Studio Family Over the last few years, the Visual Studio family has expanded to be broader than ever before.  And the reception from developers has been great to see. At the core is the  Visual Studio IDE  that millions of developers around the world love and use day-in and day-out to build great applications.  Last year, we introduced  Visual Studio Community  - a fully-featured Vis