我们专注攀枝花网站设计 攀枝花网站制作 攀枝花网站建设
成都网站建设公司服务热线:400-028-6601

网站建设知识

十年网站开发经验 + 多家企业客户 + 靠谱的建站团队

量身定制 + 运营维护+专业推广+无忧售后,网站问题一站解决

jquery水印,html 水印

jQuery,bootstrap,可以商用吗? 百度图片没有水印的可以商用吗?

jquery ,boostrap,你放心的用把,这都是免费的插件库。但是百度里的图片,不管有没有水印,都不建议你用来做商业用途,再喜欢,你至少要p一下吧,随便改改也好吧。

创新互联公司专注为客户提供全方位的互联网综合服务,包含不限于网站制作、做网站、房县网络推广、小程序定制开发、房县网络营销、房县企业策划、房县品牌公关、搜索引擎seo、人物专访、企业宣传片、企业代运营等,从售前售中售后,我们都将竭诚为您服务,您的肯定,是我们最大的嘉奖;创新互联公司为所有大学生创业者提供房县建站搭建服务,24小时服务热线:18980820575,官方网址:www.cdcxhl.com

如何用js和css给一个站内所有图片加上水印

!DOCTYPE html

html

head

meta charset="UTF-8"

titleDocument/title

script src=""/script

style

.str {

font: normal bold 5px Arial;

/* font-size: 5px;*/

color: rgb(224, 226, 226,0.4);

position: absolute;

padding-left: 16px;

padding-top: 53px;

display: none;

}

.str2 {

font: normal bold 5px Arial;

/* font-size: 5px; */

color: rgb(224, 226, 226,0.4);

position: absolute;

padding-left: 66px;

padding-top: 130px;

display: none;

}

/style

/head

body

divHOMEANGEL/div

divHOMEANGEL/div

img src=";fm=26gp=0.jpg" style="width:100px;height:100px;" /

div id="picture" style="width:100%;margin-left: 60px;"

/div

script

$(function () {

var img = [";fm=26gp=0.jpg"];

GetCanvas(img);

})

function AddCanvas(src, ById) {

var img = new Image();

img.src = src

img.onload = function () {

imgW = img.width;

imgH = img.height;

//准备canvas环境

var canvas = document.getElementById(ById);

canvas.width = img.width;

canvas.height = img.height;

var ctx = canvas.getContext("2d");

// 绘制图片

ctx.drawImage(img, 0, 0, img.width, img.height);

// 绘制水印

ctx.font = "20px bold Arial";

ctx.fillStyle = "rgb(224, 226, 226,0.6)";//这里是颜色

ctx.fillText("watermark watermark", 20, 60);

ctx.fillText("watermark watermark", 120, 160);

ctx.fillText("watermark watermark", 220, 220);

//ctx.fillText("HOMEANGEL", 90, 130);

canvas.style.width = "100px";

canvas.style.height = "100px";

}

}

function GetCanvas(Strhtml) {

if (Strhtml.length 0 Strhtml != "") {

var html = "";

for (var i = 0; i Strhtml.length; i++) {

var str = "sample" + (i + 1);

html += ' canvas id=' + str + ' name="test" src=' + Strhtml[i] + ' "/canvas';

}

$("#picture").html(html);//这里图片添加到html,然后for,添加水印

}

for (var i = 0; i Strimg.length; i++) {

var str = "sample" + (i + 1);

var src = Strhtml[i];

AddCanvas(src, str);//id没传递

}

}

/script

/body

测试html代码

!DOCTYPE html

html lang="ch"

head

meta charset="utf-8"

meta http-equiv="X-UA-Compatible" content="IE=edge"

meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0"

titlewhatsns专业级开源内容付费php问答系统/title

meta name="description" content="whatsns是一款全面开放源码采用php+mysql技术研发的问答系统,产品端包括免费版,个人版,基础版,高级版,微信版,小程序版,APP版,个人站长和企业可以选择合适的产品端。" /

