• 关于

    html的src

    的搜索结果

回答

他的Demo中图片是先放在src中,然后由js去先复制到_src中,再把src换成占位的。而js部分写在body的后面部分,按照加载顺序,当前是先加载图片,然后运行js,js此时修改src已经没什么意义了。使用lazyload当然是需要先把图片地址写在自定义属性比如lazy—src="xxx.jpg",然后再使用lazyload,当浏览到时会置换src和lazy-src来加载需要的图片了。我不明白的是他明明已经说了需要后端配合,却又说使用lazyload毫无意义。它的意义就是在页面html修改src后,可以在浏览时才加载图片。单纯的使用lazyload,却在src中写入真实图片资源地址当然是无意义的了。

小旋风柴进 2019-12-02 02:19:10 0 浏览量 回答数 0

问题

$("img[data-src!='']")选择器问题

小旋风柴进 2019-12-01 19:33:30 745 浏览量 回答数 1

问题

js 根据src的数量创建img标签?

杨冬芳 2019-12-01 20:07:18 1090 浏览量 回答数 1

阿里云试用中心,为您提供0门槛上云实践机会!

0元试用32+款产品,最高免费12个月!拨打95187-1,咨询专业上云建议!

回答

后台将图片src路径为默认图片占位地址。后台在图片的data-src属性中设置目标图片地址。在js中设定scroll事件,当图片出现在可视区时,将图片的src设为data-src的值并清除data-src属性。页面原始html代码大致是这样 <img class="lazy-img img" width="366" height="220" src="http://s0.meituan.net/www/img/lazyloading-srcimg.png" data-src="http://p0.meituan.net/366.220/deal/__28717764__5569470.jpg" /> js处理后变成这样 <img class="lazy-img img" width="366" height="220" src="http://p0.meituan.net/366.220/deal/__24490837__4538655.jpg" id="yui_3_12_0_1_1391857370901_700" /> js代码在这个文件的scrollloader模块中。

a123456678 2019-12-02 02:21:18 0 浏览量 回答数 0

问题

iframe src 跨域问题? 400 报错

爱吃鱼的程序员 2020-06-04 13:14:54 0 浏览量 回答数 1

问题

Wordpress MySQL选择查询以过滤包含img标记但没有src属性或空src的每个帖子内容

几许相思几点泪 2019-12-29 20:54:44 1 浏览量 回答数 1

问题

安装scrapy时出错errorcommandgccfailedwithexitstatus1

wangjifeng 2019-12-01 21:58:32 14714 浏览量 回答数 6

问题

reactjs的数据流组件写在不同的外部文件中可以吗?

a123456678 2019-12-01 20:17:51 1375 浏览量 回答数 1

回答

