189 8069 5689

dreamweaver中怎么使用div展示图片效果-创新互联

dreamweaver中怎么使用div展示图片效果,相信很多没有经验的人对此束手无策,为此本文总结了问题出现的原因和解决方法,通过这篇文章希望你能解决这个问题。

创新互联基于成都重庆香港及美国等地区分布式IDC机房数据中心构建的电信大带宽,联通大带宽,移动大带宽,多线BGP大带宽租用,是为众多客户提供专业服务器托管报价,主机托管价格性价比高,为金融证券行业西云机房,ai人工智能服务器托管提供bgp线路100M独享,G口带宽及机柜租用的专业成都idc公司。

1、启动dreamweaver cs5,执行文件-新建命令,在弹出的新建文档对话框选择html文件,点击创建按钮


dreamweaver中怎么使用div展示图片效果

2、在标签无标题文档中修改名称为div布局图片效果

dreamweaver中怎么使用div展示图片效果

3、在标签下方输入<style>相关的代码,</strong>定义网页的整体样式,样式直接影响着网页的美观程度。</p><p><img src="/upload/otherpic33/2621.jpg" alt="dreamweaver中怎么使用div展示图片效果"></p><p>4、接着在<strong><body>中输入div标签三个,</strong>并分别设置他们所属于的类,<strong>最外边的div设置类为db,中间两个分别为zpxc1和zpxc,</strong>在下方就会看到基本的框架效果。</p><p><img src="/upload/otherpic33/2622.jpg" alt="dreamweaver中怎么使用div展示图片效果"></p><p>5、外部的框架设计好之后,接着设计使用div布局图片,书写相应的代码,设置div的尺寸大小和相关属性,同时设计图片的相关属性。</p><p>代码为:</p><p><strong>div.pt img{margin:0px; height:220px; width:120px; margin-top:10px; border: 1px solid #333;}</strong></p><p><strong>div.pt{float:left; height:240px; width:140px; margin:6px; padding:0px; margin-top:10px; filter:light; background:#333; margin-left:0.8em;}</strong></p><p><strong>.pic{ float:right;}</strong></p><p><img src="/upload/otherpic33/2623.jpg" alt="dreamweaver中怎么使用div展示图片效果"></p><p>6、在类为zpxc1的div中建立新的四个<strong>div,并设置img的 src属性值,</strong>对图片进行正确的链接。</p><p><img src="/upload/otherpic33/2624.jpg" alt="dreamweaver中怎么使用div展示图片效果"></p><p>7、按f12进行在浏览器中进行预览效果,出现提醒信息<strong>“是否将改动保存到”,</strong>直接点击是,找一个合适的位置进行保存。</p><p><img src="/upload/otherpic33/2625.jpg" alt="dreamweaver中怎么使用div展示图片效果"></p><p><img src="/upload/otherpic33/2626.jpg" alt="dreamweaver中怎么使用div展示图片效果"></p><p>8、接着在类为zpxc的div中输入“<strong>作品展示</strong>”四个字,再次才看效果,如果不合适可进行再次修改。</p><p><img src="/upload/otherpic33/2627.jpg" alt="dreamweaver中怎么使用div展示图片效果"></p><p>9、如果图片过多,<strong>可以修改类zpxc1和db的高度</strong>,反复修改直至合适为止,重复步骤6、7采用同样的方法建立多个图片div。</p><p><img src="/upload/otherpic33/2628.jpg" alt="dreamweaver中怎么使用div展示图片效果"></p><p>10、如果对“作品展示”四个字不满意的话,可以使用图片进行替换,达到满意为止,再次按f12进行在浏览器中进行查看效果,</p><p><img src="/upload/otherpic33/2629.jpg" alt="dreamweaver中怎么使用div展示图片效果"></p><p>11、执行文件-另存为命令,在弹出的对话框中输入名称为<strong>“div布局图片</strong>”,找到一个合适的位置进行保存即可。</p><p><img src="/upload/otherpic33/2630.jpg" alt="dreamweaver中怎么使用div展示图片效果"></p><p>看完上述内容,你们掌握dreamweaver中怎么使用div展示图片效果的方法了吗?如果还想学到更多技能或想了解更多相关内容,欢迎关注创新互联行业资讯频道,感谢各位的阅读!</p> <br> 网页名称:dreamweaver中怎么使用div展示图片效果-创新互联 <br> 当前地址:<a href="http://cdxtjz.cn/article/dpecoh.html">http://cdxtjz.cn/article/dpecoh.html</a> </div> </div> <div class="other"> <h3>其他资讯</h3> <ul> <li> <a href="/article/ghsgii.html">Centos7安装MQTT(EMQ)服务端</a> </li><li> <a href="/article/ghsgsj.html">tomcat组件图解一个web服务器的架构演化史</a> </li><li> <a href="/article/ghsgci.html">nodejs中archiver如何用</a> </li><li> <a href="/article/ghsgsp.html">如何使用PHP中clone关键字和__clone()方法</a> </li><li> <a href="/article/ghsgse.html">Winform让PictureBox有滚动条并响应滚轮和拖动事件</a> </li> </ul> </div> </div> <footer> <div class="foot container"> <div class="footl fl"> <h3>联系我们</h3> <dl> 您好HELLO!<br> 感谢您来到成都网站建设公司,若您有合作意向,请您为我们留言或使用以下方式联系我们, 我们将尽快给你回复,并为您提供真诚的设计服务,谢谢。 </dl> <ul> <li>电话:028- <span>86922220 18980695689</span></li> <li>商务合作邮箱:631063699@qq.com</li> <li>合作QQ: 532337155</li> <li>成都网站设计地址:成都市青羊区锣锅巷31号五金站写字楼6楼</li> </ul> </div> <div class="footr fr"> <h3>小谭建站工作室</h3> <dl> 成都小谭网站建设公司拥有多年以上互联网从业经验的团队,始终保持务实的风格,以"帮助客户成功"为已任,专注于提供对客户有价值的服务。 我们已为众企业及上市公司提供专业的网站建设服务。我们不只是一家网站建设的网络公司;我们对营销、技术、管理都有自己独特见解,小谭建站采取“创意+综合+营销”一体化的方式为您提供更专业的服务! </dl> <h3>小谭观点</h3> <dl> 相对传统的成都网站建设公司而言,小谭是互联网中的网站品牌策划,我们精于企业品牌与互联网相结合的整体战略服务。<br> 我们始终认为,网站必须注入企业基因,真正使网站成为企业vi的一部分,让整个网站品牌策划体系变的深入而持久。 </dl> </div> </div> <div class="link"> <div class="container"> <span> 友情链接:</span> <a href="http://www.hzjierui.cn/" title="彭州网站建设" target="_blank">彭州网站建设</a>   <a href="https://www.cdcxhl.com/mianfei/zuo/chengdu.html" title="成都免费做网站公司" target="_blank">成都免费做网站公司</a>   <a href="http://www.cdxwcx.cn/tuoguan/mianyang.html" title="绵阳服务器托管" target="_blank">绵阳服务器托管</a>   <a href="http://www.scyanting.com/" title="盐亭网站设计" target="_blank">盐亭网站设计</a>   <a href="http://www.xhgfhy.com/ " title="不锈钢防护栏" target="_blank">不锈钢防护栏</a>   <a href="http://www.lzhejiang.com/" title="合江网站建设" target="_blank">合江网站建设</a>   <a href="http://www.cdkjz.cn/develop/" title="电商网站" target="_blank">电商网站</a>   <a href="http://seo.cdkjz.cn/seo/" title="百度关键词排名" target="_blank">百度关键词排名</a>   <a href="https://www.cdcxhl.com/h5.html" title="h5页面制作" target="_blank">h5页面制作</a>   <a href="http://www.cxjianzhan.com/baojia/" title="网站建设费用" target="_blank">网站建设费用</a>    </div> </div> <div class="copy"> © Copyright 2023 <a href="http://www.cdxtjz.cn/">小谭建站工作室</a>All Rights Reserved.  <a href="http://beian.miit.gov.cn" target="_blank" rel="nofollow">蜀ICP备2021004003号-2</a>  <a href="https://www.cdxwcx.com" target="_blank">成都网站建设</a> / <a href="https://www.cdxwcx.com" target="_blank">成都网站建设</a> / <a href="https://www.cdxwcx.com" target="_blank">响应式网站建设</a> / <a href="https://www.cdxwcx.com target=" _blank"="">定制网站建设</a>  <a href="sitemap.xml" target="_blank">xml</a> <a href="sitemap.html" target="_blank">网站地图</a> </div> </footer> </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>