angular接受后台HTML (新闻发布系统)
2016-09-07 18:10
344 查看
后台添加新闻,在angularjs 中显示
问题:由于后台发布的图片不一定能够在手机尺寸中正常显示,解决办法,在页面加载完图片之后,对图片重现设置样式“宽度90%,居中”对齐。
问题:由于后台发布的图片不一定能够在手机尺寸中正常显示,解决办法,在页面加载完图片之后,对图片重现设置样式“宽度90%,居中”对齐。
//公司介绍内容 .state('companyIntroduce.company', { url: '/companyIntroduce/company', template: '<div ng-bind-html="content"></div><div id="bottom_div_show"></div>', controller: "companyIntroduceIndexCompanyController", //进入页面触发的方法 onEnter: function () { var initImgShow = function(){ var str=";line-height:1.5rem;color:#535353; width:100%;"; jQuery("img").attr("style","width:95%;padding: 0px; margin: 0 auto; border: none;display:block"); jQuery("img").attr("align","center"); jQuery("div").attr("style","padding: 0px; margin: 0px;with:95%;line-height: 1.5rem;font-size: 1rem;color:#535353;"); jQuery("p").each(function(){ var tag=jQuery(this).attr("style")==null; if(tag) { jQuery(this).attr("style",str); } else { jQuery(this).attr("style",jQuery(this).attr("style")+str); } //alert(jQuery(this).attr("style")); }); }; setTimeout(initImgShow,1000); }, })
相关文章推荐
- 牛腩新闻发布系统——后台前台整合技术
- 牛腩新闻发布系统——后台前台整合技术
- 牛腩新闻发布系统之CSS和HTML
- http://www.guaker.cn/jiaocheng/spjiaocheng/jichu/200605/9559.html( 视频asp,net 开发新闻发布系统)
- 新闻发布系统后台(未完待续)
- 新闻发布系统后台
- 牛腩新闻发布系统后台开发总结
- 牛腩新闻发布系统-HTML标签总结
- 【牛腩新闻发布系统】——必备基础知识HTML、XML、XHTML
- 牛腩新闻发布系统之CSS和HTML
- 牛腩新闻发布系统之系统分析、后台设计
- 牛腩新闻发布系统——后台登录界面生成验证码
- 简单新闻发布系统前台界面(html+css)
- 【牛腩新闻发布系统】--后台、界面制作总结
- 三层构架的后台新闻管理系统ACCESS版(二)
- 雷池新闻发布系统uploadPic.asp漏洞
- 一个完整的新闻发布系统
- 博客园的后台功能真强大,是我见过的最好的博客发布系统了。
- 用文本+ASP打造新闻发布系统
- 关于新闻发布系统,侧栏,与底栏的设计构想