meta name="keywords" content="whatsns,问答系统,php问答系统,语音问答系统,内容付费问答系统,采集问答系统" /

meta name="author" content="whatsns Team" /

meta name="copyright" content="" /

link href="./dist/css/main.css" rel="stylesheet"

link href="./dist/font-awesome/css/font-awesome.min.css" rel="stylesheet"

script src="./dist/js/jquery-1.11.3.min.js" type="text/javascript"/script

script src="./dist/js/bootstrap.js" type="text/javascript"/script

script src="./dist/js/ie.js" type="text/javascript"/script

/head

body

nav class="navbar navbar-fixed-top navbar-has-shadow"

div class="container"

div class="navbar-header"

button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-collapse" aria-expanded="false"

span class="sr-only"折叠/span

span class="icon-bar"/span

span class="icon-bar"/span

span class="icon-bar"/span

/button

a class="navbar-brand" href="./"

img src="dist/images/redash-logo.svg" class="navbar-brand__img" alt=""

/a

/div

div class="collapse navbar-collapse" id="navbar-collapse"

ul class="nav navbar-nav navbar-left"

lia data-track="" data-track-location="header" href="./"首页/a/li

lia data-track="" data-track-location="header" href="./buy.html"产品购买/a/li

lia data-track="" data-track-location="header" href="./dingzhi.html"定制开发/a/li

lia data-track="" data-track-location="header" href="./daili.html"代理招商/a/li

lia data-track="" target="_blank" data-track-location="header" href=""开发配置视频教程/a/li

lia data-track="" target="_blank" data-track-location="header" href=""开发文档/a/li

lia data-track="" target="_blank" data-track-location="header" href=""配置文档/a/li

/ul

ul class="nav navbar-nav navbar-right"

lia data-track="" data-track-location="header" target="_blank" href=""社区交流/a/li

lia data-track="" data-track-location="header" track-event="Clicked Get Started"  target="_blank" href=";uin=617035918site=qqmenu=yes" class="btn btn-primary navbar-btn"购买咨询/a/li

/ul

/div

/div

/nav

main

div class="jumbotron masthead"

div class="container"

h1WHATSNS/h1

h2极速安装,配置简单,功能强大,二开方便/h2

h2集问答,文章,课程,采集,SEO优化,运营功能于一体的开源系统/h2

h2适合网站类型:个人流量网站,企业部门交流网站,企业知识库网站,邀请入住型网站,内容付费型网站/h2

p class="masthead-button-links"

a class="btn btn-lg btnsource btn-shadow" href="" target="_blank" role="button" 开源版V4/a

a class="btn btn-lg btnshangye btn-shadow" href="./buy.html" target="_blank" role="button" 商业授权/a

/p

p class="qqgroup hidden-xs"

a class="bgtouming" target="_blank" href="//shang.qq.com/wpa/qunwpa?idkey=ba66b440d8042da9fe78d78a4e7f67369dc79ddf7cdb47827b527d8a25c8cdb2"img border="0" src="//pub.idqqimg.com/wpa/images/group.png" alt="ask2问答系统(whatsns)" title="ask2问答系统(whatsns)"/a

a  class="bgtouming"  target="_blank" href="//shang.qq.com/wpa/qunwpa?idkey=f8afbaaa1e209c5892b4fb84a8bbe1ec6570153c218af0c90b8b5ba2e7a2cf6a"img border="0" src="//pub.idqqimg.com/wpa/images/group.png" alt="ask2问答系统官方群二" title="ask2问答系统官方群二"/a

/p

p class="qqgroup hidden-md hidden-lg hidden-sm "

span官方QQ群一:370431002/spanspan官方QQ群二:258722465/span

/p

/div

/div

section class="section"

div class="container"

div class="row"

div class="col-md-8 col-md-offset-2 text-center"

h2 class="dtitle"为什么选择whatsns/h2

