Coder Social home page Coder Social logo

generatecss's Introduction

GenerateCss for HTML Page

说明

生成整个HTML的CSS样式表格式 省去编写完HTML还要编辑粘贴复制CSS类名

需要引入 jquery 和 此文件 GenerateCss.js

例子

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <title> New Document </title>
  <meta charset="utf-8" />
  <meta name="Generator" content="EditPlus">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
  <script type="text/javascript" src="jquery.min.js"></script>
  <script type="text/javascript" src="GenerateCss.js"></script>  
 </head>

 <body>
    <div class="article-head g-mod-shadow">
        <div class="article-wrap">
            <a href="/" class="article-logo"></a>
            <div class="article-user">
                <a href="#" class="article-name">twotk</a>
                <ul class="article-user-select">
                    <li class="article-user-option"><a href="#" class="optionlink">用户信息</a></li>
                    <li class="article-user-option"><a href="#" class="optionlink">用户信息</a></li>
                    <li class="article-user-option"><a href="#" class="optionlink">用户信息</a></li>
                </ul>
            </div>
        </div>
    </div>
    </body>
</html>

生成如下内容

.article-head{ }
.article-head .article-logo{ }
.article-head .article-name{ }
.article-head .article-user{ }
.article-head .article-user-option{ }
.article-head .article-user-select{ }
.article-head .article-user-select .article-user-option{ }
.article-head .article-user-select .optionlink{ }
.article-head .article-wrap{ }
.article-head .optionlink{ }

generatecss's People

Contributors

xuyanquan avatar

Stargazers

Linson avatar

Watchers

 avatar

Forkers

yezizhang

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.