web-成都创新互联网站建设

关于创新互联

多方位宣传企业产品与服务 突出企业形象

公司简介 公司的服务 荣誉资质 新闻动态 联系我们

web

Web开发基础

成都创新互联公司于2013年开始,是专业互联网技术服务公司,拥有项目成都网站设计、成都网站建设网站策划,项目实施与项目整合能力。我们以让每一个梦想脱颖而出为使命,1280元漯河做网站,已为上家服务,为漯河各地企业和个人服务,联系电话:13518219792

I. 网页基础

A. HTML

1、结构标签

: 定义整个HTML文档

: 包含文档的元数据,如标题和链接

: 包含可见的页面内容

</code>: 定义浏览器工具栏的标题</p><p><code><meta></code>: 提供元数据信息,如字符编码</p><p>2、格式标签</p><p><code><h1></code>到<code><h6></code>: 定义不同级别的标题</p><p><code><p></code>: 定义段落</p><p><code><div></code>: 定义一个块级元素,用于布局</p><p><code><span></code>: 定义内联元素,用于样式化文本</p><p>3、链接与图片</p><p><code><a></code>: 定义超链接,用于页面跳转</p><p><code><img></code>: 插入图像,需要指定src属性</p><p><code><map></code>: 定义图像映射,用于点击图像的不同区域</p><p>B. CSS</p><p>1、选择器</p><p>元素选择器: 通过HTML元素的标签名来选择元素</p><p>类选择器: 以<code>.</code>开头,用于选择具有特定类的元素</p><p>ID选择器: 以<code>#</code>开头,用于选择具有特定ID的元素</p><p>2、盒模型</p><p>内容(content): 实际内容所在区域</p><p>填充(padding): 内容和边框之间的空间</p><p>边框(border): 环绕在填充和外边距之间的线</p><p>外边距(margin): 元素周围的空间</p><p>3、布局方式</p><p>静态定位(static): 默认布局方式,元素按照正常的文档流进行排列</p><p>相对定位(relative): 元素相对于其正常位置进行偏移</p><p>绝对定位(absolute): 元素相对于最近的已定位祖先元素进行定位</p><p>固定定位(fixed): 元素相对于浏览器窗口进行定位</p><p>浮动定位(float): 元素脱离正常文档流并向左或向右移动</p><p>弹性盒子布局(flexbox): 提供更加有效的布局、对齐和空间分配方式</p><p>网格布局(grid): 二维布局系统,用于创建复杂的设计布局</p><p>C. JavaScript</p><p>1、变量与数据类型</p><p>基本数据类型: string, number, boolean, null, undefined</p><p>对象: 由键值对组成,可存储更复杂的数据结构</p><p>2、函数</p><p>定义函数: 使用<code>function</code>关键字声明</p><p>调用函数: 使用函数名后跟括号的方式执行</p><p>匿名函数: 没有具体名称的函数,通常用于事件处理或回调</p><p>3、事件处理</p><p>事件监听: 使用<code>addEventListener</code>方法监听特定事件</p><p>事件传播: 事件从触发元素向上冒泡至根节点的过程</p><p>事件捕获: 事件从根节点向下传递至目标元素的过程</p><p>II. Web安全</p><p>A. 跨站脚本攻击 (XSS)</p><p>描述: XSS是一种常见的攻击方式,攻击者通过在网页中注入恶意脚本,当其他用户浏览该网页时,这些脚本会在用户的浏览器上执行。</p><p>防护措施: 对用户输入进行验证和清理,使用内容安全策略(CSP)限制资源的加载,以及使用HTTP头部的<code>XContentTypeOptions</code>和<code>XXSSProtection</code>来防止攻击。</p><p>B. SQL注入</p><p>描述: SQL注入是攻击者通过在应用程序的查询字符串中插入恶意SQL代码,以此来操控数据库,获取、篡改或删除数据。</p><p>防护措施: 使用预编译语句和参数化查询,限制数据库的使用权限,以及实施严格的输入验证。</p><p>C. HTTPS与SSL/TLS</p><p>描述: HTTPS是在HTTP协议上增加SSL/TLS加密的安全协议,它为数据传输提供了加密保护,确保数据在传输过程中的安全性。</p><p>应用: 网站应当使用HTTPS来保护用户数据的隐私和完整性,特别是在处理敏感信息如登录凭据、支付信息等时。</p><p>D. 认证与授权机制</p><p>描述: 认证是确认用户身份的过程,而授权是授予用户访问资源的能力,这两者是网络安全的关键组成部分。</p><p>实践案例: 使用OAuth、OpenID Connect等开放标准进行认证,以及使用JSON Web Tokens (JWT)来管理用户的会话和授权信息,Google和Facebook的API就广泛使用了OAuth 2.0来进行用户认证。</p><p>III. Web性能优化</p><p>A. 网络请求优化</p><p>减少HTTP请求: 合并CSS和JavaScript文件,使用图片精灵和图标字体来减少请求次数。</p><p>使用CDN: 利用地理分布式的内容分发网络(CDN)来加速静态资源的加载速度。</p><p>压缩资源: 启用服务器端的GZIP或Brotli压缩来减小传输文件的大小。</p><p>B. 资源加载策略</p><p>异步加载: 使用<code>async</code>和<code>defer</code>属性来控制脚本的加载和执行时机。</p><p>按需加载: 实现代码拆分,只在需要时加载特定的模块或组件。</p><p>预加载: 使用<code><link rel="preload"></code>来提前加载关键资源,加快页面渲染速度。</p><p>C. 缓存策略</p><p>HTTP缓存: 设置合适的<code>CacheControl</code>和<code>Expires</code>头部来指示浏览器缓存静态资源。</p><p>Service Workers: 使用Service Workers来控制页面和静态资源的缓存,即使在离线状态下也能提供服务。</p><p>应用案例: Amazon的电子商务平台通过优化图片大小和格式,以及实施智能的缓存策略,显著提高了页面加载速度和用户体验。</p> <br> 分享文章:web <br> 链接分享:<a href="http://kswsj.cn/article/ccoccgp.html">http://kswsj.cn/article/ccoccgp.html</a> </div> </div> <div class="other"> <h3>其他资讯</h3> <ul> <li> <a href="/article/dpicscd.html">SaaS初创公司的七个成长秘诀</a> </li><li> <a href="/article/dpicsei.html">如何租用国外服务器,有什么注意事项(租用美国服务器,需要注意什么?)</a> </li><li> <a href="/article/dpicseg.html">html5如何执行</a> </li><li> <a href="/article/dpicsed.html">怎么查看指纹痕迹?(指纹怎么看)</a> </li><li> <a href="/article/dpicsee.html">Php.ini设置:session.gc_maxlifetime</a> </li> </ul> </div> </div> <div class="line"></div> <!--底部--> <footer id="5"> <div class="foot1 container"> <div class="list"> <div class="item"> <a href="javascript:;"> <span class="ico1"><i class="iconfont"></i><img src="/Public/Home/img/ewm.png" alt=""></span> <strong>关注我们</strong> </a> </div> <div class="item"> <a href="" target="_blank"> <span><i class="iconfont"></i></span> <strong>索要报价</strong> </a> </div> <div class="item"> <a href="" target="_blank"> <span><i class="iconfont"></i></span> <strong>我要咨询</strong> </a> </div> <div class="item"> <a href="" target="_blank"> <span><i class="iconfont"></i></span> <strong>找到我们</strong> </a> </div> <div class="item"> <a href="" target="_blank"> <span><i class="iconfont"></i></span> <strong>投诉建议</strong> </a> </div> </div> <div class="tel"> <dl> <tel><a href="tel:400-028-6601" target="_blank">400-028-6601</a></tel><br> <span>也许您需要专业的服务,欢迎来电咨询</span> </dl> <dl> <tel><a href="tel:18980820575" target="_blank">18980820575</a></tel><br> <span>您的需求,是我们前进的动力</span> </dl> </div> </div> <div class="friend"> <div class="container"> <span class="tit">友情链接:</span> <div class="inner"> <a href="https://www.cdcxhl.com/sosuo.html" target="_blank">关键词优化排名</a><a href="https://www.cdcxhl.com/app.html" target="_blank">成都app软件开发</a><a href="https://www.cdcxhl.com/gaiban/" target="_blank">网站改版公司</a><a href="https://www.cdcxhl.com/tuoguan/" target="_blank">成都IDC机房托管</a><a href="https://www.cdcxhl.com/cloud/" target="_blank">成都云服务器</a><a href="https://www.cdcxhl.com/gaiban/chengdu.html" target="_blank">成都网站改版</a><a href="https://www.cdcxhl.com/shoulu/" target="_blank">网站快速收录</a><a href="https://www.cdcxhl.com/xiangyingshi.html" target="_blank">成都响应式网站设计</a><a href="https://www.cdcxhl.com/google.html" target="_blank">谷歌推广</a><a href="https://www.cdcxhl.com/app.html" target="_blank">app软件开发公司</a><a href="https://www.cdcxhl.com/mobile.html" target="_blank">成都手机网站建设公司</a><a href="https://www.cdcxhl.com/zuyong/" target="_blank">成都物理服务器租用</a><a href="https://www.cdcxhl.com/sosuo.html" target="_blank">网站排名优化</a><a href="https://www.cdcxhl.com/weihu/" target="_blank">成都网站维护</a><a href="https://www.cdcxhl.com/douyin/" target="_blank">成都抖音运营</a><a href="https://www.cdcxhl.com/yingxiao.html" target="_blank">营销网站建设</a><a href="https://www.cdcxhl.com/" target="_blank">建站公司</a><a href="https://www.cdcxhl.com/" target="_blank">成都网站建设公司</a> </div> </div> </div> <div class="foot"> <div class="container"> <div class="footNav"> <h3>网站建设</h3> <a href="http://www.36103.cn/" target="_blank">成都网站建设</a><a href="http://www.cdkjz.cn/fangan/education/" target="_blank">教育培训网站建设方案</a><a href="http://www.myzwz.com/" target="_blank">绵阳网站建设</a> </div> <div class="footNav"> <h3>服务器托管</h3> <a href="https://www.cdxwcx.com/jifang/guanghua.html" target="_blank">光华服务器托管</a><a href="https://www.xwcx.net/" target="_blank">成都机柜租用</a><a href="https://www.cdcxhl.com/idc/cqyd.html" target="_blank">重庆移动机房托管</a> </div> <div class="footNav"> <h3>网站制作</h3> <a href="http://www.scyanting.com/" target="_blank">盐亭网站制作公司</a><a href="http://www.csdpgg.com/" target="_blank">城市大屏广告</a><a href="http://chengdu.xwcx.net/mobile/" target="_blank">移动手机网站制作</a> </div> <div class="footNav"> <h3>企业服务</h3> <a href="https://www.cdcxhl.com/ruanwen/yingxiao/" target="_blank">软文发稿</a><a href="https://www.cdcxhl.com/ruanwen/yingxiao/" target="_blank">软文营销</a><a href="https://www.cdcxhl.com/mianfei/jianzhan/" target="_blank">成都免费建站</a> </div> <div class="fr ecode"> <div class="fl"> <img src="/Public/Home/img/ewm.jpg"> <p>关注企业微信</p> </div> <div class="fr slogan"> <p class="icon"> <a class="ph" href=""><i class="iconfont"></i></a> <a class="qq" href="tencent://message/?uin=1683211881&Site=&Menu=yes"><i class="iconfont"></i></a> </p> <p> <i>想要找 </i> <a href="">小程序开发</a>、<a href="">APP开发</a>、 <a href="">营销型网站建设</a>、<a href="">网站建设</a>、 <i><a href="">网站定制开发</a></i> ,就选<a href="">创新互联</a> </p> </div> </div> </div> <div class="bottom container"> <p class="fl"> 版权所有:成都创新互联科技有限公司 备案号:<a href="https://beian.miit.gov.cn/" target="_blank" rel="nofollow">蜀ICP备19037934号</a> 服务热线:028-86922220 </p> <p class="fr"> <a href="https://www.cdxwcx.com/" target="_blank">成都网站建设</a>: <a href="https://www.cdcxhl.com/" target="_blank">创新互联</a> </p> </div> </div> </footer> <!--在线咨询--> <div class="fot"> <ul> <li> <a href="https://p.qiao.baidu.com/cps/mobileChat?siteId=11284691&userId=6256368&type=1&reqParam=%20{%22from%22:0,%22sessionid%22:%22%22,%22siteId%22:%2211284691%22,%22tid%22:%22-1%22,%22userId%22:%226256368%22,%22ttype%22:1,%22siteConfig%22:%20{%22eid%22:%226256368%22,%22queuing%22:%22%22,%22siteToken%22:%226ce441ff9e2d6bedbdfc2a4138de449e%22,%22userId%22:%226256368%22,%22isGray%22:%22false%22,%22wsUrl%22:%22wss://p.qiao.baidu.com/cps3/websocket%22,%22likeVersion%22:%22generic%22,%22siteId%22:%2211284691%22,%22online%22:%22true%22,%22webRoot%22:%22//p.qiao.baidu.com/cps3/%22,%22bid%22:%22160142915792139572%22,%22isSmallFlow%22:0,%22isPreonline%22:0,%22invited%22:0%20},%22config%22:%20{%22themeColor%22:%224d74fa%22%20}%20}&appId=&referer=&iswechat=0&expectWaiter=-1&openid=null&otherParam=null&telephone=null&speedLogId=null&eid=null&siteToken=6ce441ff9e2d6bedbdfc2a4138de449e" target="_blank"> <img src="/Public/Home/img/fot1.png" alt=""> <p>在线咨询</p> </a> </li> <li> <a href="tel:18980820575" target="_blank"> <img src="/Public/Home/img/fot2.png" alt=""> <p>拨打电话</p> </a> </li> </ul> </div> </body> </html> <script> $(".con img").each(function(){ var src = $(this).attr("src"); //获取图片地址 var str=new RegExp("http"); var result=str.test(src); if(result==false){ var url = "https://www.cdcxhl.com"+src; //绝对路径 $(this).attr("src",url); } }); window.onload=function(){ document.oncontextmenu=function(){ return false; } } </script>