简体   繁体   中英

Format Document bug with CSS Media Queries in Visual Studio 2012

So this:

@media(min-width:768px)
{
    .mini-logo
    {
       display: block;
       float: left;
       padding-top: 15px;
    }

}

Becomes this:

@media(min-width:768px)
{
    .mini-logo;

{
    display: block;
    float: left;
    padding-top: 15px;
}

}

In Visual Studio 2012 when Formatting Document (CTRL+K,CTRL+D)

I have this update already: http://www.visualstudio.com/en-us/downloads#d-visual-studio-2012-update

Any other suggestions?

只需在开括号前放空格

@media (min-width:768px)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM