当前位置: 首页 > 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://www.huolong8.cn/news/233650/

相关文章:

  • 网站如何做视频链接网站建设一般需要多少费用
  • 建设银行e路护航官方网站登陆wordpress 最大上传
  • 网站开发seo规范品牌网站建设重點大蝌蚪
  • 柳州网站建设源码面向网站开发的相关知识
  • 网站建设中所涉及的所有链接建设360官方下载官网
  • 创建网站步骤公司变更法人的流程
  • 运营网站团队建设wordpress 企业 下载
  • 建公司网站的详细步骤wordpress cdn 阿里
  • 扁平风格网站 模板免费下载园林设计公司网站
  • 南宁世尊商贸网站建设公司简单网站多少钱
  • 吉林省住房建设厅网站汕头网站制作找谁
  • 教新手做网站难吗全球做的比较好的网站
  • 网站空间就是主机吗新闻媒体网站开发文档
  • 国外网站为什么不用备案吕梁购物网站开发设计
  • 济南做网站互联网公司有哪些微信网站用什么做的
  • 做百度移动端网站优化搜狗指数官网
  • 百度公司给做网站吗如何卸载和安装wordpress
  • 门头沟青岛网站建设做头像的网站有哪些
  • 阜新网站设计潍坊建设工程信息网站
  • 哪个网站做推销产品怎么注册网自己的网站吗
  • 网站站点查询做网站挣钱
  • 做优秀网站wordpress主题的安装教程
  • 安徽建站系统全面启动门户网站建设
  • 常州城投建设工程招标有限公司网站微信app下载安卓版官方下载
  • 肥城市住房和城乡建设厅网站手机能看禁止网站的浏览器
  • 做木质的网站二手设备回收做哪个网站好
  • 谷歌网站全网营销公司
  • win7做网站服务器网站重新解析
  • 做网站公司在丹麦传奇手游大型网站
  • 领域网站建设深圳罗湖互联网公司