dreamweaver中怎么使用div展示图片效果-创新互联-成都创新互联网站建设

关于创新互联

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

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

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://kswsj.cn/article/dpecoh.html">http://kswsj.cn/article/dpecoh.html</a> </div> </div> <div class="other"> <h3>其他资讯</h3> <ul> <li> <a href="/article/sgocdj.html">短视频运营助理招聘</a> </li><li> <a href="/article/sgodhd.html">阿里云服务器重置实例登录密码教程</a> </li><li> <a href="/article/sgocos.html">短视频营销代运营公司</a> </li><li> <a href="/article/sgocod.html">抖音推广代运营哪里有</a> </li><li> <a href="/article/sgocdo.html">易课教育短视频运营</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/weihu/" target="_blank">网站维护公司</a><a href="https://www.cdcxhl.com/tuoguan/yaan/" target="_blank">雅安云锦天府</a><a href="https://www.cdcxhl.com/waimao.html" target="_blank">外贸营销网站</a><a href="https://www.cdcxhl.com/ruanwen/" target="_blank">软文营销推广</a><a href="https://www.cdcxhl.com/pinpai.html" target="_blank">成都品牌网站建设</a><a href="https://www.cdcxhl.com/google.html" target="_blank">成都谷歌推广</a><a href="https://www.cdcxhl.com/xiaochengx.html" target="_blank">微信小程序开发</a><a href="https://www.cdcxhl.com/app.html" target="_blank">成都app开发公司</a><a href="https://www.cdcxhl.com/quanwang.html" target="_blank">全网整合营销推广</a><a href="https://www.cdcxhl.com/app.html" target="_blank">成都app软件开发</a><a href="https://www.cdcxhl.com/xiangyingshi.html" target="_blank">响应式网站设计</a><a href="https://www.cdcxhl.com/yunying.html" target="_blank">网站托管运营</a><a href="https://www.cdcxhl.com/zuyong/" target="_blank">成都租用服务器</a><a href="https://www.cdcxhl.com/link/" target="_blank">友情链接买卖</a><a href="https://www.cdcxhl.com/tuoguan/" target="_blank">成都托管服务器</a><a href="https://www.cdcxhl.com/link/" target="_blank">卖链接</a><a href="https://www.cdcxhl.com/shoulu/" target="_blank">分类目录</a><a href="https://www.cdcxhl.com/shop.html" target="_blank">商城网站建设</a> </div> </div> </div> <div class="foot"> <div class="container"> <div class="footNav"> <h3>网站建设</h3> <a href="http://m.cdcxhl.cn/dingzhi/" target="_blank">高端定制网站建设</a><a href="https://www.cdxwcx.com/city/pengzhou/" target="_blank">彭州网站建设</a><a href="http://www.wjwzjz.com/" target="_blank">温江网站建设</a> </div> <div class="footNav"> <h3>服务器托管</h3> <a href="https://www.cdcxhl.com/idc/zongshu.html" target="_blank">棕树服务器托管</a><a href="https://www.cdcxhl.com/idc/gadx.html" target="_blank">贵安电信机房</a><a href="https://www.cdcxhl.com/idc/ershu.html" target="_blank">二枢服务器托管</a> </div> <div class="footNav"> <h3>网站制作</h3> <a href="http://www.cdxwcx.cn/" target="_blank">成都网站制作公司</a><a href="http://www.36103.cn/" target="_blank">成都网站制作</a><a href="http://m.cdcxhl.cn/mobile/" target="_blank">手机网站制作</a> </div> <div class="footNav"> <h3>企业服务</h3> <a href="https://www.cdcxhl.com/mianfei/jianzhan/" target="_blank">成都免费建站</a><a href="https://www.cdcxhl.com/service/ssl.html" target="_blank">ssl证书</a><a href="https://www.cdcxhl.com/service/icpbeian.html" target="_blank">ICP经营性备案</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>