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

网站设置的用途seo赚钱

网站设置的用途,seo赚钱,关键词,做门户网站需要什么资质一、html显示图片 1.工程包含Html需要显示的图片 2、CMakeLists.txt包含图片资源 举例&#xff1a; idf_component_register(SRCS main.cEMBED_FILES root.html favicon.ico) 3.html中图片的标签 <img src"motus.ico"> 4.后台代码的添加 static esp_e…

一、html显示图片

1.工程包含Html需要显示的图片

2、CMakeLists.txt包含图片资源

举例:

idf_component_register(SRCS main.cEMBED_FILES root.html  favicon.ico)

3.html中图片的标签

<img src="motus.ico">

4.后台代码的添加

static esp_err_t motus_get_handler(httpd_req_t *req)
{extern const unsigned char favicon_ico_start[] asm("_binary_motus_ico_start");extern const unsigned char favicon_ico_end[]   asm("_binary_motus_ico_end");const size_t favicon_ico_size = (favicon_ico_end - favicon_ico_start);httpd_resp_set_type(req, "image/x-icon");httpd_resp_send(req, (const char *)favicon_ico_start, favicon_ico_size);return ESP_OK;
}static const httpd_uri_t html_motus_ico = {.uri       = "/motus.ico",.method    = HTTP_GET,.handler   = motus_get_handler,.user_ctx  = NULL
};httpd_register_uri_handler(server, &html_motus_ico);

二、html添加样式文件

1.工程包含Html需要的样式文件

2、CMakeLists.txt包含样式资源

idf_component_register(SRCS main.cEMBED_FILES root.html style.css favicon.ico motus.ico)

3.html中样式的链接

<link rel="stylesheet" type="text/css" href="style.css">

4.后台代码的添加

static esp_err_t css_get_handler(httpd_req_t *req)
{extern const unsigned char css_start[] asm("_binary_style_css_start");extern const unsigned char css_end[]   asm("_binary_style_css_end");const size_t css_size = (css_end - css_start);httpd_resp_set_type(req, "text/css");httpd_resp_send(req, (const char *)css_start, css_size);return ESP_OK;
}static const httpd_uri_t html_css = {.uri       = "/style.css",.method    = HTTP_GET,.handler   = css_get_handler,.user_ctx  = NULL
};httpd_register_uri_handler(server, &html_css);

三、html添加js文件

1.工程包含Html需要的js文件

2、CMakeLists.txt包含样式资源

idf_component_register(SRCS main.cEMBED_FILES root.html style.css script.js favicon.ico motus.ico)

3.html中js的链接

<script src="script.js"></script>

4.后台代码的添加

static esp_err_t js_get_handler(httpd_req_t *req)
{extern const unsigned char js_start[] asm("_binary_script_js_start");extern const unsigned char js_end[]   asm("_binary_script_js_end");const size_t js_size = (js_end - js_start);httpd_resp_set_type(req, "text/js");httpd_resp_send(req, (const char *)js_start, js_size);return ESP_OK;
}//得到用户名和密码
static const httpd_uri_t html_js = {.uri       = "/script.js",.method    = HTTP_GET,.handler   = js_get_handler,.user_ctx  = NULL
};httpd_register_uri_handler(server, &html_js);
http://www.dtcms.com/wzjs/159417.html

相关文章:

  • 建网站 南京seo是哪里
  • inurl:网站建设腾讯体育nba
  • 做金融怎么进基金公司网站百度搜索推广登录入口
  • 泊头公司做网站seo专业论坛
  • 衢州网站设计公司有哪些分类达人介绍
  • 做财经比较好的网站网站优化怎么操作
  • 通过ip访问网站需要怎么做seo是什么意思呢
  • 怎么知道一个网站的权重黑龙江头条今日新闻
  • 手机网站要域名吗免费关键词排名优化
  • 网站建设的职称键词优化排名
  • 换域名对网站的影响seo优化培训机构
  • 做网站jsp好还是拓客引流推广
  • 青岛网站策划百度网盘怎么找片
  • 网站框架是谁做软文发稿网站
  • 网站商务通弹出窗口图片更换设置成都百度提升优化
  • 池州做网站培训seo刷关键词排名优化
  • 域名优化在线镇江seo优化
  • 网站建设与管理就业前景关键词优化最好的方法
  • 有没有免费的crm系统软件重庆百度seo整站优化
  • 网站弹窗是怎么做的电商怎么做推广
  • wordpress广告链接地址南昌网站优化公司
  • 凡科网之前做的网站在哪看软件推广赚佣金渠道
  • 私人pk赛车网站怎么做网站优化公司哪家效果好
  • app定制开发谈判技巧网站优化建设
  • 专业自适应网站建设极速建站seo优化方案策划书
  • 药品网站订单源码谷歌商店下载
  • 做网站域名需哪些网站收录批量查询
  • 网站开发建设赚钱吗网站案例
  • 人工智能 网站建设新开网站
  • 农业大学网站建设特点苏州百度推广