HTML初学者问题,求大神告诉我原因所在

1.我导入的是本地图片作为背景,但是我点一下空白处(1问题影响不到的地方)就会刷新页面..我导入的是本地图片作为背景,但是我点一下空白处(1问题影响不到的地方)就会刷新页面.

2.我在一个按钮中放入了链接,并且设置了按钮的显示位置,然后就有很大一部分位置你不论点哪里都是点的这个链接.

3.我制作第二个按钮时,复制了第一个按钮的代码,把一些显示内容改了下,然后就发现这个按钮大概显示于第一个按钮下方的400px(我设置的是padding-top:400px)

有没有大神解决下的,如有低级错误,轻喷. :)

下面附上代码

<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="Generator" content="EditPlus®">
    <meta name="Author" content="">
    <meta name="Keywords" content="">
    <meta name="Description" content="">
    <title>个人主页</title>
</head>
<body>
<!--背景图片-->
    <head>
        <style>
            body
                {
                background-image:url("1.jpg");
                background-attachment:fixed;
                background-size:cover;
                }
        </style>
    </head>
<!-- bilibili 按钮设置-->
    <style>
        .bilibili {
            -webkit-transition-duration: 0.5s;
            transition-duration: 0.5s;
            text-align: center;
            background-color: white;
            padding: 20px 40px;
            color: #00a1d6;
            border:0px solid;
            border-radius:100px;
        }
        .bilibili:hover{
            background-color: #00a1d6;
            color: white;
        }
    </style>
<!-- bilibili 按钮及显示位置-->
    <a href="http://www.bilibili.com">
        <div style="padding-left:300px;padding-top:400px">
            <button class="bilibili">bilibili</button>
        </div>
    </a>
<!-- 空白 按钮设置-->
    <style>
        .nothing {
            -webkit-transition-duration: 0.5s;
            transition-duration: 0.5s;
            text-align: center;
            background-color: white;
            padding: 20px 40px;
            color: #00a1d6;
            border:0px solid;
            border-radius:100px;
        }
        .nothing:hover{
            background-color: #00a1d6;
            color: white;
        }
    </style>
<!-- 空白 按钮及显示位置-->
    <a href="">
        <div style="padding-left:500px;padding-top:400px">
            <button class="nothing">空白</button>
        </div>
    </a>
</body>
</html>

3个回答

首先,建议<style>标签写在<head>标签内;再说问题,你用a标签包含了一个块元素,然后在块元素中写button,点击跳转事件就在整个div上都执行,感觉很别扭,底下点击刷新页面是<a href>的锅,去掉href就没了,另外如果按钮需要点击跳转,第一可以用a标签并改变a标签的样式去实现,第二可以在button上添加
onclick="window.location.href=''你的链接';"去实现

第一个问题,应该是你点击到了第二个加了padding的无地址的a链接引起的刷新错觉,可以去掉padding 或者给第二个按钮加链接尝试一下
第二个问题,a标签的话一般都是放在div,button中的,你把a标签放进button中就解决了
第三个问题,因为他们都是块元素,所以第二个按钮会以第一个按钮为起点,也就是在它的下方,如果想要将他们并列显示,可以去掉外层的div,将他们包含在一个div中 或者 使用浮动,定位

