当前位置: 首页 > news >正文

那个网站有帮人做图的邯郸市公司

那个网站有帮人做图的,邯郸市公司,做网站搞什么流量,网站如何做免费的推广css中的node.jsYou may think this is not important, but it is!. As a beginner in node.js, most coding exercises are always server sided. 您可能认为这并不重要#xff0c;但确实如此#xff01; 作为node.js的初学者#xff0c;大多数编码练习始终都是服务器端的。…css中的node.jsYou may think this is not important, but it is!. As a beginner in node.js, most coding exercises are always server sided. 您可能认为这并不重要但确实如此 作为node.js的初学者大多数编码练习始终都是服务器端的。 You may also think that styling your little node.js app or web page may always require template engines or external CSS/JavaScript files. 您可能还认为为小小的node.js应用程序或网页设置样式可能始终需要模板引擎或外部CSS / JavaScript文件。 Let me show you a method in which you can style your node.js web page or app without necessarily using a template engine or an external file. 让我向您展示一种无需使用模板引擎或外部文件即可对node.js网页或应用程序进行样式设置的方法。 Take Note! You should have Node js installed on your computer. 做记录 您应该在计算机上安装Node js。 With Node js already up and running, lets get started. Node Node js已经启动并运行让我们开始吧。 Lets build a kind of login web page with CSS styling which alerts welcome when loaded. 让我们用CSS样式构建一种登录网页该网页在加载时会发出欢迎消息。 Open a text editor and type the following code and save it with the file name app.js: 打开文本编辑器输入以下代码并将其保存为文件名app.js // include all required modules var http require (http); var express require (express); var fs require (fs); // server details var app express (); var server app.listen (1337, function () { console.log (server started at ::: port 1337); } ); app.get (/, function (req,res) { // html response var html ; html body ; html script; // javascript html alert (welcome);; html /script; html style ; // css style html input[typesubmit] ; html {background-color: #4CAF50;} ; html body{font-family: Comic Sans MS, cursive, sans-serif} html div {border-radius: 5px;background-color: #f2f2f2; padding: 40px;}; html input[typesubmit] {font-family: Comic Sans MS; width: 20%;background-color: green;color: white;padding: 14px 20px;margin: 8px 0;border: none;border-radius: 4px;cursor: pointer;}; html input[typetext], select {width: 100%;padding: 12px 20px;margin: 8px 0;display: inline-block;border: none;border-radius: 0px;box-sizing: border-box;border-bottom: 2px solid green;color: black;}; html h6 {font-size: 14px;color: #c8c8c8;}; html /style ; html body bgcolor lightgrey; html center; html div html fieldset; html legendLOGIN!!/legend; html label forlinkFIRST NAME/label; html input typetext namelink placeholderfirst name required size40 autofocus/br/br ; html /br html /br html label forfileLAST NAME:/label; html input type text namefile placeholderlast name! required size20/br/br ; html /fieldset; html input typesubmit valueLOGIN!; html ; html /form ; html center; html h6centerSENIOR Dev. /codeGodwill Tetah || [email protected]/codecopyright 2019 go237.com || All rights reserved. /h6; html /center; html /body ; // closed body res. send ( html) ; }); The file should be saved in your default node.js project directory. 该文件应保存在默认的node.js项目目录中。 Run the code by initiating the file at the command prompt like a regular node js file, and then open the port in a browser. 通过在命令提示符处启动文件(如常规节点js文件)来运行代码然后在浏览器中打开端口。 Take some time now and study the syntax properly. You’ll notice that I used html frequently. 现在花一些时间正确学习语法。 您会注意到我经常使用html 。 So you can play around with it to get your desired style. 因此您可以试用它以获得所需的样式。 This styling method is useful for small projects... 这种样式化方法对于小型项目很有用。 Output Image: 输出图像 Thanks for coding with me. Your comments are most welcome. 感谢您与我一起编码。 非常欢迎您发表评论。 翻译自: https://www.includehelp.com/node-js/using-basic-html-css-and-javascript-in-node-app.aspxcss中的node.js
http://wiki.neutronadmin.com/news/233650/

相关文章:

  • 潍坊网站空间虚拟资源下载源码wordpress
  • 浙江省建设培训中心网站首页seo外贸网站
  • 苏州互联网企业如何做网站优化的内容
  • 软件技术专业就业前景s网站优化
  • 网站gzip压缩网站建设维护报价
  • 麻涌镇网站仿做logo设计大师
  • 西安高校网站建设长春火车站现在正常通车吗
  • 龙岩网站设计制作动易网站管理系统下载
  • 免费网络推广网站大全成都网站建设成都
  • 西安企业门户网站建设python php网站开发
  • 做简历的什么客网站wordpress阅读次数自动增长
  • 动漫网站建设毕业设计怎样做广告设计
  • 东阳网站推广小米3g 架设wordpress
  • 容桂顺德网站建设怎么封锁网站
  • 洛阳网站建设培训建设企业银行客户号在哪里看
  • 搭建一个影视网站做文学类网站后期花费
  • 全国二级建造师查询官网龙岩网站建设方案优化
  • php开源公司网站苏州市城乡和建设局网站首页
  • 网站热销榜怎么做郑州公司网站建设服务
  • 给别人做网站的话术网站被攻击打不开怎么办
  • 开平建设局网站动画专业大学
  • 无锡网站建设工作建站模板工程造价
  • 如何在电脑上建设网站青岛房地产团购网站建设
  • 潍坊市网站中装建设为什么不涨
  • 谷歌推广新手教程广东网络seo推广公司
  • 青岛上市公司网站建设wordpress形式
  • 网站建设企业服务襄樊最好网站建设价格
  • 微网站 地图网站线框图用什么做
  • iis7.0搭建网站安卓门户网站开发
  • 网站策划与建设阶段网站txt地图怎么做