p  class="huitext"1、可以满足在垃圾虚拟主机运行流畅/p

p  class="huitext"2、傻瓜式安装,快速采集,快速SEO优化内容/p

p  class="huitext"3、轻松配置对接熊掌号,火车头采集,xunsearch,OSS/p

p  class="huitext"4、PC和wap模板分离自由组合终端展示效果/p

p  class="huitext"5、网站从注册,登录,防灌水,内容优化,内容采集挖掘,网站运营等方方面面为站长深度定制细节/p

p  class="huitext"6、超强大的功能配置,自由开关前端功能/p

p  class="huitext"7、深度挖掘问答,文章,课程内容付费,让站长没有难赚的钱/p

p  class="huitext"8、解决内容付费终端支付问题,您可以在PC,wap和微信端,APP中动态调用不同底层支付方案解决内容付费问题label class="label-danger"独家/label/p

p  class="huitext"9、支持微信语音回答,自动转码,任何终端可以收听语音回答label class="label-danger"独家/label/p

p  class="huitext"10、性价比超值,货比三家,市面上没有任何一家问答+课程的开源系统能和我们比,有的一个终端(要么只有pc模板,要么只有wap模板)15000多人民币,有的只有问答模块,一套就是20000多人民币只包含卖系统钱,技术支持单算,选择我们是花一份钱买多个终端可用的产品,而且功能都碾压其他家。/p

/div

/div

/section

section class="section bghui"

div class="container"

div class="row"

div class="col-md-8 col-md-offset-2 text-center"

h2 class="dtitle"使用whatsns如何实现盈利/h2

p class="huitext"可以通过广告获得收入,用户充值现金和财富值,付费看答案,付费看文章内容,优质回答和文章被打赏,付费咨询专家,现金悬赏和财富值悬赏问题,用户可以付费购买课程,办理VIP打折购买课程,拥有偷看卡免费看答案。平台可以设置分成比例,提现可收取手续费,付费看回答可分成,付费咨询可分成,悬赏问题采纳可分成。/p

/div

/div

/div

/section

section class="section section--small get-started"

div class="container"

div class="row get-started--signup text-center"

div class="col-sm-12 p-0"

h3 class="mb-xs"成为商业客户,享受私人服务,一对一安装程序,程序问题及时解决。/h3

a data-track="" data-track-location="get-started" data-track-event="Clicked Get Started" target="_blank" href=";uin=617035918site=qqmenu=yes" class="btn btn-lg btn-primary"点击购买咨询/a

p class="qqgroup hidden-md hidden-lg hidden-sm mar-t-1"

如果不能一键唤起咨询可加QQ:617035918

/p

/div

/div

/div

/section

section class="section"

div class="container"

div class="row"

div class="col-md-8 col-md-offset-2 text-center"

h1 class=""合作伙伴/h1

p历经多年的技术研究,知名国企,上市公司,国内五百强企业,以及其它优秀的企业和个人站长在使用我们的系统/p

/div

/div

/div

/section

section class="section"

div class="container"

img src="./dist/images/users-list-strip.png" width="100%" class="customer-logoshow"

/div

/section

footer class="footer"

div class="container"

div class="row"

div class="col-xs-4 col-md-2 col-sm-3 footer__item"

h3 class="footer__title"网站相关/h3

ul class="footer__list"

li class="footer__list-item"

a data-track="" data-track-location="footer" href="./aboutus.html" class="footer__list-link"关于我们/a

/li

li class="footer__list-item"

a data-track="" data-track-location="footer" href="dingzhi.html" class="footer__list-link"定制开发/a

/li

li class="footer__list-item"

a data-track="" data-track-location="footer" href="xuke.html" class="footer__list-link"授权说明/a

/li

li class="footer__list-item"

a data-track="" data-track-location="footer" target="_blank"  href="" class="footer__list-link"问题建议/a

/li

li class="footer__list-item"