smallNut
花心小坚果 回复天之剑尘: 这个东西跟布局有关,学了布局你就知道了
大约 2 个月之前 回复
qq_44182364
天之剑尘 问题都解决了,感谢各位大佬的援助.但是有个问题想问问,难道只能让按钮并排显示吗,HTML中没有输出制表符的命名吗?
大约 2 个月之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
html问题 求大神
[code=html]rn rn rn 期号rn 中奖号码rn 号码分布rn rn rn 1rn 2rn 3rn 4rn 5rn 6rn 7rn 8rn 9rn 10rn 11rn 12rn rn rn rn rn rn rn rn rn rn rn rn 04rn rn rn rn 08rn rn rn 11rn 12rn rn rn [/code]rn我现在想要在对应的列上显示对应的数字,比如说num1=6,那么我想在第六列显示6,怎么处理好呢
HTML初学者小白求大神支援
终于把这个背景铺满了,倒是添加的视频和图片还有链接却不在背景图上面是怎么回事,求各位大神赐教,不胜感谢。[img=https://img-bbs.csdn.net/upload/201903/01/1551447677_655507.jpg][/img][img=https://img-bbs.csdn.net/upload/201903/01/1551447678_364756.jpg][/img][img=https://img-bbs.csdn.net/upload/201903/01/1551447795_25288.jpg][/img][img=https://img-bbs.csdn.net/upload/201903/01/1551447796_80947.jpg][/img][img=https://img-bbs.csdn.net/upload/201903/01/1551447826_94317.jpg][/img][img=https://img-bbs.csdn.net/upload/201903/01/1551447827_194770.jpg][/img]
初学者求大神指导
小弟初学Java遇到一个难题,求大神指导。rnrn题目:从键盘输入三个数,并赋值,比较之后按从小到大的顺序输出。
初学者,求大神解答
为什么这两代码在控制台那里运行不出来,显示的是我之前打的同一包中不同类的运行结果,求解答,,rn[img=https://img-bbs.csdn.net/upload/201907/30/1564453771_99934.png][/img][img=https://img-bbs.csdn.net/upload/201907/30/1564453776_146129.png][/img]
java初学者 求大神
代码rn<%@ page language="java" import="java.sql.*"rn contentType="text/html; charset=gb2312" pageEncoding="gb2312"%>rn<%@page import="java.lang.*"%>rnrnrnrn rn Insert title herernrnrnrn <%rn java.sql.Connection conn;rn java.lang.String strConn;rn java.sql.PreparedStatement preparedStmt = null;rn //语句对象rn java.sql.ResultSet sqlRst = null; //结果集对象rn try rn Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();rn conn = java.sql.DriverManager.getConnection(rn "jdbc:oracle:thin:@10.128.9.239:1522:ADP630",rn "javastudy", "javastudy");rn //设置参数rn String parm = request.getParameter("parm"); rn String parm1=new String(request.getParameter("parm1").getBytes("iso-8859-1")); rn String parm2=new String(request.getParameter("parm2").getBytes("iso-8859-1"));rn rn if (parm != null) rn preparedStmt = connrn .prepareStatement("select * from EMP t where EMPCODE like ?");rn preparedStmt.setString(1, "%" + parm + "%");rn sqlRst = preparedStmt.executeQuery();rn else if ((parm == null) && (parm1 != null)) rn preparedStmt = connrn .prepareStatement("select * from EMP t where EMPNAME like ?");rn preparedStmt.setString(1,"%" + parm1 + "%");rn sqlRst = preparedStmt.executeQuery();rn else if ((parm == null) && (parm1 == null) && (parm2 != null)) rn preparedStmt = connrn .prepareStatement("select * from EMP t where SEX like ?");rn preparedStmt.setString(1, "%" + parm2 + "%");rn sqlRst = preparedStmt.executeQuery();rn elsern out.println("请输入:");rn //执行SQL 语句rn %>rn 顾客信息表rn rn rnrn 编码rn 姓名rn 性别rn 生日rn 邮编rn 地址rn 电话rn 工资rn rn <%rn while (sqlRst.next()) //取得下一条记录rn %>rn rn rn <%=sqlRst.getString("empcode")%>rn <%=new String(sqlRst.getString("EMPNAME").getBytes(rn "gb2312"))%>rn <%=new String(sqlRst.getString("SEX").getBytes(rn "gb2312"))%>rn <%=new String(sqlRst.getString("BIRTHDAY").getBytes(rn "iso-8859-1"))%>rn <%=new String(sqlRst.getString("POSTCODE").getBytes(rn "gb2312"))%>rn <%=new String(sqlRst.getString("ADDRESS").getBytes(rn "gb2312"))%>rn <%=new String(sqlRst.getString("PHONE").getBytes(rn "iso-8859-1"))%>rn <%=new String(sqlRst.getString("WAGE").getBytes(rn "iso-8859-1"))%>rnrn rn <%rn //out.println(parm1);rn %>rn rn <%rn //关闭结果集对象rn sqlRst.close();rn //关闭语句对象rn preparedStmt.close();rn //关闭数据库连接rn conn.close();rn catch (java.sql.SQLException e) rn out.println(e.toString());rn rn %>rnrnrnrnrnrnrn在连接数据库之后,执行查询时为什么只有输入parm时可以成功,在输入parm1和parm2查询时均不成功呢??? 求大神指教啊!!
初学者求大神解答
protected void Button1_Click(object sender, EventArgs e)rn rn string name = Session["Vipname"].ToString();rn string userid = Session["Vipcard"].ToString();rn string zhuti = txt_zhutiadd.Text.ToString();rn string neirong = txt_neirongadd.Text.ToString();rn //string time = DateTime.Now.ToString();rn string sConn = ConfigurationManager.ConnectionStrings["ConnStr"].ToString();rn using (SqlConnection Conn = new SqlConnection(sConn))rn rn Conn.Open();rn using (SqlCommand cmd = new SqlCommand("Insert INTO [Liuyan] ([lytitle], [lycontent] ,[username] , [userid]) VALUES (@zhuti,@neirong,@name,@userid)", Conn))rn rn cmd.Parameters.AddWithValue("@zhuti", zhuti);rn cmd.Parameters.AddWithValue("@neirong", neirong);rn //cmd.Parameters.AddWithValue("@time", time);rn cmd.Parameters.AddWithValue("@name", name);rn cmd.Parameters.AddWithValue("@userid", userid);rn cmd.ExecuteNonQuery();rn rn rn rn rn总是报错,看了半天实在是看不出哪里错了,求大神解答rnrn编译不报错 运行出错rnrn行 40: cmd.Parameters.AddWithValue("@name", name);rn行 41: cmd.Parameters.AddWithValue("@userid", userid);rn行 42: cmd.ExecuteNonQuery();rn行 43: rn行 44: rn rnrn
求高手告诉我运行原因
using System;rnclass Arnrnpublic A()rnrnPrintFields();rnrnpublic virtual void PrintFields()rnrnclass B:Arnrnint x=1;rnint y;rnpublic B()rnrny=-1;rnrnpublic override void PrintFields()rnrnConsole.WriteLine("x=0,y=1",x,y);rnrn我试过了答案是x=1,y=0;
求大神告诉我动态链接库调用
Option Explicit OnrnPublic Class Form1rn Private Declare Function FreeLibrary Lib "JY_WS_DLL" (ByVal hLibModule As Long) As Long '释放LoadLibrary载入的动态链接库,非零表示成功,零表示失败。 rn Private Declare Function LoadLibrary Lib "JY_WS_DLL" Alias "LoadLibrary_JY" (ByVal lpLibFileName As String) As Long '载入指定动态链接库,成功则返回库模块的句柄,零表示失败。 rn Private Declare Function GetProcAddress Lib "JY_WS_DLL" (ByVal hModule As Long, ByVal lpProcName As String) As Long '检索指定的动态链接库(DLL)中的输出库函数地址(超找函数入口地址),成功则返回值是DLL中的输出函数地址,失败返回值是NULL。 rn Private Declare Function CallWindowProc Lib "JY_WS_DLL" Alias "CallWindowProcA" (ByVal lpPrevWndFunc As Long, ByVal hWnd As Long, ByVal Msg As String, ByVal wParam As String, ByVal lParam As String) As Long '将消息信息传送给指定的窗口过程。 rnrnrn Private Sub Main()rn Dim LibHand As Long '载入的dll句柄 rn Dim pFn As Longrnrn LibHand = LoadLibrary("JY_WS_DLL") '将JY_WS_DLL载入到内存。 rn pFn = GetProcAddress(LibHand, "CheckBalance")rnrn CallWindowProc(pFn, 0, "1", "2", 0)rnrn End Subrnrn Private Sub Form1_Load(sender As Object, e As EventArgs) Handles Me.Loadrn Main()rn End SubrnEnd Classrnrn抄了一下别人的代码,但始终爆出无法加载 DLL“JY_WS_DLL”: 找不到指定的模块。 (异常来自 HRESULT:0x8007007E)。的错误,dll我是放在根目录和System32下都有rn
求大神告诉我怎么解决这个问题
[img=https://img-bbs.csdn.net/upload/201401/03/1388731665_320739.jpg][/img]rnrn如图所示,关键字的大小仿佛固定住了似得,在如何解决这个问题 ?
html拼接 求大神
"content" : "下列关于通货膨胀对企业财务活动的影响的叙述,正确的是( )。",rn"qzOptionList" : [rn rn "sequence" : 0,rn "questionID" : 10640375,rn "quesOption" : "引起利润上升",rn "quesValue" : "A"rn ,rn rn "sequence" : 1,rn "questionID" : 10640375,rn "quesOption" : "引起资金占用量的增加",rn "quesValue" : "B"rn ,rn rn "sequence" : 2,rn "questionID" : 10640375,rn "quesOption" : "加大企业的筹资成本",rn "quesValue" : "C"rn ,rn rn "sequence" : 3,rn "questionID" : 10640375,rn "quesOption" : "引起有价证券价格上升",rn "quesValue" : "D"rn rn ],rn想将上面格式的数据 拼成一个Html格式直接用网页的形式显示 求大神
程序出错,找不出原因,求大神
这是错误的原因,果断看不懂rnrnException in thread "AWT-EventQueue-1" java.lang.ArrayIndexOutOfBoundsException: 0rn at MyTimeCalculator.actionPerformed(TimeCalculator.java:190)rn at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)rn at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)rn at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)rn at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)rn at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)rn at java.awt.Component.processMouseEvent(Component.java:6134)rn at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)rn at java.awt.Component.processEvent(Component.java:5899)rn at java.awt.Container.processEvent(Container.java:2023)rn at java.awt.Component.dispatchEventImpl(Component.java:4501)rn at java.awt.Container.dispatchEventImpl(Container.java:2081)rn at java.awt.Component.dispatchEvent(Component.java:4331)rn at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4301)rn at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3965)rn at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3895)rn at java.awt.Container.dispatchEventImpl(Container.java:2067)rn at java.awt.Window.dispatchEventImpl(Window.java:2458)rn at java.awt.Component.dispatchEvent(Component.java:4331)rn at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)rn at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)rn at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)rn at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)rn at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)rn at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)rn at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)rn
求大神指点Qt崩溃问题原因
软件报错崩溃,错误如下图片所示,但在代码中未使用QVector定义,仅使用了QList,不知道问题改如何查找,跪求大神指点。n[img=https://img-bbs.csdn.net/upload/201812/24/1545614679_780186.png][/img]
求大神看看错误原因!!!
程序类名叫LogCleanJob,我按照命令hadoop jar运行报错,网上说是classpath的问题,可是我的classpath没问题,jar包也都导入了![图片说明](https://img-ask.csdn.net/upload/201612/09/1481280991_365812.png)
初学者的JavaScript问题,求大神帮忙回答下
[img=https://img-bbs.csdn.net/upload/201611/03/1478112774_589358.png][/img]rn我想写一个让电脑无限弹出网页的脚本,但有几个问题解决不了,来请教下诸位大神。rn问题一:里头的,(逗号)改成;(分号)有时候效果不同,请问逗号和分号在用的时候有什么区别吗?rn问题二:为什么识别不了变量irn问题三:为什么在我的电脑上会无限弹出新的网页,在别人的电脑上就只会弹出一个网页然后一直变化而已?
安卓fragment问题 初学者求大神指点
11-22 21:24:59.490: E/AndroidRuntime(1427): java.lang.RuntimeException: Unable to start activity ComponentInfcom.example.again3/com.example.again3.MainActivity: android.view.InflateException: Binary XML file line #6: Error inflating class fragmentrnrn代码如下,主要就是想实现横屏时俩个frament显示在屏幕上一个是列表,另一个是选择的详细信息,竖屏时显示列表选择后跳转到详细信息Activityrnrnpackage com.example.again3;rnimport android.content.Intent;rnimport android.os.Bundle;rnimport android.view.View;rnimport android.widget.ArrayAdapter;rnimport android.widget.ListView;rnimport android.support.v4.app.FragmentTransaction;rnrnpublic class ListFragment extends android.app.ListFragmentrn boolean dualPane;rn int curCheckPosition = 0;rn public void onActivityCreated(Bundle savedInstanceState)rn rn super.onActivityCreated(savedInstanceState);rn setListAdapter(new ArrayAdapter(getActivity(),rn android.R.layout.simple_list_item_checked,Data.TITLES));rn View detailFrame = getActivity().findViewById(R.id.detail);rn dualPane = detailFrame!=null&&detailFrame.getVisibility()==View.VISIBLE;rn if(savedInstanceState!=null)rn rn curCheckPosition = savedInstanceState.getInt("curChoice",0);rn rn if(dualPane)rn rn getListView().setChoiceMode(ListView.CHOICE_MODE_SINGLE);rn showDetails(curCheckPosition);rn rn rn public void onSaveInstanceState(Bundle outState)rn rn super.onSaveInstanceState(outState);rn outState.putInt("curChoice", curCheckPosition);rn rn public void onListItemClick(ListView l,View v,int positon,long id)rn rn showDetails(positon);rn rn void showDetails(int index)rn rn curCheckPosition = index;rn if(dualPane)rn rn getListView().setItemChecked(index, true);rn DetailFragment details = (DetailFragment)getFragmentManager()rn .findFragmentById(R.id.detail);rn if(details==null||details.getShownIndex()!=index)rn rn android.app.FragmentTransaction ft = getFragmentManager()rn .beginTransaction();rn ft.replace(R.id.detail, details);rn ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_FADE);rn ft.commit();rn rn elsern rn Intent intent = new Intent(getActivity(),MainActivity.DetailActivity.class);rn intent.putExtra("index", index);rn startActivity(intent);rn rn rn rnrnrnpackage com.example.again3;rnrnimport android.content.res.Configuration;rnimport android.os.Bundle;rnimport android.support.v4.app.FragmentActivity;rnpublic class MainActivity extends FragmentActivity rnrn public static class DetailActivity extends FragmentActivityrn rn protected void onCreate(Bundle savedInstanceState) rn super.onCreate(savedInstanceState);rn if(getResources().getConfiguration().orientation==Configuration.ORIENTATION_LANDSCAPE)rn rn finish();rn return;rn rn if(savedInstanceState==null)rn rn DetailFragment details = new DetailFragment();rn details.setArguments(getIntent().getExtras());rn getFragmentManager().beginTransaction().add(android.R.id.content, details).commit();rn rn rn rn public void onCreate(Bundle savedInstanceState) rn super.onCreate(savedInstanceState);rn setContentView(R.layout.main);rn rn rn rnrn rnpackage com.example.again3;rnrnimport android.app.Fragment;rnrnimport android.os.Bundle;rnimport android.view.LayoutInflater;rnimport android.view.View;rnimport android.view.ViewGroup;rnimport android.widget.ScrollView;rnimport android.widget.TextView;rnrnrnrnpublic class DetailFragment extends Fragmentrn public static DetailFragment newInstance(int index)rn rn DetailFragment f =new DetailFragment();rn Bundle bundle = new Bundle();rn bundle.putInt("index", index);rn f.setArguments(bundle);rn return f;rn rn rn public int getShownIndex()rn rn return getArguments().getInt("index",0);rn rn public View onCreateView(LayoutInflater inflater,ViewGroup container,Bundle savedInstanceState)rn rn rn if(container == null)rn rn return null;rn rn ScrollView scroller = new ScrollView(getActivity());rn TextView text = new TextView(getActivity());rn text.setPadding(10,10,10,10);rn scroller.addView(text);rn text.setText(Data.DETAL[getShownIndex()]);rn return scroller;rn rn rnrnrnrnpackage com.example.again3;rnrnpublic final class Data rn public static final String [] TITLES=rn rn "线性布局",rn "表格布局",rn "帧布局",rn "相对布局"rn ;rn public static final String [] DETAL = rn rn "我就是线性布局"+rn "我就是表格布局",rn "我就是帧布局",rn "我就是相对布局"rn ;rnrnrn[b]res/layout/main.xml[/b]rnrnrnrn rn rn rnrn[b]res/layout-land/main.xmlrn[/b]rnrnrn rn rn rnrnrn
java初学者的问题,求大神指点
public class Encryptin rn public static void main (String[] args)rn String text="明日科技";rn byte[] array=text.getBytes();rn for(int i=0;i
初学者求大神解答JAVA问题
java中字符串数组排序 Arrays.sort() 是按西安大写后小写拍的 但是我想讲笑a排在B之前rn有什么方法能实现 rn最好不是新建一个方法
安卓fragment问题 初学者求大神指点
11-22 21:24:59.490: E/AndroidRuntime(1427): java.lang.RuntimeException: Unable to start activity ComponentInf{com.example.again3/com.example.again3.MainActivity}: android.view.InflateException: Binary
初学者提问 求大神解惑
假设整型变量x的当前值为2,则复合赋值语句x/=x+1执行后x值为多少?rnrn我编了程序rnpublic class Testrnrn public static void main(String[] args)rn int x=2;rn x/=x+1;rn System.out.println("x="+x);rnrn结果为0rn请问是怎么运算出来的
protel初学者,求大神指点。
画好一个图之后,要编辑看看图有没有啥问题,但是出现了如下的情况: 管理项目里面第二行,没有 “compile pcb project ”这个可选择的编译的指令,求指点。
求大神解题,本人初学者
大数学家欧拉在集市上遇到了本村的两个农妇,每人跨着个空篮子。她们和欧拉打招呼说两人刚刚卖完了所有的鸡蛋。 欧拉随便问:“卖了多少鸡蛋呢?” 不料一个说:“我们两人自己卖自己的,一共卖了150个鸡蛋,虽然我们卖的鸡蛋有多有少,但刚好得了同样的钱数。你猜猜看!” 欧拉猜不出。 另一个补充道:“如果我按她那样的价格卖,可以得到32元;如果她按我的价格卖,可以得到24.5元”。rn 写出每人鸡蛋的数目 ? rn [size=18px]要用c#做,求代码[/size]
汇编初学者求大神帮忙
[img=https://img-bbs.csdn.net/upload/201306/25/1372094611_757382.jpg][/img]
初学者求大神们赐教
请问怎么实施多个button跳转多个页面?网上面只有一个按钮跳转一个页面的事例,要是说如果单一个页面跳转成功的话复制成功跳转的页面的代码,改改button属性,多加个绑定事件的话..我试过了,结果按钮一按下去模拟器就崩溃了.
初学者遇到问题了,求大神解答
下面是我写的一段关于“编写一个统计空格、制表符和换行符个数的程序”: 它能编译成功,但是生成之后却是一片空白,完全没有内容,图片如下: 望大神解答窝地疑惑,谢谢!! ...
PHP奇怪现象,高分求原因所在
有如下数组,名为$arrPlatformSetAttributionListrnArrayrn(rn [51] => Firefox1.0rn [33] => IE5.0rn [37] => IE5.2(forOSX)rn [34] => IE5.5rn [35] => IE6.0rn [48] => JavaLinuxrn [47] => JavaMacrn [49] => JavaSolarisrn [52] => Mozilla1.7rn [39] => NArn [40] => NS4.7Xrn [36] => NS7.0rn [38] => NS7.1rn [41] => Safari1.0rn [42] => Safari1.1rn [43] => Safari1.2rn [50] => Safari1.3rn [44] => WindowsIErn [46] => WindowsnotPureNSrn [45] => WindowsPureNSrn [54] => Big5rn [62] => Englishrn [57] => Frenchrn [53] => GBrn [58] => Germanrn [55] => Japanesern [56] => Koreanrn [61] => Spanishrn [59] => Swedishrn [60] => TSPrn [2] => AIX5Lv5.2rn [3] => Citrixrn [4] => HP-UX11rn [5] => IRIX6.5.21rn [6] => JCrn [8] => Mac10.2rn [9] => Mac10.3rn [7] => Mac9.0rn [10] => RedHat7.0rn [11] => RedHat8.0rn [12] => RedHat9rn [13] => RedHatWSEErn [14] => RedHat_Desktoprn [17] => Solaris10rn [15] => Solaris8rn [16] => Solaris9rn [18] => SunJavaDesktop(SuSE)rn [19] => TurboLinuxrn [28] => Win2000SP4rn [29] => Win2003serverrn [32] => Win2K ADVrn [30] => Win2K PROrn [31] => Win2K SRVrn [20] => Win95rn [21] => Win98rn [22] => Win98SErn [23] => WinMern [24] => WinNTsp6arn [25] => WinXP_Homern [26] => WinXP_Pro_SP1arn [27] => WinXP_Pro_SP2rn [75] => environment01rn [76] => environment02rn [77] => environment03rn [69] => dialuprn [72] => httprn [71] => httpsrn [67] => https_w/o_prn [66] => https_w_prn [65] => http_w/o_prn [64] => http_w_prn [70] => http_w_p_pwrn [74] => msproxy+httpsrn [63] => NArn [73] => squidproxy+httpsrn [68] => tcprn)rnrn但是echo $arrPlatformSetAttributionList[1]时返回的不是空值,而是一个数组(实际上是一个空数组).rn奇怪的地方是rn1) 上面的情况只是出现在代码里,在同一台服务器上如果仅仅做试验的话是不会出错的rn比如:rn>";rn?>rn这里返回的是空值不是空数组rn2) 同样的代码放在不同的服务器上时结果不同,有的是返回空值,有的是返回空数组rnrn会不会和PHP或者MYSQL的配置及版本有关??
html布局问题,求大神解答啊
[img=https://img-bbs.csdn.net/upload/201404/03/1396507003_664446.png][/img]rn如图,在 里做了一个蓝色的背景,想在 里加一个做个菜单导航,但做出来的学习进度在 的偏上方,我想让“学习进度”在蓝色背景中间显示,要设置什么属性?
初学HTML 求大神指点
为什么手机网页写出来之后 在浏览器上面测试右边没有空白 但是手机打开之后 右边出现一块空白 怎么解决?
求大神告诉我这个功能如何实现
我纠结这个东西都快一天了,先上个图吧rn[img=https://img-bbs.csdn.net/upload/201510/29/1446109699_846950.png][/img]rn我用的框架是ssh 领导说了让我用SQL语句完成查询功能 查询后将结果返回到页面上,(数据库是现成)而且不能创建实体类。毕竟我是新手真心搞不懂怎么搞,问了老手说让我直接搞个list的,说了半天我也没听懂要怎么搞,有没有大神能告诉我怎么做啊,求大神啊
求大神告诉我下这个算法的执行过程。。。。。
public class ZhiYingShu rn public static void main(String[] args) rn fenjie(12);rn rn rn public static void fenjie(int x)rn rn for(int i=2;i
求大神告诉我这些错误是什么意思
rnMainFrm.obj : error LNK2001: unresolved external symbol "public: __thiscall ADDBOOK::ADDBOOK(class CWnd *)" (??0ADDBOOK@@QAE@PAVCWnd@@@Z)rnMainFrm.obj : error LNK2001: unresolved external symbol "public: __thiscall BOOKREFER::BOOKREFER(class CWnd *)" (??0BOOKREFER@@QAE@PAVCWnd@@@Z)rnMainFrm.obj : error LNK2001: unresolved external symbol "public: __thiscall DELETBOOK::DELETBOOK(class CWnd *)" (??0DELETBOOK@@QAE@PAVCWnd@@@Z)rnMainFrm.obj : error LNK2001: unresolved external symbol "public: __thiscall STUDENTLOADIN::STUDENTLOADIN(class CWnd *)" (??0STUDENTLOADIN@@QAE@PAVCWnd@@@Z)rnMainFrm.obj : error LNK2001: unresolved external symbol "public: __thiscall WORKERLOADIN::WORKERLOADIN(class CWnd *)" (??0WORKERLOADIN@@QAE@PAVCWnd@@@Z)rnMainFrm.obj : error LNK2001: unresolved external symbol "public: __thiscall STUDENTINFO::STUDENTINFO(class CWnd *)" (??0STUDENTINFO@@QAE@PAVCWnd@@@Z)rnMainFrm.obj : error LNK2001: unresolved external symbol "public: __thiscall STUDENTREFER::STUDENTREFER(class CWnd *)" (??0STUDENTREFER@@QAE@PAVCWnd@@@Z)rnMainFrm.obj : error LNK2001: unresolved external symbol "public: __thiscall BOOKBOOK::BOOKBOOK(class CWnd *)" (??0BOOKBOOK@@QAE@PAVCWnd@@@Z)rnMainFrm.obj : error LNK2001: unresolved external symbol "public: __thiscall BOOKRENEW::BOOKRENEW(class CWnd *)" (??0BOOKRENEW@@QAE@PAVCWnd@@@Z)
求大神告诉我这个要怎么写
[img=https://img-bbs.csdn.net/upload/201608/29/1472438997_249045.jpg][/img]
谁能告诉我出错的原因!!!!
以下是出错信息,到最后Lotus干脆退出来不工作,有谁知道原因或遇到过相似情况的????rnrnNSFDBOpen:File 'm:\lotus\mail\检修部\lin_hongwei.nsf' is corrupt -NowRead-Only!rnrnNSFDBOpen:File 'm:\lotus\mail\检修部\lin_hongwei.nsf' is corrupt -NowRead-Only!rnrnNSFDBOpen:File 'm:\lotus\mail\检修部\lin_hongwei.nsf' is corrupt -NowRead-Only!rnrnNSFDBOpen:File 'm:\lotus\mail\检修部\lin_hongwei.nsf' is corrupt -NowRead-Only!rnrnNSFDBOpen:File 'm:\lotus\mail\检修部\lin_hongwei.nsf' is corrupt -NowRead-Only!rnrnThread=[108ec:005B-10CB4]rnPANIC:LookupHandle: handle not allocatedrn
谁能告诉我原因
typedef void (*pFn)();rnrnclass Testrnrnpublic: rn bool handleEvent(pFn pfn)rn rn pfn();rn return true;rn rn static void go()rn rn cout << "helloWorld" << endl;rn rn;rnrnvoid main()rnrn Test tt;rn tt.handleEvent(Test::go);rn cin.get();rnrnrn为什么go()必须是static类型的, 才能被注册到handleEvent()中去??????
可以告诉我原因吗?
只要是用到JavaBeans,即JSP中用到,编译就抱如下错误(类的位置正确,也在一个文件夹下),用JBuilder10,按照帮助做的,可是还是有这个问题。rnApache Tomcat/4.0.6 - HTTP Status 500 - Internal Server Errortype Exception reportmessage Internal Server Errordescription The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.exception javax.servlet.ServletException: Backgroundrn at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:471)rn at org.apache.jsp.Color$jsp._jspService(Color$jsp.java:166)rn at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)rn at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)rn at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)rn at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)rn at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)rn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)rn at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)rn at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)rn at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)rn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)rn at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)rn at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)rn at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)rn at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)rn at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)rn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)rn at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)rn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)rn at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)rn at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)rn at java.lang.Thread.run(Thread.java:534)rnroot cause java.lang.InstantiationException: Backgroundrn at org.apache.jsp.Color$jsp._jspService(Color$jsp.java:79)rn at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)rn at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)rn at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)rn at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)rn at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)rn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)rn at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)rn at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)rn at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)rn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)rn at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)rn at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)rn at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)rn at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)rn at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)rn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)rn at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)rn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)rn at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)rn at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)rn rnrn
谁能告诉我原因?
我用的是win2000 p,窗口标题的字体经常会莫名其妙的变小,有时候小到看不清楚!是什么原因???rn我有点郁闷。
请告诉我错误原因
import org.jdom.*;rnimport org.jdom.input.*;rnimport java.io.*;rnimport java.util.*;rnimport org.xml.sax.InputSource;rnimport java.io.*;rnrnpublic class Readrn public static void main(String args[]) throws Exceptionrn SAXBuilder builder = new SAXBuilder();rn tryrn Document doc = builder.build(new File("sonnet.xml"));rn Element root = doc.getRootElement();rn List list = new ArrayList();rn list = root.getChildren();rn int count = list.size();rn for(int i=0;i
谁能告诉我死锁的原因
我在主线程里面创建了一个子线程,然后在子线程创建了一个窗口。rn当这个窗口收到某个消息的时候,我故意加入了死循环。rn请问为什么主线程也死掉了?
谁能告诉我错误原因?
我有一用户控件myuc.ascx,其中有一DataGrid,ID为dtdt,在myweb.aspx中调用myuc.ascx。rnmyweb.aspx有代码:rnprivate void Page_Load(object sender, System.EventArgs e)rnrn if(!IsPostBack)rn rn //绑定DataGrid rn string strsearch="select id,name,sex from information";rn string strcon="user id=first;password=first;database=pubs";rn SqlConnection con=new SqlConnection(strcon);rn SqlCommand com=new SqlCommand(strsearch,con);rn SqlDataAdapter sda=new SqlDataAdapter();rn sda.SelectCommand=com;rn con.Open();rn DataSet ds=new DataSet();rn sda.Fill(ds);rn ((DataGrid)this.WebUserControl11.FindControl("dtdt")).DataSource=ds; rn ((DataGrid)this.WebUserControl11.FindControl("dtdt")).DataBind();rn con.Close();rnrn //设置属性,就是这里有问题***rn DataGrid dg=(DataGrid)this.WebUserControl11.FindControl("dtdt");rn dg.Attributes.Add("DeleteCommand","dgDeleteCommand()");rn Session["biao"]=ds.Tables[0];rn rnrn//下面的函数没执行,???rnprivate void dgDeleteCommand(object source, System.Web.UI.WebControls.DataGridCommandEventArgs e)rnrn****rnrnrn上面的代码的意思是用户控件中包含了一datagrid,DataGrid中有一列是链接按钮,其作用是单击此按钮,执行dgDeleteCommand,删除DataGrid中相应的一行,但为什么dgDeleteCommand不执行呢?rn
能否告诉我下原因...
//初学多线程,理解不到位,很迷惑忘能有高手指点指点。。。rn//一下是一个多线程的代码rnrn#include rn#include rn#include rnrnusing namespace std ;rnHANDLE hMutex ;rnDWORD WINAPI ThreadProc1( LPVOID lpParameter );rnDWORD WINAPI ThreadProc2( LPVOID lpParameter );rnrnint tickets =100;rnrnrnint main( )rnrnrn HANDLE Hobject1 = CreateThread(NULL,0,ThreadProc1,NULL,0,NULL);rn HANDLE Hobject2 = CreateThread(NULL,0,ThreadProc2,NULL,0,NULL);rnrn if(CloseHandle(Hobject1)) // succeeds return nozerorn printf("CloseHandle function1 succeeds\n");rn elsern printf("CloseHandle function1 fail\n");rnrnrn if(CloseHandle(Hobject2)) // succeeds return nozerorn printf("CloseHandle function2 succeeds\n");rn elsern printf("CloseHandle function2 fail\n");rnrn hMutex = CreateMutex(NULL,FALSE,NULL);rnrn Sleep(1000);rnrn return 0;rnrnrnDWORD WINAPI ThreadProc1( LPVOID lpParameter )//假设我这个线程是先执行的,rnrn WaitForSingleObject(hMutex, INFINITE);rn while(1)rn rn if(tickets>=0)rn printf("tickets already have %d \n",tickets);rn else rn break ;rn rn ReleaseMutex(hMutex); //在这个释放之前一直是有效执行的是这个循环的代码,即使是时间片切换到rn //ThreadPro2里的话,也是处于一直等待的过程中,没法执行有效的代码rn //直到时间片的过去。这种状态一直持续到调用了break ;while循环结束之后rn //才真正执行另一个线程的有效代码rn return 0 ;rnrnrnDWORD WINAPI ThreadProc2( LPVOID lpParameter )rnrn WaitForSingleObject(hMutex, INFINITE);rn while(1)rn rn if(tickets>=0)rn printf("already have %d mans had the tickets\n",100-tickets--);rn elsern break ; rn rn ReleaseMutex(hMutex);rn return 0 ;rnrnrn//我的疑问是这段代码的执行顺序,我知道多线程里每个线程都有一定的时间片rn//同时我设了个互斥对象,希望同过这个互斥对象能够做到先执行完一个while循环之后再执行下一个循环rn//具体的,我的理解是上面的注释rn//问题出在了这段代码的运行执行情况不是我想的一样,他仍是交替着执行里面的有效代码,貌似没有理会那个互斥rn//对象。
告诉我错那了和原因?
我写一个电子时钟的JavaScript,可是不可以自动加秒刷新!也找不到原因!有前辈知道的给我指点下!rnrn rnrn 电子时钟rn rn rn rn rnrn rn[计时器]rn 1 rnrnrn rnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrnrn rnrn rnrnrn
相关热词 c# 标准差 计算 c#siki第五季 c#入门推荐书 c# 解码海康数据流 c# xml的遍历循环 c# 取 查看源码没有的 c#解决高并发 委托 c#日期转化为字符串 c# 显示问号 c# 字典对象池