• <style id="um3lx"></style>

        <\/body>, through the ERB tag <%= yield %>. This tag serves as an integration point to include the content of a view dynamically rendered by Rails;\n<\/li>\n<\/ul>\n<\/details>\n\n\n\n<\/p>\n

        ?<\/p>\n

        \n \n \n Generate test pages, with a controller pages and the actions html_test_1, html_test_2, html_test_3 and html_test_4\n<\/h3>\n\n

        \n Show more…<\/summary>\n
        \n\n
        $ rails -v\nRails 8.0.0\n\n$ time rails new classless-css-cdn --skip-test\n...\nreal    0m47.500s\nuser    0m33.052s\nsys     0m4.249s\n<\/pre>\n\n\n
          \n
        • As during the creation of the controller and the actions above, the routes were also added, allowing you to access any action created from the links\n\n
            \n
          • localhost:3000\/pages\/html_test_1<\/li>\n
          • localhost:3000\/pages\/html_test_2<\/li>\n
          • localhost:3000\/pages\/html_test_3<\/li>\n
          • localhost:3000\/pages\/html_test_4<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n

            ?<\/p>\n

            \n \n \n Open the config\/routes.rb file in VSCode\n<\/h3>\n\n
              \n
            • Include the line below at the end of the file to direct the page root to the previously created controller pages and action html_test_1. Thus, the first page to be displayed when accessing your website or system will be the html_test_1 page, from controller pages. Otherwise it would display the default rails page.\n<\/li>\n<\/ul>\n
              $ cd classless-css-cdn && code .\n<\/pre>\n\n\n
                \n
              • You could have ignored adding the routes to the created actions if you had passed the --skip-routes parameter when creating the controller. The full command would become rails g controller pages html_test_1 html_test_2 html_test_3 html_test_4 --skip-routes\n<\/li>\n<\/ul>\n<\/details>\n\n\n\n<\/p>\n

                ?<\/p>\n

                \n \n \n Displaying Rails routes\n<\/h3>\n\n

                \n Show more…<\/summary>\n

                Using the terminal you can display the routes by specifying a controller (with -c), for example from controller pages
                \n<\/p>\n\n

                \n\n  \n    <%= content_for(:title) || \"Classless Css\" %><\/title>\n    <meta name=\"viewport\" content=\"width=device-width,initial-scale=1\">\n    <meta name=\"apple-mobile-web-app-capable\" content=\"yes\">\n    <meta name=\"mobile-web-app-capable\" content=\"yes\">\n    <%= csrf_meta_tags %>\n    <%= csp_meta_tag %>\n\n    <%= yield :head %>\n\n    <%# Enable PWA manifest for installable apps (make sure to enable in config\/routes.rb too!) %>\n    <%#= tag.link rel: \"manifest\", href: pwa_manifest_path(format: :json) %>\n\n    <link rel=\"icon\" href=\"\/icon.png\" type=\"image\/png\">\n    <link rel=\"icon\" href=\"\/icon.svg\" type=\"image\/svg+xml\">\n    <link rel=\"apple-touch-icon\" href=\"\/icon.png\">\n\n    <%# Includes all stylesheet files in app\/assets\/stylesheets %>\n    <%= stylesheet_link_tag :app, \"data-turbo-track\": \"reload\" %>\n    <%= javascript_importmap_tags %>\n  <\/head>\n\n  <body>
                <h1><a href="http://ipnx.cn/">亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱</a></h1>\n    <%= yield %>\n  <\/body>\n<\/html>\n\n<\/pre>\n\n\n\n<p>Or you can display all routes with<br>\n<\/p>\n<pre><summary\nclass=\"flex cursor-pointer items-center justify-between rounded-lg px-4 py-2 text-gray-500 hover:bg-gray-100 hover:text-gray-700\"\n>\n<\/pre>\n\n\n\n<ul>\n<li>It is also possible to access the routes through the browser using the address http:\/\/127.0.0.1:3000\/rails\/info\/routes. Don't forget to start the development server with bin\/dev or the standard rails server with rails server from your project's root directory. The development server is “l(fā)istening” for changes in javascript files and css files to carry out the necessary processing to make them available to users.<\/li>\n<li>For changes to these files to be made and viewed instantly in the browser, it is necessary to install a gem like Rails Livre Reload.<\/li>\n<\/ul>\n\n\n\n<\/details><br>\n<\/p>\n\n<h3>\n  \n  \n  Let's create four pages with HTML content to test the CSS styles.\n<\/h3>\n\n<p>Ruby on Rails uses the MVC (Model-View-Controller) architecture by default to start organizing your project. Much of your code is organized in the following folders:<\/p>\n\n<ul>\n<li>When the code is related to domain\/business logic and data, keep it in the app\/models folder;<\/li>\n<li>The code related to the view (HTML, JSON, XML, etc...) will be in app\/views;<\/li>\n<li>Code related to the request lifecycle, will be in app\/controllers;<\/li>\n<\/ul>\n\n<p>?<\/p>\n\n<h3>\n  \n  \n  Insert the content of the html_test_1 page\n<\/h3>\n\n<p><details>\n  <summary>Show more…<\/summary>\n  <ul>\n<li>Access the link https:\/\/github.com\/dbohdan\/classless-css\/blob\/master\/screenshot-page.html and copy all the contents of the main tag, as shown below\n<\/li>\n<\/ul>\n<pre>$ rails -v\nRails 8.0.0\n\n$ time rails new classless-css-cdn --skip-test\n...\nreal    0m47.500s\nuser    0m33.052s\nsys     0m4.249s\n<\/pre>\n\n\n<ul>\n<li>\n<\/li>\n<\/ul>\n\n<\/details><br>\n<br>\n<\/p>\n\n<h3>\n  \n  \n  Start the Rails server and see the ugly plain HTML?\n<\/h3>\n\n<p><details>\n  <summary>Show more…<\/summary>\n  <ul>\n<li>Start the Rails development server with bin\/dev or the standard server with rails server and open the browser at 127.0.0.1:3000\n<\/li>\n<\/ul>\n<pre>$ cd classless-css-cdn && code .\n<\/pre>\n\n\n<ul>\n<li>After opening the page you will see at the top the four links that we added to the html_test_1, html_test_2, html_test_3 and html_test_4 pages that we created previously.<\/li>\n<li>So much work so far. Open each one and you will notice that the HTML has not yet been styled with any CSS, which we will do next\n<\/li>\n<\/ul>\n\n<\/details><br>\n<br>\n<\/p>\n<h3>\n  \n  \n  Reopen the app\/views\/layouts\/application.html.erb page to include classless CSS styles via CDN\n<\/h3>\n\n<p><details>\n  <summary>Show more…<\/summary>\n  <ul>\n<li>After the content below\n<\/li>\n<\/ul>\n<pre><summary\nclass=\"flex cursor-pointer items-center justify-between rounded-lg px-4 py-2 text-gray-500 hover:bg-gray-100 hover:text-gray-700\"\n>\n<\/pre>\n\n\n<ul>\n<li>And before <\/head>, paste the following content. You don't need all of these styles, they were inserted so you can test various options.\n<\/li>\n<\/ul>\n\n<pre>$ rails -v\nRails 8.0.0\n\n$ time rails new classless-css-cdn --skip-test\n...\nreal    0m47.500s\nuser    0m33.052s\nsys     0m4.249s\n<\/pre>\n\n\n\n<ul>\n<li>Most styles are commented out, except Normalize CSS and Pico CSS\n<\/li>\n<li>Save the file and refresh the page or restart the server<\/li>\n<li>To test a style other than Pico CSS, comment out the line that configures the style's CDN, in this case the line <link rel=\"stylesheet\" href=\"https:\/\/cdn.jsdelivr.net\/npm\/@ picocss\/pico@2\/css\/pico.min.css\" \/> and uncomment the line from another style, for example, the Simple CSS line.<\/li>\n<li>To comment and uncomment a line with VSCode, use the Ctrl K C key combination.\n<\/li>\n<\/ul>\n\n<\/details><br>\n<br>\n<\/p>\n\n<h3>\n  \n  \n  Now yes, stylish HTML?\n<\/h3>\n\n<p>After saving the stylesheets above and starting the Rails server you will see your HTML styled with the chosen css frameworks.<\/p>\n\n<h3>\n  \n  \n  Dark mode\n<\/h3>\n\n<p>Some styles have the option for dark mode. To confirm, change your computer's theme in the color customization options. Search in Windows for Enable dark mode for apps and switch between dark or light mode and the HTML page automatically changes after the change in the operating system al.<\/p>\n\n<h3>\n  \n  \n  Next steps\n<\/h3>\n\n<ul>\n<li>Organize the styles according to your preference;<\/li>\n<li>If you want to spend a little more time on the frontend, check out the customization options for your favorite style;<\/li>\n<li>Dynamically update changes made to the project in the browser using Rails Live Reload;<\/li>\n<li>Use styling from project CSS files, without using CDN;<\/li>\n<li>Replicate the capability of classless CSS framework using Tailwind;<\/li>\n<\/ul>\n\n<h2>\n  \n  \n  References\n<\/h2>\n\n<ul>\n<li>https:\/\/dev.to\/leonardorafael\/the-classless-and-class-light-css-aproaches-2b98<\/li>\n<li>https:\/\/prismic.io\/blog\/best-css-frameworks<\/li>\n<li>\nhttps:\/\/saeedesmaili.com\/notes\/classless-css-libraries\/ <\/li>\n<li>https:\/\/dev.to\/logrocket\/comparing-classless-css-frameworks-3267<\/li>\n<li>https:\/\/github.com\/dbohdan\/classless-css<\/li>\n<li>https:\/\/github.com\/troxler\/awesome-css-frameworks<\/li>\n<\/ul>\n\n\n          \n\n            \n        "}	</script>
                	
                <meta http-equiv="Cache-Control" content="no-transform" />
                <meta http-equiv="Cache-Control" content="no-siteapp" />
                <script>var V_PATH="/";window.onerror=function(){ return true; };</script>
                </head>
                
                <body data-commit-time="2023-12-28T14:50:12+08:00" class="editor_body body2_2">
                	<link rel="stylesheet" type="text/css" href="/static/csshw/stylehw.css">
                <header>
                    <div   id="wjcelcm34c"   class="head">
                        <div   id="wjcelcm34c"   class="haed_left">
                            <div   id="wjcelcm34c"   class="haed_logo">
                                <a href="http://ipnx.cn/" title="" class="haed_logo_a">
                                    <img src="/static/imghw/logo.png" alt="" class="haed_logoimg">
                                </a>
                            </div>
                            <div   id="wjcelcm34c"   class="head_nav">
                                <div   id="wjcelcm34c"   class="head_navs">
                                    <a href="javascript:;" title="Community" class="head_nava head_nava-template1">Community</a>
                                    <div   class="wjcelcm34c"   id="dropdown-template1" style="display: none;">
                                        <div   id="wjcelcm34c"   class="languagechoose">
                                            <a href="http://ipnx.cn/article.html" title="Articles" class="languagechoosea on">Articles</a>
                                            <a href="http://ipnx.cn/faq/zt" title="Topics" class="languagechoosea">Topics</a>
                                            <a href="http://ipnx.cn/wenda.html" title="Q&A" class="languagechoosea">Q&A</a>
                                        </div>
                                    </div>
                                </div>
                
                                <div   id="wjcelcm34c"   class="head_navs">
                                    <a href="javascript:;" title="Learn" class="head_nava head_nava-template1_1">Learn</a>
                                    <div   class="wjcelcm34c"   id="dropdown-template1_1" style="display: none;">
                                        <div   id="wjcelcm34c"   class="languagechoose">
                                            <a href="http://ipnx.cn/course.html" title="Course" class="languagechoosea on">Course</a>
                                            <a href="http://ipnx.cn/dic/" title="Programming Dictionary" class="languagechoosea">Programming Dictionary</a>
                                        </div>
                                    </div>
                                </div>
                
                                <div   id="wjcelcm34c"   class="head_navs">
                                    <a href="javascript:;" title="Tools Library" class="head_nava head_nava-template1_2">Tools Library</a>
                                    <div   class="wjcelcm34c"   id="dropdown-template1_2" style="display: none;">
                                        <div   id="wjcelcm34c"   class="languagechoose">
                                            <a href="http://ipnx.cn/toolset/development-tools" title="Development tools" class="languagechoosea on">Development tools</a>
                                            <a href="http://ipnx.cn/toolset/website-source-code" title="Website Source Code" class="languagechoosea">Website Source Code</a>
                                            <a href="http://ipnx.cn/toolset/php-libraries" title="PHP Libraries" class="languagechoosea">PHP Libraries</a>
                                            <a href="http://ipnx.cn/toolset/js-special-effects" title="JS special effects" class="languagechoosea on">JS special effects</a>
                                            <a href="http://ipnx.cn/toolset/website-materials" title="Website Materials" class="languagechoosea on">Website Materials</a>
                                            <a href="http://ipnx.cn/toolset/extension-plug-ins" title="Extension plug-ins" class="languagechoosea on">Extension plug-ins</a>
                                        </div>
                                    </div>
                                </div>
                
                                <div   id="wjcelcm34c"   class="head_navs">
                                    <a href="http://ipnx.cn/ai" title="AI Tools" class="head_nava head_nava-template1_3">AI Tools</a>
                                </div>
                
                                <div   id="wjcelcm34c"   class="head_navs">
                                    <a href="javascript:;" title="Leisure" class="head_nava head_nava-template1_3">Leisure</a>
                                    <div   class="wjcelcm34c"   id="dropdown-template1_3" style="display: none;">
                                        <div   id="wjcelcm34c"   class="languagechoose">
                                            <a href="http://ipnx.cn/game" title="Game Download" class="languagechoosea on">Game Download</a>
                                            <a href="http://ipnx.cn/mobile-game-tutorial/" title="Game Tutorials" class="languagechoosea">Game Tutorials</a>
                
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                                    <div   id="wjcelcm34c"   class="head_search">
                                <input id="key_words"  onkeydown="if (event.keyCode == 13) searchs('en')" class="search-input" type="text" autocomplete="off" name="keywords" required="required" placeholder="Block,address,transaction,news" value="">
                                <a href="javascript:;" title="search"  onclick="searchs('en')"><img src="/static/imghw/find.png" alt="search"></a>
                            </div>
                                <div   id="wjcelcm34c"   class="head_right">
                            <div   id="wjcelcm34c"   class="haed_language">
                                <a href="javascript:;" class="layui-btn haed_language_btn">English<i class="layui-icon layui-icon-triangle-d"></i></a>
                                <div   class="wjcelcm34c"   id="dropdown-template" style="display: none;">
                                    <div   id="wjcelcm34c"   class="languagechoose">
                                                                <a href="javascript:setlang('zh-cn');" title="簡體中文" class="languagechoosea">簡體中文</a>
                                                                <a href="javascript:;" title="English" class="languagechoosea">English</a>
                                                                <a href="javascript:setlang('zh-tw');" title="繁體中文" class="languagechoosea">繁體中文</a>
                                                                <a href="javascript:setlang('ja');" title="日本語" class="languagechoosea">日本語</a>
                                                                <a href="javascript:setlang('ko');" title="???" class="languagechoosea">???</a>
                                                                <a href="javascript:setlang('ms');" title="Melayu" class="languagechoosea">Melayu</a>
                                                                <a href="javascript:setlang('fr');" title="Fran?ais" class="languagechoosea">Fran?ais</a>
                                                                <a href="javascript:setlang('de');" title="Deutsch" class="languagechoosea">Deutsch</a>
                                                            </div>
                                </div>
                            </div>
                            <span id="wjcelcm34c"    class="head_right_line"></span>
                                            <div style="display: block;" id="login" class="haed_login ">
                                    <a href="javascript:;"  title="Login" class="haed_logina ">Login</a>
                                </div>
                                <div style="display: block;" id="reg" class="head_signup login">
                                    <a href="javascript:;"  title="singup" class="head_signupa">singup</a>
                                </div>
                            
                        </div>
                    </div>
                </header>
                
                	
                	<main>
                		<div   id="wjcelcm34c"   class="Article_Details_main">
                			<div   id="wjcelcm34c"   class="Article_Details_main1">
                							<div   id="wjcelcm34c"   class="Article_Details_main1M">
                					<div   id="wjcelcm34c"   class="phpgenera_Details_mainL1">
                						<a href="http://ipnx.cn/" title="Home"
                							class="phpgenera_Details_mainL1a">Home</a>
                						<img src="/static/imghw/top_right.png" alt="" />
                												<a href="http://ipnx.cn/web-designer.html"
                							class="phpgenera_Details_mainL1a">Web Front-end</a>
                						<img src="/static/imghw/top_right.png" alt="" />
                												<a href="http://ipnx.cn/css-tutorial.html"
                							class="phpgenera_Details_mainL1a">CSS Tutorial</a>
                						<img src="/static/imghw/top_right.png" alt="" />
                						<span>Ruby on Rails  Front-end Rápido com Frameworks CSS Classless ou Class-Light Usando CDN</span>
                					</div>
                					
                					<div   id="wjcelcm34c"   class="Articlelist_txts">
                						<div   id="wjcelcm34c"   class="Articlelist_txts_info">
                							<h1 class="Articlelist_txts_title">Ruby on Rails  Front-end Rápido com Frameworks CSS Classless ou Class-Light Usando CDN</h1>
                							<div   id="wjcelcm34c"   class="Articlelist_txts_info_head">
                								<div   id="wjcelcm34c"   class="author_info">
                									<a href="http://ipnx.cn/member/1246273.html"  class="author_avatar">
                									<img class="lazy"  data-src="https://img.php.cn/upload/avatar/001/246/273/647834461a95f136.jpg" src="/static/imghw/default1.png" alt="DDD">
                									</a>
                									<div   id="wjcelcm34c"   class="author_detail">
                																			<a href="http://ipnx.cn/member/1246273.html" class="author_name">DDD</a>
                                                										</div>
                								</div>
                                			</div>
                							<span id="wjcelcm34c"    class="Articlelist_txts_time">Jan 04, 2025 pm	 04:40 PM</span>
                														
                						</div>
                					</div>
                					<hr />
                					<div   id="wjcelcm34c"   class="article_main php-article">
                						<div   id="wjcelcm34c"   class="article-list-left detail-content-wrap content">
                						<ins class="adsbygoogle"
                							style="display:block; text-align:center;"
                							data-ad-layout="in-article"
                							data-ad-format="fluid"
                							data-ad-client="ca-pub-5902227090019525"
                							data-ad-slot="3461856641">
                						</ins>
                						
                
                					<p><img src="/static/imghw/default1.png" data-src="https://img.php.cn/upload/article/000/000/000/173598004387261.jpg" class="lazy" alt="Ruby on Rails  Front-end Rápido com Frameworks CSS Classless ou Class-Light Usando CDN"></p>
                <p>If you are starting to develop for the web and your focus is not to specialize in the front-end, one of the barriers that can be most painful is being able to easily style your ugly HTML .</p>
                
                <p>For those who have first contact, it is something enigmatic, mystical, supernatural trying to understand HTML that has a sequence of letters and numbers with predefined utility classes to apply styles to HTML, for example:<br>
                </p>
                
                <pre class="brush:php;toolbar:false"><summary
                class="flex cursor-pointer items-center justify-between rounded-lg px-4 py-2 text-gray-500 hover:bg-gray-100 hover:text-gray-700"
                >
                </pre>
                
                
                
                <p>CSS frameworks that use utility classes are excellent, versatile, responsive, elegant and have many other qualities, but Tailwind CSS is not the only solution. <strong>If you need something quick and simpler, using a classless or class-light CSS framework will be a better solution.</strong></p>
                
                <p>Classless CSS Frameworks style HTML elements directly, without classes. Class-light frameworks combine automatic styles with some optional utility classes for customization, which adds greater versatility to their use.</p>
                
                <p>Using a classless or class-light approach you can quickly solve HTML styling with one, two or three lines.</p>
                
                <h3>
                  
                  
                  We will see below:
                </h3>
                
                <ul>
                <li>Use of the Ruby on Rails framework in version 8, with Propshaft and Importmap;</li>
                <li>Getting to know the file with the standard layout of HTML pages;</li>
                <li>Creating and adding content to 4 HTML pages to test styling with CSS;</li>
                <li>A brief mention of the routes created for the pages;</li>
                <li>Change the default layout to include the link to the created pages;</li>
                <li>Add 12 CSS frameworks via CDN to the default layout;</li>
                <li>Know how to identify whether the CSS frameworks have light and dark mode configured by default;</li>
                <li>Suggestions for next steps;</li>
                </ul>
                
                <h3>
                  
                  
                  Start a new Rails application
                </h3>
                
                <ul>
                <li>The time before the rails command is used to display its execution time at the end of the command execution. In the example below, it took 47 seconds.
                </li>
                </ul>
                
                <pre class="brush:php;toolbar:false">$ rails -v
                Rails 8.0.0
                
                $ time rails new classless-css-cdn --skip-test
                ...
                real    0m47.500s
                user    0m33.052s
                sys     0m4.249s
                </pre>
                
                
                
                <p>Rails 8, within its No Build philosophy, will use by default Propshaft as the asset pipeline library and Importmap as the JavaScript library. We ask you to skip the test library with --skip-test.<br>
                If necessary, you can process your JavaScript using esbuild by passing the --javascript esbuild parameter. Importmap does not perform any build or any type of processing on JavaScript.</p>
                <h3>
                  
                  
                  Open the project with VSCode or your preferred editor
                </h3>
                
                
                <pre class="brush:php;toolbar:false">$ cd classless-css-cdn && code .
                </pre>
                
                
                <p>?</p>
                <h3>
                  
                  
                  Knowing the default Rails layout app/views/layouts/application.html.erb.
                </h3>
                
                <p><details>
                  <summary>Show more…</summary>
                  <ul>
                <li>By Convention over Configuration (CoC), Rails uses application.html.erb as the default layout to render all pages;</li>
                <li>The original file in Rails 8 must have the same or similar content as the one copied below:
                </li>
                </ul>
                <pre class="brush:php;toolbar:false"><summary
                class="flex cursor-pointer items-center justify-between rounded-lg px-4 py-2 text-gray-500 hover:bg-gray-100 hover:text-gray-700"
                >
                </pre>
                
                
                <ul>
                <li>The top part within the <head> … </head> they have the important structural elements for the page to be rendered and function correctly. The head tag is used to include important metadata and resources that help configure the page's behavior (with javascript), its appearance (with CSS), its relationship with other systems and services, and security settings such as protection for CSRF and CSP ;</li>
                <li>The main content of the pages will be rendered inside <body> 
                </body>, through the ERB tag <%= yield %>. This tag serves as an integration point to include the content of a view dynamically rendered by Rails;
                </li>
                </ul>
                </details>
                
                
                
                </p>
                <p>?</p>
                <h3>
                  
                  
                  Generate test pages, with a controller pages and the actions html_test_1, html_test_2, html_test_3 and html_test_4
                </h3>
                
                <p><details>
                  <summary>Show more…</summary>
                  <br>
                
                <pre class="brush:php;toolbar:false">$ rails -v
                Rails 8.0.0
                
                $ time rails new classless-css-cdn --skip-test
                ...
                real    0m47.500s
                user    0m33.052s
                sys     0m4.249s
                </pre>
                
                
                <ul>
                <li>As during the creation of the controller and the actions above, the routes were also added, allowing you to access any action created from the links
                
                <ul>
                <li>localhost:3000/pages/html_test_1</li>
                <li>localhost:3000/pages/html_test_2</li>
                <li>localhost:3000/pages/html_test_3</li>
                <li>localhost:3000/pages/html_test_4</li>
                </ul>
                </li>
                </ul>
                
                <p>?</p>
                <h3>
                  
                  
                  Open the config/routes.rb file in VSCode
                </h3>
                
                <ul>
                <li>Include the line below at the end of the file to direct the page root to the previously created controller pages and action html_test_1. Thus, the first page to be displayed when accessing your website or system will be the html_test_1 page, from controller pages. Otherwise it would display the default rails page.
                </li>
                </ul>
                <pre class="brush:php;toolbar:false">$ cd classless-css-cdn && code .
                </pre>
                
                
                <ul>
                <li>You could have ignored adding the routes to the created actions if you had passed the --skip-routes parameter when creating the controller. The full command would become rails g controller pages html_test_1 html_test_2 html_test_3 html_test_4 --skip-routes
                </li>
                </ul>
                </details>
                
                
                
                </p>
                <p>?</p>
                <h3>
                  
                  
                  Displaying Rails routes
                </h3>
                
                <p><details>
                  <summary>Show more…</summary>
                  <p>Using the terminal you can display the routes by specifying a controller (with -c), for example from controller pages<br>
                </p>
                
                <pre class="brush:php;toolbar:false"><!DOCTYPE html>
                <html>
                  <head>
                    <title><%= content_for(:title) || "Classless Css" %></title>
                    <meta name="viewport" content="width=device-width,initial-scale=1">
                    <meta name="apple-mobile-web-app-capable" content="yes">
                    <meta name="mobile-web-app-capable" content="yes">
                    <%= csrf_meta_tags %>
                    <%= csp_meta_tag %>
                
                    <%= yield :head %>
                
                    <%# Enable PWA manifest for installable apps (make sure to enable in config/routes.rb too!) %>
                    <%#= tag.link rel: "manifest", href: pwa_manifest_path(format: :json) %>
                
                    <link rel="icon" href="/icon.png" type="image/png">
                    <link rel="icon" href="/icon.svg" type="image/svg+xml">
                    <link rel="apple-touch-icon" href="/icon.png">
                
                    <%# Includes all stylesheet files in app/assets/stylesheets %>
                    <%= stylesheet_link_tag :app, "data-turbo-track": "reload" %>
                    <%= javascript_importmap_tags %>
                  </head>
                
                  <body>
                    <%= yield %>
                  </body>
                </html>
                
                </pre>
                
                
                
                <p>Or you can display all routes with<br>
                </p>
                <pre class="brush:php;toolbar:false"><summary
                class="flex cursor-pointer items-center justify-between rounded-lg px-4 py-2 text-gray-500 hover:bg-gray-100 hover:text-gray-700"
                >
                </pre>
                
                
                
                <ul>
                <li>It is also possible to access the routes through the browser using the address http://127.0.0.1:3000/rails/info/routes. Don't forget to start the development server with bin/dev or the standard rails server with rails server from your project's root directory. The development server is “l(fā)istening” for changes in javascript files and css files to carry out the necessary processing to make them available to users.</li>
                <li>For changes to these files to be made and viewed instantly in the browser, it is necessary to install a gem like Rails Livre Reload.</li>
                </ul>
                
                
                
                </details><br>
                </p>
                
                <h3>
                  
                  
                  Let's create four pages with HTML content to test the CSS styles.
                </h3>
                
                <p>Ruby on Rails uses the MVC (Model-View-Controller) architecture by default to start organizing your project. Much of your code is organized in the following folders:</p>
                
                <ul>
                <li>When the code is related to domain/business logic and data, keep it in the app/models folder;</li>
                <li>The code related to the view (HTML, JSON, XML, etc...) will be in app/views;</li>
                <li>Code related to the request lifecycle, will be in app/controllers;</li>
                </ul>
                
                <p>?</p>
                
                <h3>
                  
                  
                  Insert the content of the html_test_1 page
                </h3>
                
                <p><details>
                  <summary>Show more…</summary>
                  <ul>
                <li>Access the link https://github.com/dbohdan/classless-css/blob/master/screenshot-page.html and copy all the contents of the main tag, as shown below
                </li>
                </ul>
                <pre class="brush:php;toolbar:false">$ rails -v
                Rails 8.0.0
                
                $ time rails new classless-css-cdn --skip-test
                ...
                real    0m47.500s
                user    0m33.052s
                sys     0m4.249s
                </pre>
                
                
                <ul>
                <li>
                </li>
                </ul>
                
                </details><br>
                <br>
                </p>
                
                <h3>
                  
                  
                  Start the Rails server and see the ugly plain HTML?
                </h3>
                
                <p><details>
                  <summary>Show more…</summary>
                  <ul>
                <li>Start the Rails development server with bin/dev or the standard server with rails server and open the browser at 127.0.0.1:3000
                </li>
                </ul>
                <pre class="brush:php;toolbar:false">$ cd classless-css-cdn && code .
                </pre>
                
                
                <ul>
                <li>After opening the page you will see at the top the four links that we added to the html_test_1, html_test_2, html_test_3 and html_test_4 pages that we created previously.</li>
                <li>So much work so far. Open each one and you will notice that the HTML has not yet been styled with any CSS, which we will do next
                </li>
                </ul>
                
                </details><br>
                <br>
                </p>
                <h3>
                  
                  
                  Reopen the app/views/layouts/application.html.erb page to include classless CSS styles via CDN
                </h3>
                
                <p><details>
                  <summary>Show more…</summary>
                  <ul>
                <li>After the content below
                </li>
                </ul>
                <pre class="brush:php;toolbar:false"><summary
                class="flex cursor-pointer items-center justify-between rounded-lg px-4 py-2 text-gray-500 hover:bg-gray-100 hover:text-gray-700"
                >
                </pre>
                
                
                <ul>
                <li>And before </head>, paste the following content. You don't need all of these styles, they were inserted so you can test various options.
                </li>
                </ul>
                
                <pre class="brush:php;toolbar:false">$ rails -v
                Rails 8.0.0
                
                $ time rails new classless-css-cdn --skip-test
                ...
                real    0m47.500s
                user    0m33.052s
                sys     0m4.249s
                </pre>
                
                
                
                <ul>
                <li>Most styles are commented out, except Normalize CSS and Pico CSS
                </li>
                <li>Save the file and refresh the page or restart the server</li>
                <li>To test a style other than Pico CSS, comment out the line that configures the style's CDN, in this case the line <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@ picocss/pico@2/css/pico.min.css" /> and uncomment the line from another style, for example, the Simple CSS line.</li>
                <li>To comment and uncomment a line with VSCode, use the Ctrl K C key combination.
                </li>
                </ul>
                
                </details><br>
                <br>
                </p>
                
                <h3>
                  
                  
                  Now yes, stylish HTML?
                </h3>
                
                <p>After saving the stylesheets above and starting the Rails server you will see your HTML styled with the chosen css frameworks.</p>
                
                <h3>
                  
                  
                  Dark mode
                </h3>
                
                <p>Some styles have the option for dark mode. To confirm, change your computer's theme in the color customization options. Search in Windows for Enable dark mode for apps and switch between dark or light mode and the HTML page automatically changes after the change in the operating system al.</p>
                
                <h3>
                  
                  
                  Next steps
                </h3>
                
                <ul>
                <li>Organize the styles according to your preference;</li>
                <li>If you want to spend a little more time on the frontend, check out the customization options for your favorite style;</li>
                <li>Dynamically update changes made to the project in the browser using Rails Live Reload;</li>
                <li>Use styling from project CSS files, without using CDN;</li>
                <li>Replicate the capability of classless CSS framework using Tailwind;</li>
                </ul>
                
                <h2>
                  
                  
                  References
                </h2>
                
                <ul>
                <li>https://dev.to/leonardorafael/the-classless-and-class-light-css-aproaches-2b98</li>
                <li>https://prismic.io/blog/best-css-frameworks</li>
                <li>
                https://saeedesmaili.com/notes/classless-css-libraries/ </li>
                <li>https://dev.to/logrocket/comparing-classless-css-frameworks-3267</li>
                <li>https://github.com/dbohdan/classless-css</li>
                <li>https://github.com/troxler/awesome-css-frameworks</li>
                </ul>
                
                
                          
                
                            
                        <p>The above is the detailed content of Ruby on Rails  Front-end Rápido com Frameworks CSS Classless ou Class-Light Usando CDN. For more information, please follow other related articles on the PHP Chinese website!</p>
                
                
                						</div>
                					</div>
                					<div   id="wjcelcm34c"   class="wzconShengming_sp">
                						<div   id="wjcelcm34c"   class="bzsmdiv_sp">Statement of this Website</div>
                						<div>The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn</div>
                					</div>
                				</div>
                
                				<ins class="adsbygoogle"
                     style="display:block"
                     data-ad-format="autorelaxed"
                     data-ad-client="ca-pub-5902227090019525"
                     data-ad-slot="2507867629"></ins>
                
                
                
                				<div   id="wjcelcm34c"   class="AI_ToolDetails_main4sR">
                
                
                				<ins class="adsbygoogle"
                        style="display:block"
                        data-ad-client="ca-pub-5902227090019525"
                        data-ad-slot="3653428331"
                        data-ad-format="auto"
                        data-full-width-responsive="true"></ins>
                    
                
                
                					<!-- <div   id="wjcelcm34c"   class="phpgenera_Details_mainR4">
                						<div   id="wjcelcm34c"   class="phpmain1_4R_readrank">
                							<div   id="wjcelcm34c"   class="phpmain1_4R_readrank_top">
                								<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
                									onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
                									src="/static/imghw/hotarticle2.png" alt="" />
                								<h2>Hot Article</h2>
                							</div>
                							<div   id="wjcelcm34c"   class="phpgenera_Details_mainR4_bottom">
                															<div   id="wjcelcm34c"   class="phpgenera_Details_mainR4_bottoms">
                									<a href="http://ipnx.cn/faq/1796832397.html" title="Grass Wonder Build Guide | Uma Musume Pretty Derby" class="phpgenera_Details_mainR4_bottom_title">Grass Wonder Build Guide | Uma Musume Pretty Derby</a>
                									<div   id="wjcelcm34c"   class="phpgenera_Details_mainR4_bottoms_info">
                										<span>4 weeks ago</span>
                										<span>By Jack chen</span>
                									</div>
                								</div>
                															<div   id="wjcelcm34c"   class="phpgenera_Details_mainR4_bottoms">
                									<a href="http://ipnx.cn/faq/1796833110.html" title="Roblox: 99 Nights In The Forest - All Badges And How To Unlock Them" class="phpgenera_Details_mainR4_bottom_title">Roblox: 99 Nights In The Forest - All Badges And How To Unlock Them</a>
                									<div   id="wjcelcm34c"   class="phpgenera_Details_mainR4_bottoms_info">
                										<span>4 weeks ago</span>
                										<span>By DDD</span>
                									</div>
                								</div>
                															<div   id="wjcelcm34c"   class="phpgenera_Details_mainR4_bottoms">
                									<a href="http://ipnx.cn/faq/1796831605.html" title="Uma Musume Pretty Derby Banner Schedule (July 2025)" class="phpgenera_Details_mainR4_bottom_title">Uma Musume Pretty Derby Banner Schedule (July 2025)</a>
                									<div   id="wjcelcm34c"   class="phpgenera_Details_mainR4_bottoms_info">
                										<span>1 months ago</span>
                										<span>By Jack chen</span>
                									</div>
                								</div>
                															<div   id="wjcelcm34c"   class="phpgenera_Details_mainR4_bottoms">
                									<a href="http://ipnx.cn/faq/1796836699.html" title="RimWorld Odyssey Temperature Guide for Ships and Gravtech" class="phpgenera_Details_mainR4_bottom_title">RimWorld Odyssey Temperature Guide for Ships and Gravtech</a>
                									<div   id="wjcelcm34c"   class="phpgenera_Details_mainR4_bottoms_info">
                										<span>3 weeks ago</span>
                										<span>By Jack chen</span>
                									</div>
                								</div>
                															<div   id="wjcelcm34c"   class="phpgenera_Details_mainR4_bottoms">
                									<a href="http://ipnx.cn/faq/1796831905.html" title="Windows Security is blank or not showing options" class="phpgenera_Details_mainR4_bottom_title">Windows Security is blank or not showing options</a>
                									<div   id="wjcelcm34c"   class="phpgenera_Details_mainR4_bottoms_info">
                										<span>1 months ago</span>
                										<span>By 下次還敢</span>
                									</div>
                								</div>
                														</div>
                							<div   id="wjcelcm34c"   class="phpgenera_Details_mainR3_more">
                								<a href="http://ipnx.cn/article.html">Show More</a>
                							</div>
                						</div>
                					</div> -->
                
                
                											<div   id="wjcelcm34c"   class="phpgenera_Details_mainR3">
                							<div   id="wjcelcm34c"   class="phpmain1_4R_readrank">
                								<div   id="wjcelcm34c"   class="phpmain1_4R_readrank_top">
                									<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
                										onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
                										src="/static/imghw/hottools2.png" alt="" />
                									<h2>Hot AI Tools</h2>
                								</div>
                								<div   id="wjcelcm34c"   class="phpgenera_Details_mainR3_bottom">
                																		<div   id="wjcelcm34c"   class="phpmain_tab2_mids_top">
                											<a href="http://ipnx.cn/ai/undress-ai-tool" title="Undress AI Tool" class="phpmain_tab2_mids_top_img">
                												<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
                													onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
                													class="lazy"  data-src="https://img.php.cn/upload/ai_manual/001/246/273/173410641626608.jpg?x-oss-process=image/resize,m_fill,h_50,w_50" src="/static/imghw/default1.png" alt="Undress AI Tool" />
                											</a>
                											<div   id="wjcelcm34c"   class="phpmain_tab2_mids_info">
                												<a href="http://ipnx.cn/ai/undress-ai-tool" title="Undress AI Tool" class="phpmain_tab2_mids_title">
                													<h3>Undress AI Tool</h3>
                												</a>
                												<p>Undress images for free</p>
                											</div>
                										</div>
                																		<div   id="wjcelcm34c"   class="phpmain_tab2_mids_top">
                											<a href="http://ipnx.cn/ai/undresserai-undress" title="Undresser.AI Undress" class="phpmain_tab2_mids_top_img">
                												<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
                													onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
                													class="lazy"  data-src="https://img.php.cn/upload/ai_manual/001/246/273/173411540686492.jpg?x-oss-process=image/resize,m_fill,h_50,w_50" src="/static/imghw/default1.png" alt="Undresser.AI Undress" />
                											</a>
                											<div   id="wjcelcm34c"   class="phpmain_tab2_mids_info">
                												<a href="http://ipnx.cn/ai/undresserai-undress" title="Undresser.AI Undress" class="phpmain_tab2_mids_title">
                													<h3>Undresser.AI Undress</h3>
                												</a>
                												<p>AI-powered app for creating realistic nude photos</p>
                											</div>
                										</div>
                																		<div   id="wjcelcm34c"   class="phpmain_tab2_mids_top">
                											<a href="http://ipnx.cn/ai/ai-clothes-remover" title="AI Clothes Remover" class="phpmain_tab2_mids_top_img">
                												<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
                													onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
                													class="lazy"  data-src="https://img.php.cn/upload/ai_manual/001/246/273/173411552797167.jpg?x-oss-process=image/resize,m_fill,h_50,w_50" src="/static/imghw/default1.png" alt="AI Clothes Remover" />
                											</a>
                											<div   id="wjcelcm34c"   class="phpmain_tab2_mids_info">
                												<a href="http://ipnx.cn/ai/ai-clothes-remover" title="AI Clothes Remover" class="phpmain_tab2_mids_title">
                													<h3>AI Clothes Remover</h3>
                												</a>
                												<p>Online AI tool for removing clothes from photos.</p>
                											</div>
                										</div>
                																		<div   id="wjcelcm34c"   class="phpmain_tab2_mids_top">
                											<a href="http://ipnx.cn/ai/clothoffio" title="Clothoff.io" class="phpmain_tab2_mids_top_img">
                												<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
                													onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
                													class="lazy"  data-src="https://img.php.cn/upload/ai_manual/001/246/273/173411529149311.jpg?x-oss-process=image/resize,m_fill,h_50,w_50" src="/static/imghw/default1.png" alt="Clothoff.io" />
                											</a>
                											<div   id="wjcelcm34c"   class="phpmain_tab2_mids_info">
                												<a href="http://ipnx.cn/ai/clothoffio" title="Clothoff.io" class="phpmain_tab2_mids_title">
                													<h3>Clothoff.io</h3>
                												</a>
                												<p>AI clothes remover</p>
                											</div>
                										</div>
                																		<div   id="wjcelcm34c"   class="phpmain_tab2_mids_top">
                											<a href="http://ipnx.cn/ai/video-swap" title="Video Face Swap" class="phpmain_tab2_mids_top_img">
                												<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
                													onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
                													class="lazy"  data-src="https://img.php.cn/upload/ai_manual/001/246/273/173414504068133.jpg?x-oss-process=image/resize,m_fill,h_50,w_50" src="/static/imghw/default1.png" alt="Video Face Swap" />
                											</a>
                											<div   id="wjcelcm34c"   class="phpmain_tab2_mids_info">
                												<a href="http://ipnx.cn/ai/video-swap" title="Video Face Swap" class="phpmain_tab2_mids_title">
                													<h3>Video Face Swap</h3>
                												</a>
                												<p>Swap faces in any video effortlessly with our completely free AI face swap tool!</p>
                											</div>
                										</div>
                																</div>
                								<div   id="wjcelcm34c"   class="phpgenera_Details_mainR3_more">
                									<a href="http://ipnx.cn/ai">Show More</a>
                								</div>
                							</div>
                						</div>
                					
                
                
                					<div   id="wjcelcm34c"   class="phpgenera_Details_mainR4">
                						<div   id="wjcelcm34c"   class="phpmain1_4R_readrank">
                							<div   id="wjcelcm34c"   class="phpmain1_4R_readrank_top">
                								<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
                									onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
                									src="/static/imghw/hotarticle2.png" alt="" />
                								<h2>Hot Article</h2>
                							</div>
                							<div   id="wjcelcm34c"   class="phpgenera_Details_mainR4_bottom">
                															<div   id="wjcelcm34c"   class="phpgenera_Details_mainR4_bottoms">
                									<a href="http://ipnx.cn/faq/1796832397.html" title="Grass Wonder Build Guide | Uma Musume Pretty Derby" class="phpgenera_Details_mainR4_bottom_title">Grass Wonder Build Guide | Uma Musume Pretty Derby</a>
                									<div   id="wjcelcm34c"   class="phpgenera_Details_mainR4_bottoms_info">
                										<span>4 weeks ago</span>
                										<span>By Jack chen</span>
                									</div>
                								</div>
                															<div   id="wjcelcm34c"   class="phpgenera_Details_mainR4_bottoms">
                									<a href="http://ipnx.cn/faq/1796833110.html" title="Roblox: 99 Nights In The Forest - All Badges And How To Unlock Them" class="phpgenera_Details_mainR4_bottom_title">Roblox: 99 Nights In The Forest - All Badges And How To Unlock Them</a>
                									<div   id="wjcelcm34c"   class="phpgenera_Details_mainR4_bottoms_info">
                										<span>4 weeks ago</span>
                										<span>By DDD</span>
                									</div>
                								</div>
                															<div   id="wjcelcm34c"   class="phpgenera_Details_mainR4_bottoms">
                									<a href="http://ipnx.cn/faq/1796831605.html" title="Uma Musume Pretty Derby Banner Schedule (July 2025)" class="phpgenera_Details_mainR4_bottom_title">Uma Musume Pretty Derby Banner Schedule (July 2025)</a>
                									<div   id="wjcelcm34c"   class="phpgenera_Details_mainR4_bottoms_info">
                										<span>1 months ago</span>
                										<span>By Jack chen</span>
                									</div>
                								</div>
                															<div   id="wjcelcm34c"   class="phpgenera_Details_mainR4_bottoms">
                									<a href="http://ipnx.cn/faq/1796836699.html" title="RimWorld Odyssey Temperature Guide for Ships and Gravtech" class="phpgenera_Details_mainR4_bottom_title">RimWorld Odyssey Temperature Guide for Ships and Gravtech</a>
                									<div   id="wjcelcm34c"   class="phpgenera_Details_mainR4_bottoms_info">
                										<span>3 weeks ago</span>
                										<span>By Jack chen</span>
                									</div>
                								</div>
                															<div   id="wjcelcm34c"   class="phpgenera_Details_mainR4_bottoms">
                									<a href="http://ipnx.cn/faq/1796831905.html" title="Windows Security is blank or not showing options" class="phpgenera_Details_mainR4_bottom_title">Windows Security is blank or not showing options</a>
                									<div   id="wjcelcm34c"   class="phpgenera_Details_mainR4_bottoms_info">
                										<span>1 months ago</span>
                										<span>By 下次還敢</span>
                									</div>
                								</div>
                														</div>
                							<div   id="wjcelcm34c"   class="phpgenera_Details_mainR3_more">
                								<a href="http://ipnx.cn/article.html">Show More</a>
                							</div>
                						</div>
                					</div>
                
                
                											<div   id="wjcelcm34c"   class="phpgenera_Details_mainR3">
                							<div   id="wjcelcm34c"   class="phpmain1_4R_readrank">
                								<div   id="wjcelcm34c"   class="phpmain1_4R_readrank_top">
                									<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
                										onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
                										src="/static/imghw/hottools2.png" alt="" />
                									<h2>Hot Tools</h2>
                								</div>
                								<div   id="wjcelcm34c"   class="phpgenera_Details_mainR3_bottom">
                																		<div   id="wjcelcm34c"   class="phpmain_tab2_mids_top">
                											<a href="http://ipnx.cn/toolset/development-tools/92" title="Notepad++7.3.1" class="phpmain_tab2_mids_top_img">
                												<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
                													onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
                													class="lazy"  data-src="https://img.php.cn/upload/manual/000/000/001/58ab96f0f39f7357.jpg?x-oss-process=image/resize,m_fill,h_50,w_72" src="/static/imghw/default1.png" alt="Notepad++7.3.1" />
                											</a>
                											<div   id="wjcelcm34c"   class="phpmain_tab2_mids_info">
                												<a href="http://ipnx.cn/toolset/development-tools/92" title="Notepad++7.3.1" class="phpmain_tab2_mids_title">
                													<h3>Notepad++7.3.1</h3>
                												</a>
                												<p>Easy-to-use and free code editor</p>
                											</div>
                										</div>
                																			<div   id="wjcelcm34c"   class="phpmain_tab2_mids_top">
                											<a href="http://ipnx.cn/toolset/development-tools/93" title="SublimeText3 Chinese version" class="phpmain_tab2_mids_top_img">
                												<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
                													onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
                													class="lazy"  data-src="https://img.php.cn/upload/manual/000/000/001/58ab97a3baad9677.jpg?x-oss-process=image/resize,m_fill,h_50,w_72" src="/static/imghw/default1.png" alt="SublimeText3 Chinese version" />
                											</a>
                											<div   id="wjcelcm34c"   class="phpmain_tab2_mids_info">
                												<a href="http://ipnx.cn/toolset/development-tools/93" title="SublimeText3 Chinese version" class="phpmain_tab2_mids_title">
                													<h3>SublimeText3 Chinese version</h3>
                												</a>
                												<p>Chinese version, very easy to use</p>
                											</div>
                										</div>
                																			<div   id="wjcelcm34c"   class="phpmain_tab2_mids_top">
                											<a href="http://ipnx.cn/toolset/development-tools/121" title="Zend Studio 13.0.1" class="phpmain_tab2_mids_top_img">
                												<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
                													onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
                													class="lazy"  data-src="https://img.php.cn/upload/manual/000/000/001/58ab97ecd1ab2670.jpg?x-oss-process=image/resize,m_fill,h_50,w_72" src="/static/imghw/default1.png" alt="Zend Studio 13.0.1" />
                											</a>
                											<div   id="wjcelcm34c"   class="phpmain_tab2_mids_info">
                												<a href="http://ipnx.cn/toolset/development-tools/121" title="Zend Studio 13.0.1" class="phpmain_tab2_mids_title">
                													<h3>Zend Studio 13.0.1</h3>
                												</a>
                												<p>Powerful PHP integrated development environment</p>
                											</div>
                										</div>
                																			<div   id="wjcelcm34c"   class="phpmain_tab2_mids_top">
                											<a href="http://ipnx.cn/toolset/development-tools/469" title="Dreamweaver CS6" class="phpmain_tab2_mids_top_img">
                												<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
                													onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
                													class="lazy"  data-src="https://img.php.cn/upload/manual/000/000/001/58d0e0fc74683535.jpg?x-oss-process=image/resize,m_fill,h_50,w_72" src="/static/imghw/default1.png" alt="Dreamweaver CS6" />
                											</a>
                											<div   id="wjcelcm34c"   class="phpmain_tab2_mids_info">
                												<a href="http://ipnx.cn/toolset/development-tools/469" title="Dreamweaver CS6" class="phpmain_tab2_mids_title">
                													<h3>Dreamweaver CS6</h3>
                												</a>
                												<p>Visual web development tools</p>
                											</div>
                										</div>
                																			<div   id="wjcelcm34c"   class="phpmain_tab2_mids_top">
                											<a href="http://ipnx.cn/toolset/development-tools/500" title="SublimeText3 Mac version" class="phpmain_tab2_mids_top_img">
                												<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
                													onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
                													class="lazy"  data-src="https://img.php.cn/upload/manual/000/000/001/58d34035e2757995.png?x-oss-process=image/resize,m_fill,h_50,w_72" src="/static/imghw/default1.png" alt="SublimeText3 Mac version" />
                											</a>
                											<div   id="wjcelcm34c"   class="phpmain_tab2_mids_info">
                												<a href="http://ipnx.cn/toolset/development-tools/500" title="SublimeText3 Mac version" class="phpmain_tab2_mids_title">
                													<h3>SublimeText3 Mac version</h3>
                												</a>
                												<p>God-level code editing software (SublimeText3)</p>
                											</div>
                										</div>
                																	</div>
                								<div   id="wjcelcm34c"   class="phpgenera_Details_mainR3_more">
                									<a href="http://ipnx.cn/ai">Show More</a>
                								</div>
                							</div>
                						</div>
                										
                
                					
                					<div   id="wjcelcm34c"   class="phpgenera_Details_mainR4">
                						<div   id="wjcelcm34c"   class="phpmain1_4R_readrank">
                							<div   id="wjcelcm34c"   class="phpmain1_4R_readrank_top">
                								<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
                									onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
                									src="/static/imghw/hotarticle2.png" alt="" />
                								<h2>Hot Topics</h2>
                							</div>
                							<div   id="wjcelcm34c"   class="phpgenera_Details_mainR4_bottom">
                															<div   id="wjcelcm34c"   class="phpgenera_Details_mainR4_bottoms">
                									<a href="http://ipnx.cn/faq/laravel-tutori" title="Laravel Tutorial" class="phpgenera_Details_mainR4_bottom_title">Laravel Tutorial</a>
                									<div   id="wjcelcm34c"   class="phpgenera_Details_mainR4_bottoms_info">
                										<div   id="wjcelcm34c"   class="phpgenera_Details_mainR4_bottoms_infos">
                											<img src="/static/imghw/eyess.png" alt="" />
                											<span>1597</span>
                										</div>
                										<div   id="wjcelcm34c"   class="phpgenera_Details_mainR4_bottoms_infos">
                											<img src="/static/imghw/tiezi.png" alt="" />
                											<span>29</span>
                										</div>
                									</div>
                								</div>
                															<div   id="wjcelcm34c"   class="phpgenera_Details_mainR4_bottoms">
                									<a href="http://ipnx.cn/faq/php-tutorial" title="PHP Tutorial" class="phpgenera_Details_mainR4_bottom_title">PHP Tutorial</a>
                									<div   id="wjcelcm34c"   class="phpgenera_Details_mainR4_bottoms_info">
                										<div   id="wjcelcm34c"   class="phpgenera_Details_mainR4_bottoms_infos">
                											<img src="/static/imghw/eyess.png" alt="" />
                											<span>1488</span>
                										</div>
                										<div   id="wjcelcm34c"   class="phpgenera_Details_mainR4_bottoms_infos">
                											<img src="/static/imghw/tiezi.png" alt="" />
                											<span>72</span>
                										</div>
                									</div>
                								</div>
                														</div>
                							<div   id="wjcelcm34c"   class="phpgenera_Details_mainR3_more">
                								<a href="http://ipnx.cn/faq/zt">Show More</a>
                							</div>
                						</div>
                					</div>
                				</div>
                			</div>
                							<div   id="wjcelcm34c"   class="Article_Details_main2">
                					<div   id="wjcelcm34c"   class="phpgenera_Details_mainL4">
                						<div   id="wjcelcm34c"   class="phpmain1_2_top">
                							<a href="javascript:void(0);" class="phpmain1_2_top_title">Related knowledge<img
                									src="/static/imghw/index2_title2.png" alt="" /></a>
                						</div>
                						<div   id="wjcelcm34c"   class="phpgenera_Details_mainL4_info">
                
                													<div   id="wjcelcm34c"   class="phphistorical_Version2_mids">
                								<a href="http://ipnx.cn/faq/1796831408.html" title="CSS tutorial for creating loading spinners and animations" class="phphistorical_Version2_mids_img">
                									<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
                										src="/static/imghw/default1.png" class="lazy"  data-src="https://img.php.cn/upload/article/001/431/639/175181807052041.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="CSS tutorial for creating loading spinners and animations" />
                								</a>
                								<a href="http://ipnx.cn/faq/1796831408.html" title="CSS tutorial for creating loading spinners and animations" class="phphistorical_Version2_mids_title">CSS tutorial for creating loading spinners and animations</a>
                								<span id="wjcelcm34c"    class="Articlelist_txts_time">Jul 07, 2025 am	 12:07 AM</span>
                								<p class="Articlelist_txts_p">There are three ways to create a CSS loading rotator: 1. Use the basic rotator of borders to achieve simple animation through HTML and CSS; 2. Use a custom rotator of multiple points to achieve the jump effect through different delay times; 3. Add a rotator in the button and switch classes through JavaScript to display the loading status. Each approach emphasizes the importance of design details such as color, size, accessibility and performance optimization to enhance the user experience.</p>
                							</div>
                														<div   id="wjcelcm34c"   class="phphistorical_Version2_mids">
                								<a href="http://ipnx.cn/faq/1796831743.html" title="Addressing CSS Browser Compatibility issues and prefixes" class="phphistorical_Version2_mids_img">
                									<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
                										src="/static/imghw/default1.png" class="lazy"  data-src="https://img.php.cn/upload/article/001/253/068/175182386183257.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="Addressing CSS Browser Compatibility issues and prefixes" />
                								</a>
                								<a href="http://ipnx.cn/faq/1796831743.html" title="Addressing CSS Browser Compatibility issues and prefixes" class="phphistorical_Version2_mids_title">Addressing CSS Browser Compatibility issues and prefixes</a>
                								<span id="wjcelcm34c"    class="Articlelist_txts_time">Jul 07, 2025 am	 01:44 AM</span>
                								<p class="Articlelist_txts_p">To deal with CSS browser compatibility and prefix issues, you need to understand the differences in browser support and use vendor prefixes reasonably. 1. Understand common problems such as Flexbox and Grid support, position:sticky invalid, and animation performance is different; 2. Check CanIuse confirmation feature support status; 3. Correctly use -webkit-, -moz-, -ms-, -o- and other manufacturer prefixes; 4. It is recommended to use Autoprefixer to automatically add prefixes; 5. Install PostCSS and configure browserslist to specify the target browser; 6. Automatically handle compatibility during construction; 7. Modernizr detection features can be used for old projects; 8. No need to pursue consistency of all browsers,</p>
                							</div>
                														<div   id="wjcelcm34c"   class="phphistorical_Version2_mids">
                								<a href="http://ipnx.cn/faq/1796834914.html" title="What is the difference between display: inline, display: block, and display: inline-block?" class="phphistorical_Version2_mids_img">
                									<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
                										src="/static/imghw/default1.png" class="lazy"  data-src="https://img.php.cn/upload/article/001/253/068/175217550090568.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="What is the difference between display: inline, display: block, and display: inline-block?" />
                								</a>
                								<a href="http://ipnx.cn/faq/1796834914.html" title="What is the difference between display: inline, display: block, and display: inline-block?" class="phphistorical_Version2_mids_title">What is the difference between display: inline, display: block, and display: inline-block?</a>
                								<span id="wjcelcm34c"    class="Articlelist_txts_time">Jul 11, 2025 am	 03:25 AM</span>
                								<p class="Articlelist_txts_p">Themaindifferencesbetweendisplay:inline,block,andinline-blockinHTML/CSSarelayoutbehavior,spaceusage,andstylingcontrol.1.Inlineelementsflowwithtext,don’tstartonnewlines,ignorewidth/height,andonlyapplyhorizontalpadding/margins—idealforinlinetextstyling</p>
                							</div>
                														<div   id="wjcelcm34c"   class="phphistorical_Version2_mids">
                								<a href="http://ipnx.cn/faq/1796833145.html" title="Creating custom shapes with css clip-path" class="phphistorical_Version2_mids_img">
                									<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
                										src="/static/imghw/default1.png" class="lazy"  data-src="https://img.php.cn/upload/article/001/253/068/175199577133591.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="Creating custom shapes with css clip-path" />
                								</a>
                								<a href="http://ipnx.cn/faq/1796833145.html" title="Creating custom shapes with css clip-path" class="phphistorical_Version2_mids_title">Creating custom shapes with css clip-path</a>
                								<span id="wjcelcm34c"    class="Articlelist_txts_time">Jul 09, 2025 am	 01:29 AM</span>
                								<p class="Articlelist_txts_p">Use the clip-path attribute of CSS to crop elements into custom shapes, such as triangles, circular notches, polygons, etc., without relying on pictures or SVGs. Its advantages include: 1. Supports a variety of basic shapes such as circle, ellipse, polygon, etc.; 2. Responsive adjustment and adaptable to mobile terminals; 3. Easy to animation, and can be combined with hover or JavaScript to achieve dynamic effects; 4. It does not affect the layout flow, and only crops the display area. Common usages are such as circular clip-path:circle (50pxatcenter) and triangle clip-path:polygon (50%0%, 100 0%, 0 0%). Notice</p>
                							</div>
                														<div   id="wjcelcm34c"   class="phphistorical_Version2_mids">
                								<a href="http://ipnx.cn/faq/1796834918.html" title="Styling visited links differently with CSS" class="phphistorical_Version2_mids_img">
                									<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
                										src="/static/imghw/default1.png" class="lazy"  data-src="https://img.php.cn/upload/article/001/253/068/175217558128323.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="Styling visited links differently with CSS" />
                								</a>
                								<a href="http://ipnx.cn/faq/1796834918.html" title="Styling visited links differently with CSS" class="phphistorical_Version2_mids_title">Styling visited links differently with CSS</a>
                								<span id="wjcelcm34c"    class="Articlelist_txts_time">Jul 11, 2025 am	 03:26 AM</span>
                								<p class="Articlelist_txts_p">Setting the style of links you have visited can improve the user experience, especially in content-intensive websites to help users navigate better. 1. Use CSS's: visited pseudo-class to define the style of the visited link, such as color changes; 2. Note that the browser only allows modification of some attributes due to privacy restrictions; 3. The color selection should be coordinated with the overall style to avoid abruptness; 4. The mobile terminal may not display this effect, and it is recommended to combine it with other visual prompts such as icon auxiliary logos.</p>
                							</div>
                														<div   id="wjcelcm34c"   class="phphistorical_Version2_mids">
                								<a href="http://ipnx.cn/faq/1796837251.html" title="How to create responsive images using CSS?" class="phphistorical_Version2_mids_img">
                									<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
                										src="/static/imghw/default1.png" class="lazy"  data-src="https://img.php.cn/upload/article/001/253/068/175251305059116.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="How to create responsive images using CSS?" />
                								</a>
                								<a href="http://ipnx.cn/faq/1796837251.html" title="How to create responsive images using CSS?" class="phphistorical_Version2_mids_title">How to create responsive images using CSS?</a>
                								<span id="wjcelcm34c"    class="Articlelist_txts_time">Jul 15, 2025 am	 01:10 AM</span>
                								<p class="Articlelist_txts_p">To create responsive images using CSS, it can be mainly achieved through the following methods: 1. Use max-width:100% and height:auto to allow the image to adapt to the container width while maintaining the proportion; 2. Use HTML's srcset and sizes attributes to intelligently load the image sources adapted to different screens; 3. Use object-fit and object-position to control image cropping and focus display. Together, these methods ensure that the images are presented clearly and beautifully on different devices.</p>
                							</div>
                														<div   id="wjcelcm34c"   class="phphistorical_Version2_mids">
                								<a href="http://ipnx.cn/faq/1796832540.html" title="Demystifying CSS Units: px, em, rem, vw, vh comparisons" class="phphistorical_Version2_mids_img">
                									<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
                										src="/static/imghw/default1.png" class="lazy"  data-src="https://img.php.cn/upload/article/001/253/068/175191219061804.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="Demystifying CSS Units: px, em, rem, vw, vh comparisons" />
                								</a>
                								<a href="http://ipnx.cn/faq/1796832540.html" title="Demystifying CSS Units: px, em, rem, vw, vh comparisons" class="phphistorical_Version2_mids_title">Demystifying CSS Units: px, em, rem, vw, vh comparisons</a>
                								<span id="wjcelcm34c"    class="Articlelist_txts_time">Jul 08, 2025 am	 02:16 AM</span>
                								<p class="Articlelist_txts_p">The choice of CSS units depends on design requirements and responsive requirements. 1.px is used for fixed size, suitable for precise control but lack of elasticity; 2.em is a relative unit, which is easily caused by the influence of the parent element, while rem is more stable based on the root element and is suitable for global scaling; 3.vw/vh is based on the viewport size, suitable for responsive design, but attention should be paid to the performance under extreme screens; 4. When choosing, it should be determined based on whether responsive adjustments, element hierarchy relationships and viewport dependence. Reasonable use can improve layout flexibility and maintenance.</p>
                							</div>
                														<div   id="wjcelcm34c"   class="phphistorical_Version2_mids">
                								<a href="http://ipnx.cn/faq/1796847484.html" title="What are common CSS browser inconsistencies?" class="phphistorical_Version2_mids_img">
                									<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
                										src="/static/imghw/default1.png" class="lazy"  data-src="https://img.php.cn/upload/article/001/253/068/175348469118409.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="What are common CSS browser inconsistencies?" />
                								</a>
                								<a href="http://ipnx.cn/faq/1796847484.html" title="What are common CSS browser inconsistencies?" class="phphistorical_Version2_mids_title">What are common CSS browser inconsistencies?</a>
                								<span id="wjcelcm34c"    class="Articlelist_txts_time">Jul 26, 2025 am	 07:04 AM</span>
                								<p class="Articlelist_txts_p">Different browsers have differences in CSS parsing, resulting in inconsistent display effects, mainly including the default style difference, box model calculation method, Flexbox and Grid layout support level, and inconsistent behavior of certain CSS attributes. 1. The default style processing is inconsistent. The solution is to use CSSReset or Normalize.css to unify the initial style; 2. The box model calculation method of the old version of IE is different. It is recommended to use box-sizing:border-box in a unified manner; 3. Flexbox and Grid perform differently in edge cases or in old versions. More tests and use Autoprefixer; 4. Some CSS attribute behaviors are inconsistent. CanIuse must be consulted and downgraded.</p>
                							</div>
                													</div>
                
                													<a href="http://ipnx.cn/web-designer.html" class="phpgenera_Details_mainL4_botton">
                								<span>See all articles</span>
                								<img src="/static/imghw/down_right.png" alt="" />
                							</a>
                											</div>
                				</div>
                					</div>
                	</main>
                	<footer>
                    <div   id="wjcelcm34c"   class="footer">
                        <div   id="wjcelcm34c"   class="footertop">
                            <img src="/static/imghw/logo.png" alt="">
                            <p>Public welfare online PHP training,Help PHP learners grow quickly!</p>
                        </div>
                        <div   id="wjcelcm34c"   class="footermid">
                            <a href="http://ipnx.cn/about/us.html">About us</a>
                            <a href="http://ipnx.cn/about/disclaimer.html">Disclaimer</a>
                            <a href="http://ipnx.cn/update/article_0_1.html">Sitemap</a>
                        </div>
                        <div   id="wjcelcm34c"   class="footerbottom">
                            <p>
                                ? php.cn All rights reserved
                            </p>
                        </div>
                    </div>
                </footer>
                
                <input type="hidden" id="verifycode" value="/captcha.html">
                
                
                
                
                		<link rel='stylesheet' id='_main-css' href='/static/css/viewer.min.css?2' type='text/css' media='all' />
                	
                	
                	
                	
                	
                
                	
                	
                
                
                
                
                
                <footer>
                <div class="friendship-link">
                <p>感谢您访问我们的网站,您可能还对以下资源感兴趣:</p>
                <a href="http://ipnx.cn/" title="亚洲国产日韩欧美一区二区三区">亚洲国产日韩欧美一区二区三区</a>
                
                <div class="friend-links">
                
                
                </div>
                </div>
                
                </footer>
                
                
                <script>
                (function(){
                    var bp = document.createElement('script');
                    var curProtocol = window.location.protocol.split(':')[0];
                    if (curProtocol === 'https') {
                        bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
                    }
                    else {
                        bp.src = 'http://push.zhanzhang.baidu.com/push.js';
                    }
                    var s = document.getElementsByTagName("script")[0];
                    s.parentNode.insertBefore(bp, s);
                })();
                </script>
                </body><div id="8cgcb" class="pl_css_ganrao" style="display: none;"><tt id="8cgcb"></tt><form id="8cgcb"><label id="8cgcb"></label></form><ul id="8cgcb"></ul><menuitem id="8cgcb"></menuitem><tt id="8cgcb"></tt><tr id="8cgcb"><tr id="8cgcb"><label id="8cgcb"><dfn id="8cgcb"></dfn></label></tr></tr><small id="8cgcb"><sup id="8cgcb"></sup></small><samp id="8cgcb"></samp><cite id="8cgcb"><noframes id="8cgcb"><sub id="8cgcb"><i id="8cgcb"></i></sub></noframes></cite><legend id="8cgcb"></legend><rt id="8cgcb"><tr id="8cgcb"></tr></rt><address id="8cgcb"></address><center id="8cgcb"></center><tt id="8cgcb"><source id="8cgcb"><tbody id="8cgcb"></tbody></source></tt><span id="8cgcb"></span><th id="8cgcb"></th><xmp id="8cgcb"></xmp><pre id="8cgcb"><label id="8cgcb"></label></pre><pre id="8cgcb"></pre><b id="8cgcb"><wbr id="8cgcb"><strong id="8cgcb"><output id="8cgcb"></output></strong></wbr></b><font id="8cgcb"></font><xmp id="8cgcb"></xmp><small id="8cgcb"><td id="8cgcb"><bdo id="8cgcb"><ruby id="8cgcb"></ruby></bdo></td></small><tr id="8cgcb"></tr><em id="8cgcb"></em><progress id="8cgcb"></progress><th id="8cgcb"></th><thead id="8cgcb"><i id="8cgcb"></i></thead><blockquote id="8cgcb"></blockquote><var id="8cgcb"></var><dd id="8cgcb"><pre id="8cgcb"><ruby id="8cgcb"><tfoot id="8cgcb"></tfoot></ruby></pre></dd><label id="8cgcb"></label><dfn id="8cgcb"></dfn><delect id="8cgcb"></delect><dl id="8cgcb"></dl><font id="8cgcb"><thead id="8cgcb"></thead></font><menuitem id="8cgcb"><ol id="8cgcb"><em id="8cgcb"><address id="8cgcb"></address></em></ol></menuitem><ul id="8cgcb"></ul><th id="8cgcb"></th><form id="8cgcb"><strong id="8cgcb"><output id="8cgcb"><strike id="8cgcb"></strike></output></strong></form><bdo id="8cgcb"></bdo><code id="8cgcb"><output id="8cgcb"><acronym id="8cgcb"><nav id="8cgcb"></nav></acronym></output></code><u id="8cgcb"></u><th id="8cgcb"></th><acronym id="8cgcb"></acronym><samp id="8cgcb"></samp><pre id="8cgcb"><sup id="8cgcb"><u id="8cgcb"><blockquote id="8cgcb"></blockquote></u></sup></pre><object id="8cgcb"></object><thead id="8cgcb"></thead><tfoot id="8cgcb"><table id="8cgcb"></table></tfoot></div>
                
                </html>