a data-track="" data-track-location="footer" href="./contactus.html" class="footer__list-link"联系我们/a

/li

li class="footer__list-item"

a data-track="" data-track-location="footer" target="_blank"  href="" class="footer__list-link"码云地址/a

/li

/ul

            /div

            div class="col-xs-4 col-md-2 col-sm-3 footer__item"

h3 class="footer__title"友情链接/h3

ul class="footer__list"

li class="footer__list-item"

a data-track="" data-track-location="footer" target="_blank" href="" class="footer__list-link"产品社区/a

/li

li class="footer__list-item"

a data-track="" data-track-location="footer" target="_blank" href="" class="footer__list-link"A5源码/a

/li

li class="footer__list-item"

a data-track="" data-track-location="footer" target="_blank"  href="" class="footer__list-link"源市场/a

/li

li class="footer__list-item"

a data-track="" data-track-location="footer" target="_blank"  href="" class="footer__list-link"云帆互联/a

/li

li class="footer__list-item"

a data-track="" data-track-location="footer" target="_blank"  href="" class="footer__list-link"产品演示/a

/li

li class="footer__list-item"

a data-track="" data-track-location="footer" target="_blank"  href="" class="footer__list-link"宝塔面板/a

/li

/ul

            /div

            div class="col-xs-4 col-md-2 col-sm-3 footer__item"

h3 class="footer__title"帮助/h3

ul class="footer__list"

li class="footer__list-item"

a data-track="" data-track-location="footer" target="_blank"  href="" class="footer__list-link"伪静态配置/a

/li

li class="footer__list-item"

a data-track="" data-track-location="footer" target="_blank" href="" class="footer__list-link"水印设置/a

/li

li class="footer__list-item"

a data-track="" data-track-location="footer" target="_blank"  href="" class="footer__list-link"邮箱配置/a

/li

li class="footer__list-item"

a data-track="" data-track-location="footer" target="_blank"  href="" class="footer__list-link"标签管理/a

/li

li class="footer__list-item"

a data-track="" data-track-location="footer" target="_blank"  href="" class="footer__list-link"使用教程/a

/li

/ul

            /div

            div class="col-lg-4 col-lg-offset-2 col-md-5 col-md-offset-1 col-sm-3 footer__item--other text-right"

ul class="footer__list footer__list--social"

li class="footer__list-item"

a href="" target="_blank" class="footer__list-link"

i class="fa fa-github-square" aria-hidden="true"/i

/a

/li

li class="footer__list-item"

a href="./wechatinfo.html" class="footer__list-link"

i class="fa fa-wechat" aria-hidden="true"/i

/a

/li

/ul

                p

span data-track="" data-track-location="footer"  class="footer__list-link"Powered by WHATSNS V4/span⚬

                    span data-track="" data-track-location="footer"  class="footer__list-link"京ICP备15032243号-3/span

/p

/div

        /div

    /div

/footer

/main

a href="javascript:;" id="backToTop" onclick="backToTop(10)" style="display:block;"/a

script src="./dist/js/common.js" type="text/javascript"/script

script src="./dist/js/vendors-270e81adaf.js" type="text/javascript"/script

script src="./dist/js/main.js" type="text/javascript"/script

script

(function(){

var bp = document.createElement('script');

var curProtocol = window.location.protocol.split(':')[0];

if (curProtocol ==='https') {

bp.src ='';

}

else {

bp.src ='';

}

var s = document.getElementsByTagName("script")[0];

s.parentNode.insertBefore(bp, s);

})();

/script

/body

/html

我怎么在https://www.198bona.com给html页面添加水印?下面错在哪里呢?

你没有引入js库

script type="text/javascript" src="jquery-1.8.3.min.js"/script

把上面这一行放在 shuiyin js 的上面

库自己去下载就可以。。

希望对你有帮助。


网站名称:jquery水印,html 水印
新闻来源:http://mswzjz.cn/article/dsdoooe.html

其他资讯