HTML图片无法显示?别方,我们的程序员已经帮你做好了保管

版权声明:本文为博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blogdev.blog.csdn.net/article/details/94744441

不知道大家有没有遇到这种事情
辛辛苦苦写了半天的博客,结果。。。
在这里插入图片描述
它就这么挂了。。。挂了。。。

哎~不知道你们啥心情,反正我看着都想找块豆腐撞死了。
这个还是好的,听说有些小伙伴连排版都被弄乱了,在心里为他们默哀3秒。

不过,小伙伴们,你们再也不用担心这个问题啦,在我们程序的通宵努力下,CSDN已经完成了博客外连接图片编辑的重大改版。你们辛苦编辑的文档再也不会出现图片丢失啦,无论是大图、小图、动图还是表情包,我们都会替你们安安全全的保存下来。

后期我们还将对所用历史博客进行图片清洗,那些图片丢失的小伙伴们可以随时关注动态呦,如果还有丢失图片,可以直接在此贴下联系我们的客服人员,我们会第一时间为您解决。

展开阅读全文

网站首页FLASH做的新闻图片无法显示

08-26

本人遇到这样一个问题rn用ASP写的网站,网站首页有个图片新闻栏目,通过一个flash调用后台数据库里面的图片和新闻内容,新闻内容可以在旁边的table里面显示,但是flash无法显示新闻里面的图片。rn通过访问网站首页,右键查看源文件发现源文件里面ASP标签已经把新闻和图片都掉出来了,查询的语句和数据库连接都是没问题的,但是flash的效果里面确什么也没有。rn请各位高手帮我一下,小弟先谢了。rnrn附:ASP调用标签代码 和 插入 Flash 效果的代码rnrn<%rnrnset rsa = server.CreateObject ("adodb.recordset")rnsql ="select top 5 id,main_image,title from news where enable_flag='1' and main_image <>'' and subject_id='137' order by id desc"rnrsa.open sql,conn,1,1rn pic1="upload/"& rsa("main_image")rn rn imgLink1="admin/view.asp?subject_no=137&id=" & rsa("id")rn text1=lentitle(rsa("title"))rn rsa.movenextrn pic2="upload/"& rsa("main_image")rn rn imgLink2="admin/view.asp?subject_no=137&id=" & rsa("id")rn text2=lentitle(rsa("title"))rn rsa.movenextrn pic3="upload/"& rsa("main_image")rn rn imgLink3="admin/view.asp?subject_no=137&id=" & rsa("id")rn text3=lentitle(rsa("title"))rn rsa.movenext rn pic4="upload/"& rsa("main_image")rn rn imgLink4="admin/view.asp?subject_no=137&id=" & rsa("id")rn text4=lentitle(rsa("title"))rn rsa.movenextrn pic5="upload/"& rsa("main_image")rn rn imgLink5="admin/view.asp?subject_no=137&id=" & rsa("id")rn text5=lentitle(rsa("title"))rn rsa.closern set rs=nothingrn' conn.closern' set conn=nothing%> rnrn rn rn rn rn rn 论坛

鼠标移动已经绘制好了的直线

05-10