html <div> <ul> <li><img src="" alt=""></li> <li><img src="" alt=""></li> <li><img src="" alt=""></li> <li><img src="" alt=""></li> <li><img src="" alt=""></li> <li><img src="" alt=""></li> <li><img src="" alt=""></li> <li><img src="" alt=""></li> <li><img src="" alt=""></li> <li><img src="" alt=""></li> <li><img src="" alt=""></li> <li><img src="" alt=""></li> <li><img src="" alt=""></li> <li><img src="" alt=""></li> <li><img src="" alt=""></li> <li><img src="" alt=""></li> <li><img src="" alt=""></li> <li><img src="" alt=""></li> <li><img src="" alt=""></li> <li><img src="" alt=""></li> </ul> </div> css *{ -webkit-box-sizing: border-box; box-sizing: border-box; } div{ width: 500px; } ul{ margin: 0; padding: 3%; // x list-style: none; background: yellow; } ul:after{ content: ''; display:block; clear: both; } li{ padding:0 3.0927835051546393%; // x*100/(100-x); x值越大,误差越大。当x=3,宽度为500,误差在0.5px之内; margin: 4px 0; text-align: center; font-size: 0; float: left; width: 33.3333%; } img{ background: red; height: 100px; width: 100%; /* max-width: 100%; */ } 如果用flex的话,应该很容易实现。

杨冬芳 2019-12-02 02:40:02 0 浏览量 回答数 0

回答

方案 方案1:通过 gulp-replace 替换 link (1)首先 html 页面中应该有对应 css 文件的 link 标签(2)通过 gulp 把 link 标签替换成 style 标签的,并添加对应的 css 内容 方案2:直接使用 gulp-inline-source 原文地址:直接看原文吧 方案示例:gulp-inline-source github 地址:gulp-inline-source 资源准备 (1)./src/html/index.html。注意链接时后面的属性 inline <html> <head> <script src="../js/site.js" inline></script> <link rel="stylesheet" href="../css/style.css" inline> </head> <body> </body> </html> (2)./src/css/style.css h1{ font-size: 24px; color: red; } (3)./src/js/site.js function hello(){ console.log('hello'); } (4)./gulpfile.js。执行后结果输出到 ./dist 文件夹 var gulp = require('gulp'); var inlinesource = require('gulp-inline-source'); gulp.task('default', function () { return gulp.src('./src/html/*.html') .pipe(inlinesource()) .pipe(gulp.dest('./dist')); }); 输出效果 <html> <head> <script>function hello(){console.log("hello")}</script> <style>h1{font-size:24px;color:red}</style> </head> <body> </body> </html>

杨冬芳 2019-12-02 02:42:18 0 浏览量 回答数 0

问题

Content Security Policy 入门教程?报错

爱吃鱼的程序员 2020-06-08 21:36:34 0 浏览量 回答数 1

问题

Content Security Policy 入门教程

移动安全 2019-12-01 21:10:32 3052 浏览量 回答数 2

问题

如何让div与a标签并列显示

杨冬芳 2019-12-01 20:01:06 1145 浏览量 回答数 1

回答

去掉ssl之后,错误信息就不一样了 ./configure--prefix=/arraybi/cognos/napp/soft/nginx--with-pcre=../pcre-8.34--with-zlib=../zlib-1.2.8--with-libatomic=../libatomic_ops-7.2make之后报的错误 cc-c-Isrc/core-Isrc/event-Isrc/event/modules-Isrc/os/unix-I../pcre-8.34-I../zlib-1.2.8-I../libatomic_ops-7.2/src-Iobjs\-oobjs/src/core/nginx.o\src/core/nginx.c"src/core/ngx_rbtree.h",line73:warning#4347-D:"inline"isakeywordintheC99CStandard,anditsusageasanidentifierwillcauseanerrorinC99modestaticngx_inlinengx_rbtree_node_t*^"src/core/ngx_rbtree.h",line73:error#2020:identifier"inline"isundefinedstaticngx_inlinengx_rbtree_node_t*^"src/core/ngx_rbtree.h",line73:error#2101:"ngx_rbtree_node_t"hasalreadybeendeclaredinthecurrentscopestaticngx_inlinengx_rbtree_node_t*^"src/core/ngx_rbtree.h",line73:error#2065:expecteda";"staticngx_inlinengx_rbtree_node_t*^"src/os/unix/ngx_time.h",line16:warning#2012-D:parsingrestartshereafterprevioussyntaxerrortypedefngx_rbtree_key_tngx_msec_t;^"src/core/ngx_string.h",line65:warning#4347-D:"inline"isakeywordintheC99CStandard,anditsusageasanidentifierwillcauseanerrorinC99modestaticngx_inlineu_char*^"src/core/ngx_string.h",line65:error#2020:identifier"inline"isundefinedstaticngx_inlineu_char*^"src/core/ngx_string.h",line65:error#2101:"u_char"hasalreadybeendeclaredinthecurrentscopestaticngx_inlineu_char*^"src/core/ngx_string.h",line65:error#2065:expecteda";"staticngx_inlineu_char*^"src/core/ngx_string.h",line147:warning#2012-D:parsingrestartshereafterprevioussyntaxerroru_char*ngx_cpystrn(u_char*dst,u_char*src,size_tn);^"src/core/ngx_string.h",line148:error#2757:variable"u_char"isnotatypenameu_char*ngx_pstrdup(ngx_pool_t*pool,ngx_str_t*src);^"src/core/ngx_string.h",line149:error#2757:variable"u_char"isnotatypenameu_char*ngx_cdeclngx_sprintf(u_char*buf,constchar*fmt,...);^"src/core/ngx_string.h",line149:error#2757:variable"u_char"isnotatypenameu_char*ngx_cdeclngx_sprintf(u_char*buf,constchar*fmt,...);^"src/core/ngx_string.h",line150:error#2757:variable"u_char"isnotatypenameu_char*ngx_cdeclngx_snprintf(u_char*buf,size_tmax,constchar*fmt,...);^"src/core/ngx_string.h",line150:error#2757:variable"u_char"isnotatypenameu_char*ngx_cdeclngx_snprintf(u_char*buf,size_tmax,constchar*fmt,...);^"src/core/ngx_string.h",line151:error#2757:variable"u_char"isnotatypenameu_char*ngx_cdeclngx_slprintf(u_char*buf,u_char*last,constchar*fmt,^"src/core/ngx_string.h",line151:error#2757:variable"u_char"isnotatypenameu_char*ngx_cdeclngx_slprintf(u_char*buf,u_char*last,constchar*fmt,^"src/core/ngx_string.h",line151:error#2757:variable"u_char"isnotatypenameu_char*ngx_cdeclngx_slprintf(u_char*buf,u_char*last,constchar*fmt,^"src/core/ngx_string.h",line153:error#2757:variable"u_char"isnotatypenameu_char*ngx_vslprintf(u_char*buf,u_char*last,constchar*fmt,va_listargs);^"src/core/ngx_string.h",line153:error#2757:variable"u_char"isnotatypenameu_char*ngx_vslprintf(u_char*buf,u_char*last,constchar*fmt,va_listargs);^"src/core/ngx_string.h",line153:error#2757:variable"u_char"isnotatypenameu_char*ngx_vslprintf(u_char*buf,u_char*last,constchar*fmt,va_listargs);^"src/core/ngx_string.h",line157:error#2757:variable"u_char"isnotatypenamengx_int_tngx_strcasecmp(u_char*s1,u_char*s2);^"src/core/ngx_string.h",line157:error#2757:variable"u_char"isnotatypenamengx_int_tngx_strcasecmp(u_char*s1,u_char*s2);^"src/core/ngx_string.h",line158:error#2757:variable"u_char"isnotatypenamengx_int_tngx_strncasecmp(u_char*s1,u_char*s2,size_tn);^"src/core/ngx_string.h",line158:error#2757:variable"u_char"isnotatypenamengx_int_tngx_strncasecmp(u_char*s1,u_char*s2,size_tn);^"src/core/ngx_string.h",line160:error#2757:variable"u_char"isnotatypenameu_char*ngx_strnstr(u_char*s1,char*s2,size_tn);^"src/core/ngx_string.h",line160:error#2757:variable"u_char"isnotatypenameu_char*ngx_strnstr(u_char*s1,char*s2,size_tn);^"src/core/ngx_string.h",line162:error#2757:variable"u_char"isnotatypenameu_char*ngx_strstrn(u_char*s1,char*s2,size_tn);^"src/core/ngx_string.h",line162:error#2757:variable"u_char"isnotatypenameu_char*ngx_strstrn(u_char*s1,char*s2,size_tn);^"src/core/ngx_string.h",line163:error#2757:variable"u_char"isnotatypenameu_char*ngx_strcasestrn(u_char*s1,char*s2,size_tn);^"src/core/ngx_string.h",line163:error#2757:variable"u_char"isnotatypenameu_char*ngx_strcasestrn(u_char*s1,char*s2,size_tn);^"src/core/ngx_string.h",line164:error#2757:variable"u_char"isnotatypenameu_char*ngx_strlcasestrn(u_char*s1,u_char*last,u_char*s2,size_tn);^"src/core/ngx_string.h",line164:error#2757:variable"u_char"isnotatypenameu_char*ngx_strlcasestrn(u_char*s1,u_char*last,u_char*s2,size_tn);^"src/core/ngx_string.h",line164:error#2757:variable"u_char"isnotatypenameu_char*ngx_strlcasestrn(u_char*s1,u_char*last,u_char*s2,size_tn);^"src/core/ngx_string.h",line164:error#2757:variable"u_char"isnotatypenameu_char*ngx_strlcasestrn(u_char*s1,u_char*last,u_char*s2,size_tn);^"src/core/ngx_string.h",line166:error#2757:variable"u_char"isnotatypenamengx_int_tngx_rstrncmp(u_char*s1,u_char*s2,size_tn);^"src/core/ngx_string.h",line166:error#2757:variable"u_char"isnotatypenamengx_int_tngx_rstrncmp(u_char*s1,u_char*s2,size_tn);^"src/core/ngx_string.h",line167:error#2757:variable"u_char"isnotatypenamengx_int_tngx_rstrncasecmp(u_char*s1,u_char*s2,size_tn);^"src/core/ngx_string.h",line167:error#2757:variable"u_char"isnotatypenamengx_int_tngx_rstrncasecmp(u_char*s1,u_char*s2,size_tn);^"src/core/ngx_string.h",line168:error#2757:variable"u_char"isnotatypenamengx_int_tngx_memn2cmp(u_char*s1,u_char*s2,size_tn1,size_tn2);^"src/core/ngx_string.h",line168:error#2757:variable"u_char"isnotatypenamengx_int_tngx_memn2cmp(u_char*s1,u_char*s2,size_tn1,size_tn2);^"src/core/ngx_string.h",line169:error#2757:variable"u_char"isnotatypenamengx_int_tngx_dns_strcmp(u_char*s1,u_char*s2);^"src/core/ngx_string.h",line169:error#2757:variable"u_char"isnotatypenamengx_int_tngx_dns_strcmp(u_char*s1,u_char*s2);^"src/core/ngx_string.h",line170:error#2757:variable"u_char"isnotatypenamengx_int_tngx_filename_cmp(u_char*s1,u_char*s2,size_tn);^"src/core/ngx_string.h",line170:error#2757:variable"u_char"isnotatypenamengx_int_tngx_filename_cmp(u_char*s1,u_char*s2,size_tn);^"src/core/ngx_string.h",line172:error#2757:variable"u_char"isnotatypenamengx_int_tngx_atoi(u_char*line,size_tn);^"src/core/ngx_string.h",line173:error#2757:variable"u_char"isnotatypenamengx_int_tngx_atofp(u_char*line,size_tn,size_tpoint);^"src/core/ngx_string.h",line174:error#2757:variable"u_char"isnotatypenamessize_tngx_atosz(u_char*line,size_tn);^"src/core/ngx_string.h",line175:error#2757:variable"u_char"isnotatypenameoff_tngx_atoof(u_char*line,size_tn);^"src/core/ngx_string.h",line176:error#2757:variable"u_char"isnotatypenametime_tngx_atotm(u_char*line,size_tn);^"src/core/ngx_string.h",line177:error#2757:variable"u_char"isnotatypenamengx_int_tngx_hextoi(u_char*line,size_tn);^"src/core/ngx_string.h",line179:error#2757:variable"u_char"isnotatypenameu_char*ngx_hex_dump(u_char*dst,u_char*src,size_tlen);^"src/core/ngx_string.h",line179:error#2757:variable"u_char"isnotatypenameu_char*ngx_hex_dump(u_char*dst,u_char*src,size_tlen);^"src/core/ngx_string.h",line179:error#2757:variable"u_char"isnotatypenameu_char*ngx_hex_dump(u_char*dst,u_char*src,size_tlen);^"src/core/ngx_string.h",line190:error#2757:variable"u_char"isnotatypenameuint32_tngx_utf8_decode(u_char**p,size_tn);^"src/core/ngx_string.h",line191:error#2757:variable"u_char"isnotatypenamesize_tngx_utf8_length(u_char*p,size_tn);^"src/core/ngx_string.h",line192:error#2757:variable"u_char"isnotatypenameu_char*ngx_utf8_cpystrn(u_char*dst,u_char*src,size_tn,size_tlen);^"src/core/ngx_string.h",line192:error#2757:variable"u_char"isnotatypenameu_char*ngx_utf8_cpystrn(u_char*dst,u_char*src,size_tn,size_tlen);^"src/core/ngx_string.h",line192:error#2757:variable"u_char"isnotatypenameu_char*ngx_utf8_cpystrn(u_char*dst,u_char*src,size_tn,size_tlen);^"src/core/ngx_string.h",line206:error#2757:variable"u_char"isnotatypenameuintptr_tngx_escape_uri(u_char*dst,u_char*src,size_tsize,^"src/core/ngx_string.h",line206:error#2757:variable"u_char"isnotatypenameuintptr_tngx_escape_uri(u_char*dst,u_char*src,size_tsize,^"src/core/ngx_string.h",line208:error#2757:variable"u_char"isnotatypenamevoidngx_unescape_uri(u_char**dst,u_char**src,size_tsize,ngx_uint_ttype);^"src/core/ngx_string.h",line208:error#2757:variable"u_char"isnotatypenamevoidngx_unescape_uri(u_char**dst,u_char**src,size_tsize,ngx_uint_ttype);^"src/core/ngx_string.h",line209:error#2757:variable"u_char"isnotatypenameuintptr_tngx_escape_html(u_char*dst,u_char*src,size_tsize);^"src/core/ngx_string.h",line209:error#2757:variable"u_char"isnotatypenameuintptr_tngx_escape_html(u_char*dst,u_char*src,size_tsize);^"src/core/ngx_string.h",line213:error#2757:variable"ngx_rbtree_node_t"isnotatypenamengx_rbtree_node_tnode;^"src/core/ngx_string.h",line218:error#2757:variable"ngx_rbtree_node_t"isnotatypenamevoidngx_str_rbtree_insert_value(ngx_rbtree_node_t*temp,^"src/core/ngx_string.h",line219:error#2757:variable"ngx_rbtree_node_t"isnotatypenamengx_rbtree_node_t*node,ngx_rbtree_node_t*sentinel);^"src/core/ngx_string.h",line219:error#2757:variable"ngx_rbtree_node_t"isnotatypenamengx_rbtree_node_t*node,ngx_rbtree_node_t*sentinel);^"src/os/unix/ngx_files.h",line22:error#2757:variable"u_char"isnotatypenameu_char*name;^"src/os/unix/ngx_files.h",line43:error#2757:variable"u_char"isnotatypenameu_char*pattern;^"src/os/unix/ngx_files.h",line117:error#2757:variable"u_char"isnotatypenamengx_fd_tngx_open_tempfile(u_char*name,ngx_uint_tpersistent,^"src/os/unix/ngx_files.h",line122:error#2757:variable"u_char"isnotatypenamessize_tngx_read_file(ngx_file_t*file,u_char*buf,size_tsize,off_toffset);^"src/os/unix/ngx_files.h",line129:error#2757:variable"u_char"isnotatypenamessize_tngx_write_file(ngx_file_t*file,u_char*buf,size_tsize,^"src/os/unix/ngx_files.h",line144:warning#4347-D:"inline"isakeywordintheC99CStandard,anditsusageasanidentifierwillcauseanerrorinC99modestaticngx_inlinessize_t^"src/os/unix/ngx_files.h",line144:error#2020:identifier"inline"isundefinedstaticngx_inlinessize_t^"src/os/unix/ngx_files.h",line144:error#2101:"ssize_t"hasalreadybeendeclaredinthecurrentscopestaticngx_inlinessize_t^"src/os/unix/ngx_files.h",line145:error#2065:expecteda";"ngx_write_fd(ngx_fd_tfd,void*buf,size_tn)^"src/os/unix/ngx_files.h",line169:warning#2012-D:parsingrestartshereafterprevioussyntaxerrorngx_int_tngx_set_file_time(u_char*name,ngx_fd_tfd,time_ts);^"src/os/unix/ngx_files.h",line249:warning#4347-D:"inline"isakeywordintheC99CStandard,anditsusageasanidentifierwillcauseanerrorinC99modestaticngx_inlinengx_int_t^"src/os/unix/ngx_files.h",line249:error#2020:identifier"inline"isundefinedstaticngx_inlinengx_int_t^"src/os/unix/ngx_files.h",line249:error#2101:"ngx_int_t"hasalreadybeendeclaredinthecurrentscopestaticngx_inlinengx_int_t^"src/os/unix/ngx_files.h",line250:error#2065:expecteda";"ngx_de_info(u_char*name,ngx_dir_t*dir)^"src/os/unix/ngx_files.h",line289:warning#2012-D:parsingrestartshereafterprevioussyntaxerrorngx_int_tngx_open_glob(ngx_glob_t*gl);^"src/os/unix/ngx_files.h",line291:error#2757:variable"ngx_int_t"isnotatypenamengx_int_tngx_read_glob(ngx_glob_t*gl,ngx_str_t*name);^"src/os/unix/ngx_files.h",line315:error#2757:variable"ngx_int_t"isnotatypenamengx_int_tngx_read_ahead(ngx_fd_tfd,size_tn);^"src/os/unix/ngx_files.h",line328:error#2757:variable"ngx_int_t"isnotatypenamengx_int_tngx_directio_on(ngx_fd_tfd);^"src/os/unix/ngx_files.h",line331:error#2757:variable"ngx_int_t"isnotatypenamengx_int_tngx_directio_off(ngx_fd_tfd);^"src/os/unix/ngx_files.h",line351:error#2757:variable"u_char"isnotatypenamesize_tngx_fs_bsize(u_char*name);^"src/os/unix/ngx_shmem.h",line17:error#2757:variable"u_char"isnotatypenameu_char*addr;^"src/os/unix/ngx_shmem.h",line25:error#2757:variable"ngx_int_t"isnotatypenamengx_int_tngx_shm_alloc(ngx_shm_t*shm);^"src/os/unix/ngx_process.h",line64:error#2757:variable"ngx_int_t"isnotatypenamengx_spawn_proc_ptproc,void*data,char*name,ngx_int_trespawn);^"src/os/unix/ngx_process.h",line66:error#2757:variable"ngx_int_t"isnotatypenamengx_int_tngx_init_signals(ngx_log_t*log);^"src/os/unix/ngx_process.h",line83:error#2757:variable"ngx_int_t"isnotatypenameexternngx_int_tngx_process_slot;^"src/os/unix/ngx_process.h",line84:error#2757:variable"ngx_int_t"isnotatypenameexternngx_int_tngx_last_process;^"src/os/unix/ngx_user.h",line20:error#2757:variable"ngx_int_t"isnotatypenamengx_int_tngx_libc_crypt(ngx_pool_t*pool,u_char*key,u_char*salt,^"src/os/unix/ngx_user.h",line20:error#2757:variable"u_char"isnotatypenamengx_int_tngx_libc_crypt(ngx_pool_t*pool,u_char*key,u_char*salt,^"src/os/unix/ngx_user.h",line20:error#2757:variable"u_char"isnotatypenamengx_int_tngx_libc_crypt(ngx_pool_t*pool,u_char*key,u_char*salt,^"src/os/unix/ngx_user.h",line21:error#2757:variable"u_char"isnotatypenameu_char**encrypted);^"src/core/ngx_parse.h",line16:error#2757:variable"ssize_t"isnotatypenamessize_tngx_parse_size(ngx_str_t*line);^"src/core/ngx_parse.h",line18:error#2757:variable"ngx_int_t"isnotatypenamengx_int_tngx_parse_time(ngx_str_t*line,ngx_uint_tis_sec);^"src/core/ngx_log.h",line45:error#2757:variable"u_char"isnotatypenametypedefu_char*(*ngx_log_handler_pt)(ngx_log_t*log,u_char*buf,size_tlen);^"src/core/ngx_log.h",line45:error#2757:variable"u_char"isnotatypenametypedefu_char*(*ngx_log_handler_pt)(ngx_log_t*log,u_char*buf,size_tlen);^"src/core/ngx_log.h",line224:error#2757:variable"u_char"isnotatypenamengx_log_t*ngx_log_init(u_char*prefix);^"src/core/ngx_log.h",line227:error#2757:variable"u_char"isnotatypenameu_char*ngx_log_errno(u_char*buf,u_char*last,ngx_err_terr);^"src/core/ngx_log.h",line227:error#2757:variable"u_char"isnotatypenameu_char*ngx_log_errno(u_char*buf,u_char*last,ngx_err_terr);^"src/core/ngx_log.h",line227:error#2757:variable"u_char"isnotatypenameu_char*ngx_log_errno(u_char*buf,u_char*last,ngx_err_terr);^"src/core/ngx_log.h",line228:error#2757:variable"ngx_int_t"isnotatypenamengx_int_tngx_log_open_default(ngx_cycle_t*cycle);^Errorlimitreached.100errorsdetectedinthecompilationof"src/core/nginx.c".Compilationterminated.***错误退出代码4停止。***错误退出代码1停止。 你搜下,我感觉是不是nginx最新版本还没兼容在HP-UX系统上面。你换成稍低的版本试试呢。 100errorsdetectedinthecompilationof"src/core/nginx.c".我试了1.4.7,同样的错,感觉是cc,gcc编译器的问题嗯,有道理,我试试1.4的上面问题解决了,是cc编译器的问题,默认使用Hp自带的cc编译器,增加参数--with-cc=/usr/local/bin/gcc ,将cc路径指向gcc就可以了 great

爱吃鱼的程序员 2020-06-14 15:31:25 0 浏览量 回答数 0

回答

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>keyMulSelect</title> <style type="text/css"> #main { width: 1150px; height: 780px; border: 1px solid #e7e81a; margin: auto; } p { float: left; width: 150px; height: 150px; border: 1px dotted grey; margin: 19px; } p[sel = "sel"] { border: 1.8px solid red; } </style> <script type="text/javascript" src="http://apps.bdimg.com/libs/jquery/1.9.0/jquery.min.js"></script> <script type="text/javascript"> $(function () { var start = null; $("p").click(function (e) { e = e || event; if (e.shiftKey) { var si = $(start).index(), ti = $(this).index(); var sel = $("p").slice(Math.min(si, ti), Math.max(si, ti) + 1); sel.attr("sel", "sel"); $("p").not(sel).removeAttr("sel"); return; } start = this; if ($(this).attr("sel") == "sel") { $(this).removeAttr("sel"); } else { $(this).attr("sel", "sel"); } }) }) </script> </head> <body> <div id="main"> <p><img src="http://avatar.csdn.net/9/F/E/1_yanqinhui.jpg" title="访问我的空间"></p> <p><img src="http://avatar.csdn.net/9/F/E/1_yanqinhui.jpg" title="访问我的空间"></p> <p><img src="http://avatar.csdn.net/9/F/E/1_yanqinhui.jpg" title="访问我的空间"></p> <p><img src="http://avatar.csdn.net/9/F/E/1_yanqinhui.jpg" title="访问我的空间"></p> <p><img src="http://avatar.csdn.net/9/F/E/1_yanqinhui.jpg" title="访问我的空间"></p> <p><img src="http://avatar.csdn.net/9/F/E/1_yanqinhui.jpg" title="访问我的空间"></p> <p><img src="http://avatar.csdn.net/9/F/E/1_yanqinhui.jpg" title="访问我的空间"></p> <p><img src="http://avatar.csdn.net/9/F/E/1_yanqinhui.jpg" title="访问我的空间"></p> <p><img src="http://avatar.csdn.net/9/F/E/1_yanqinhui.jpg" title="访问我的空间"></p> <p><img src="http://avatar.csdn.net/9/F/E/1_yanqinhui.jpg" title="访问我的空间"></p> <p><img src="http://avatar.csdn.net/9/F/E/1_yanqinhui.jpg" title="访问我的空间"></p> <p><img src="http://avatar.csdn.net/9/F/E/1_yanqinhui.jpg" title="访问我的空间"></p> <p><img src="http://avatar.csdn.net/9/F/E/1_yanqinhui.jpg" title="访问我的空间"></p> <p><img src="http://avatar.csdn.net/9/F/E/1_yanqinhui.jpg" title="访问我的空间"></p> <p><img src="http://avatar.csdn.net/9/F/E/1_yanqinhui.jpg" title="访问我的空间"></p> <p><img src="http://avatar.csdn.net/9/F/E/1_yanqinhui.jpg" title="访问我的空间"></p> <p><img src="http://avatar.csdn.net/9/F/E/1_yanqinhui.jpg" title="访问我的空间"></p> <p><img src="http://avatar.csdn.net/9/F/E/1_yanqinhui.jpg" title="访问我的空间"></p> </div> </body> </html>

a123456678 2019-12-02 03:08:45 0 浏览量 回答数 0

回答

一句话:在audio标签有src链接的同时设置上属性rossOrigin="anonymous";在html不要直接写地址,让浏览器一开始加载就就直接跨域了,所以如果写了得设置audio标签这个属性(crossOrigin='anonymous';) 或者 是html的src先不设置,在javascript里边设置再建立 var audio =document.getElementById("audio"); audio.crossOrigin = 'anonymous'; audio.src='https://fourthof5assets.s3-eu-west-1.amazonaws.com/heng-feeling-good.mp3'; var source = context1.createMediaElementSource(audio);

小旋风柴进 2019-12-02 02:37:28 0 浏览量 回答数 0

问题

Echarts初始化的时候出错了!Load timeout for module?400报错

爱吃鱼的程序员 2020-06-02 13:13:16 0 浏览量 回答数 1

问题

Echarts初始化的时候出错了!Load timeout for modules:? 报错

优选2 2020-06-04 18:06:06 3 浏览量 回答数 1

问题

Echarts初始化的时候出错了!Load timeout for module?400报错

爱吃鱼的程序员 2020-05-29 17:59:26 0 浏览量 回答数 1

回答

关于图片跨域的问题本人在使用过程中也遇到了,开始使用代理服务器解决了,但是感觉不太好, 后来偶尔中,在 html2canvas源码中改了几段小代码终于把问题给解决了。 functionImageContainer(src,cors){this.src=src;this.image=newImage();varself=this;this.tainted=null;this.promise=newPromise(function(resolve,reject){self.image.onload=resolve;self.image.onerror=reject;if(cors){//self.image.crossOrigin="anonymous";//1.去掉此处的anonymous代码改为空self.image.crossOrigin="";}//self.image.src=src;//2.在源src后面添加一个随机数如时间戳+"?"+newDate().getTime();self.image.src=src+"?"+newDate().getTime();if(self.image.complete===true){resolve(self.image);}});} 通过以上改造尼玛居然把问题给解决了,很奇怪,上面的代码改造过程缺一不可,不过我的问题是夸子域,还有个关键设置, 就是在调用时 html2canvas($("body"),{onrendered:function(canvas){//},useCORS:true});//这个地方只需要将useCORS设置成true,千万不要加allowTaint:true这两个不要同时加,我当时在看官网文档的时候,看到这两个参数都是解决跨域的,后来就两个都加上去了,发现两个加上去就会有问题,具体你可以查看源码,这里我就不做过多解释了  回复 @ledcf:https://share.weiyun.com/0d5c9cc7ac20076c1c389e2533b8f618主要就改了上面截图的那几个地方回复 @AK_诚:大神可以把修改的js发下吗?我的qq1609479901,拜托大神!谢谢帮大忙了,终于解决了html2canvas出来的canvas空白就是添加了useCORS参数解决的,谢谢 目前也遇到同样的问题。 canvas调用toDataURL()时跨域的问题无法解决。 请问题主有没找到解决方法?没有。

爱吃鱼的程序员 2020-06-10 13:25:13 0 浏览量 回答数 0

回答

windows 版本,安装时候默认配置的path变量为 "%APPDEPLOY%; C:\Python27" 中间多了个空格,导致无法正常识别python路径。 ------------------------- ubuntu 下,解压web版本~$ unzip appdeploy-python-1.0.3.zip Archive:  appdeploy-python-1.0.3.zip  inflating: appdeploy-python-1.0.3-Source.tar.gz   extracting: appdeploy-python-1.0.3-Windows.zip     creating: ╩╡└¤/  inflating: ╩╡└¤/appdeploy.py     creating: ╩╡└¤/java/   creating: ╩╡└¤/java/myFirstWebApp/  inflating: ╩╡└¤/java/myFirstWebApp/pom.xml     creating: ╩╡└¤/java/myFirstWebApp/src/   creating: ╩╡└¤/java/myFirstWebApp/src/main/   creating: ╩╡└¤/java/myFirstWebApp/src/main/webapp/   creating: ╩╡└¤/java/myFirstWebApp/src/main/webapp/images/  inflating: ╩╡└¤/java/myFirstWebApp/src/main/webapp/index.jsp     creating: ╩╡└¤/java/myFirstWebApp/src/main/webapp/styles/  inflating: ╩╡└¤/java/myFirstWebApp/src/main/webapp/styles/style.css     creating: ╩╡└¤/java/myFirstWebApp/src/main/webapp/WEB-INF/  inflating: ╩╡└¤/java/myFirstWebApp/src/main/webapp/WEB-INF/web.xml     creating: ╩╡└¤/php/  inflating: ╩╡└¤/php/index.html    inflating: ╩╡└¤/php/index.php    inflating: ╩╡└¤/php/random.php     creating: ╬─╡╡/  inflating: ╬─╡╡/░в└я╘╞AppDeploy╩╣╙├╩╓▓с-Python░ц.pdf

akira 2019-12-01 23:19:13 0 浏览量 回答数 0

问题

img src标签如何指向并一个mongodb 的图片字段?

蛮大人123 2019-12-01 19:53:52 1250 浏览量 回答数 1

问题

Golang使用goquery报错?报错

爱吃鱼的程序员 2020-06-09 13:09:48 0 浏览量 回答数 1

问题

Golang使用goquery报错 400 请求报错 

kun坤 2020-05-29 23:03:24 2 浏览量 回答数 1

回答

问题1  data开头的属性一般是用于控件的数据绑定.避免对dom元素进行自定义属性的数据绑定 造成不必要的阅读障碍,用data-*来进行额外的属性定义. 这样的定义一般是个js使用.这里举一个图片懒加载的例子加以说明 <img src="default.png" data-src="xxxx/xx.png"> 当该元素没有显示在用户界面时采用默认图片,一旦出现在用户视野,就将data-src的地址替换src. 这样是不是很方便? 比用id来标示寻找元素 在来绑定数据更简单? 问题2 role属于html5属性,具体可参考http://www.w3.org/TR/wai-aria/host_languages#host_general_role主要用来 定义 dom元素角色. 从而便于写css时使用选择器进行选择, 也能在一定程度上提升代码可读性 问题3 3.完全自定义属性. 这种属性的定义,在我遇到的情况下 一般是服务于js的.用来针对性进行dom元素修改.最直观的例子就是angualr里面的directive

杨冬芳 2019-12-02 02:50:22 0 浏览量 回答数 0

问题

看JS高级程序时遇到这样一段html代码,能解释下么

杨冬芳 2019-12-01 20:04:30 814 浏览量 回答数 1

问题

ecs 搭建nginx 一直报错

1971913920903233 2019-12-01 18:53:35 1202 浏览量 回答数 5

回答

Recentos6.5 nginx1.8.1编译安装出错 一样的错误,阿里云ECS安装NGINX经常出错: objs/src/http/modules/ngx_http_ssi_filter_module.o \objs/src/http/modules/ngx_http_charset_filter_module.o \objs/src/http/modules/ngx_http_userid_filter_module.o \objs/src/http/modules/ngx_http_gzip_static_module.o \objs/src/http/modules/ngx_http_autoindex_module.o \objs/src/http/modules/ngx_http_auth_basic_module.o \objs/src/http/modules/ngx_http_access_module.o \objs/src/http/modules/ngx_http_limit_conn_module.o \objs/src/http/modules/ngx_http_limit_req_module.o \objs/src/http/modules/ngx_http_geo_module.o \objs/src/http/modules/ngx_http_map_module.o \objs/src/http/modules/ngx_http_split_clients_module.o \objs/src/http/modules/ngx_http_referer_module.o \objs/src/http/modules/ngx_http_rewrite_module.o \objs/src/http/modules/ngx_http_ssl_module.o \objs/src/http/modules/ngx_http_proxy_module.o \objs/src/http/modules/ngx_http_fastcgi_module.o \objs/src/http/modules/ngx_http_uwsgi_module.o \objs/src/http/modules/ngx_http_scgi_module.o \objs/src/http/modules/ngx_http_memcached_module.o \objs/src/http/modules/ngx_http_empty_gif_module.o \objs/src/http/modules/ngx_http_browser_module.o \objs/src/http/modules/ngx_http_upstream_hash_module.o \objs/src/http/modules/ngx_http_upstream_ip_hash_module.o \objs/src/http/modules/ngx_http_upstream_least_conn_module.o \objs/src/http/modules/ngx_http_upstream_keepalive_module.o \objs/src/http/modules/ngx_http_stub_status_module.o \objs/ngx_modules.o \-lpthread -lcrypt -lpcre -lssl -lcrypto -ldl -lzmake[1]: Leaving directory `/home/sh/nginx-1.8.1'make -f objs/Makefile manpagemake[1]: Entering directory `/home/sh/nginx-1.8.1'sed -e "s|%%PREFIX%%|/alidata/server/nginx|" \-e "s|%%PID_PATH%%|/alidata/server/nginx/logs/nginx.pid|" \-e "s|%%CONF_PATH%%|/alidata/server/nginx/conf/nginx.conf|" \-e "s|%%ERROR_LOG_PATH%%|/alidata/server/nginx/logs/error.log|" \< man/nginx.8 > objs/nginx.8make[1]: Leaving directory `/home/sh/nginx-1.8.1'make -f objs/Makefile installmake[1]: Entering directory `/home/sh/nginx-1.8.1'test -d '/alidata/server/nginx' || mkdir -p '/alidata/server/nginx'test -d '/alidata/server/nginx/sbin' || mkdir -p '/alidata/server/nginx/sbin'test ! -f '/alidata/server/nginx/sbin/nginx' || mv '/alidata/server/nginx/sbin/nginx' '/alidata/server/nginx/sbin/nginx.old'cp objs/nginx '/alidata/server/nginx/sbin/nginx'test -d '/alidata/server/nginx/conf' || mkdir -p '/alidata/server/nginx/conf'cp conf/koi-win '/alidata/server/nginx/conf'cp conf/koi-utf '/alidata/server/nginx/conf'cp conf/win-utf '/alidata/server/nginx/conf'test -f '/alidata/server/nginx/conf/mime.types' || cp conf/mime.types '/alidata/server/nginx/conf'cp conf/mime.types '/alidata/server/nginx/conf/mime.types.default'test -f '/alidata/server/nginx/conf/fastcgi_params' || cp conf/fastcgi_params '/alidata/server/nginx/conf'cp conf/fastcgi_params '/alidata/server/nginx/conf/fastcgi_params.default'test -f '/alidata/server/nginx/conf/fastcgi.conf' || cp conf/fastcgi.conf '/alidata/server/nginx/conf'cp conf/fastcgi.conf '/alidata/server/nginx/conf/fastcgi.conf.default'test -f '/alidata/server/nginx/conf/uwsgi_params' || cp conf/uwsgi_params '/alidata/server/nginx/conf'cp conf/uwsgi_params '/alidata/server/nginx/conf/uwsgi_params.default'test -f '/alidata/server/nginx/conf/scgi_params' || cp conf/scgi_params '/alidata/server/nginx/conf'cp conf/scgi_params '/alidata/server/nginx/conf/scgi_params.default'test -f '/alidata/server/nginx/conf/nginx.conf' || cp conf/nginx.conf '/alidata/server/nginx/conf/nginx.conf'cp conf/nginx.conf '/alidata/server/nginx/conf/nginx.conf.default'test -d '/alidata/server/nginx/logs' || mkdir -p '/alidata/server/nginx/logs'test -d '/alidata/server/nginx/logs' || mkdir -p '/alidata/server/nginx/logs'test -d '/alidata/server/nginx/html' || cp -R html '/alidata/server/nginx'test -d '/alidata/server/nginx/logs' || mkdir -p '/alidata/server/nginx/logs'make[1]: Leaving directory `/home/sh/nginx-1.8.1'cp: cannot stat ‘./nginx/config-nginx/*’: No such file or directorymv: cannot stat ‘/alidata/server/nginx/conf/nginx’: No such file or directorychmod: cannot access ‘/etc/init.d/nginx’: No such file or directory./install_nginx+php-1.8.1.sh: line 30: /etc/init.d/nginx: No such file or directory ------------------------- 回 3楼匆匆过客ol的帖子 cp -fR ./nginx/config-nginx/* /alidata/server/nginx/conf/ 这一句开始出错,这是阿里云最新的一键安装包。

匆匆过客ol 2019-12-01 23:37:56 0 浏览量 回答数 0

问题

<img src指向一个mongodb 的图片字段如何做?

落地花开啦 2019-12-01 19:47:27 1126 浏览量 回答数 1

问题

chrome中frame用css固定高度失败

小旋风柴进 2019-12-01 20:17:39 1035 浏览量 回答数 1
阿里云大学 云服务器ECS com域名 网站域名whois查询 开发者平台 小程序定制 小程序开发 国内短信套餐包 开发者技术与产品 云数据库 图像识别 开发者问答 阿里云建站 阿里云备案 云市场 万网 阿里云帮助文档 免费套餐 开发者工具 企业信息查询 小程序开发制作 视频内容分析 企业网站制作 视频集锦 代理记账服务 企业建站模板