rn我想用鼠标移动已经绘制好了的直线可是弄了好久就是不行谁能帮我看看,有源码的发我邮箱243154669@qq.com源码能实现此功能的给100分rnrnrnCYidongView::CYidongView()rnrn // TODO: add construction code herern a=true;rn b=false;rnrn g_DisX=0;rn g_DisY=0;rn m_LastX=m_LastY=0;rn POINT Pos;rn GetCursorPos(&Pos);rn m_LastX=(float)Pos.x;rn m_LastY=(float)Pos.y;rn m_hitL=false;rnrnrnCYidongView::~CYidongView()rnrnrnrnvoid CYidongView::OnDraw(CDC* pDC)rnrn CYidongDoc* pDoc = GetDocument();rn ASSERT_VALID(pDoc);rn rn // TODO: add draw code for native data herern if(a)rn rn pDC->MoveTo(p1);rn pDC->LineTo(p2);rn rn if(b)rn rn rn OnZhixianMove();rn //DC->MoveTo(p1.x+g_DisX,p1.y+g_DisY);rn //DC->LineTo(p2.x+g_DisX,p2.y+g_DisY);rn rnrn rnrnrnrnrnvoid CYidongView::OnLButtonDown(UINT nFlags, CPoint point) rnrn // TODO: Add your message handler code here and/or call defaultrnrn rn if(a)rn rn p1=point;rn mouse_PressDown=true;rn rn if(b)rn rn if(p1.x>=p2.x && point.x<=p1.x+g_DisX && point.x>=p2.x +g_DisX)rn rn double x=point.x-g_DisX;rn double y=p1.y+(p1.y-p2.y)/(p1.x-p2.x)*(x-p1.x)+g_DisY;rn // int y=yCenter-(int)dy+g_DisY;rnrn CDC *pDC=GetDC();rn rn rn if((y-point.y)<15 && (y-point.y)>-15)rn rn rn this->m_hitL=true;rn // pDC->TextOut(x,y,"可以移动了");rn rn rn rn else rn rn this->m_hitL=false;rn rn rn rn rn if(p1.x<=p2.x && point.x<=p2.x+g_DisX && point.x>=p1.x+g_DisX )rn rn rn rn int x= point.x-g_DisX;rn int y=p1.y+(p1.y-p2.y)/(p1.x-p2.x)*(x-p1.x)+g_DisY;rn // int y=yCenter-(int)dy+g_DisY;rnrn CDC *pDC=GetDC();rn rn rn if((y-point.y)<15 && (y-point.y)>-15)rn rn rn this->m_hitL=true;rn // pDC->TextOut(x,y,"可以移动了");rn rn else rn this->m_hitL=false;rn rn rn CView::OnLButtonDown(nFlags, point);rn rnrnrnrnrnrnvoid CYidongView::OnLButtonUp(UINT nFlags, CPoint point) rnrn // TODO: Add your message handler code here and/or call defaultrn if(a)rn rn p2=point;rn mouse_PressDown=false;rn //CDC * pDC=GetDC();rn //pDC->MoveTo(p1);rn //pDC->LineTo(p2); rn rn rn if(b)rn this->m_hitL=false; rn CView::OnLButtonUp(nFlags, point);rnrnrnvoid CYidongView::OnMouseMove(UINT nFlags, CPoint point) rnrn // TODO: Add your message handler code here and/or call defaultrn if(a)rn rn if( mouse_PressDown)rn rn p2=point;rn CRect rectClient;rn GetClientRect(&rectClient);rn InvalidateRect(rectClient);rn rn rn rn if(b)rn rn CPoint Pos;rn GetCursorPos(&Pos); rn if (m_hitL)rn rn g_DisX+=(int)(Pos.x-m_LastX);rn g_DisY+=(int)(Pos.y-m_LastY);rn test();rn biaoji=1;rn rn m_LastX=(float)Pos.x;rn m_LastY=(float)Pos.y;rn rn rn CView::OnMouseMove(nFlags, point); rnrnrnvoid CYidongView::OnYidong() rnrn // TODO: Add your command handler code herern/* CDC * pDC=GetDC();rn pDC->MoveTo(p1);rn pDC->LineTo(p2);*/rnrn a=false;rn b=true;rn OnZhixianMove();rnrn rnrnrnvoid CYidongView::OnZhixianMove()rnrn CDC *pDC=GetDC();rn CPen NewPen;rn NewPen.CreatePen(PS_SOLID,1,RGB(255,0,0));rn CPen *pOldPen=pDC->SelectObject(&NewPen);rn pDC->MoveTo(p1.x+g_DisX,p1.y+g_DisY);rn int y,x;rn double j=fabs(p1.x-p2.x);rn if(p1.x!=p2.x)rn rn for(int i=5;iLineTo(x,y);rn pDC->MoveTo(x,y);rn rn rn pDC->SelectObject(pOldPen);rn NewPen.DeleteObject();rn biaoji=1;rn ReleaseDC (pDC);rn rn rnrnrnvoid CYidongView::OnHuaZhixian() rnrn // TODO: Add your command handler code herern a=true;rn b=false;rnrnrn void CYidongView::test()rnrn biaoji=0; rn Invalidate();rnrnrnrnvoid CYidongView::OnYidongCLEAR() rnrn // TODO: Add your command handler code herern g_DisX=0;rn g_DisY=0;rn b=false;rn a=true;rn p1=(0,0);rn p2=(0,0);rn test();rnrnrn// Invalidate();rn rnrn 论坛

没有更多推荐了,返回首页