运用css的款式对文字开展掩藏和显示信息等实际

日期:2021-03-07 类型:科技新闻 

关键词:微擎小程序开发,微信小程序下载,如何在微信上做小程序,调查问卷微信小程序,微信抽签小程序


拷贝编码
编码以下:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF⑻">
<title>Insert title here</title>
<!--文字的显示信息和掩藏 -->
<style type="text/css">
#div_2{
display: inline;
}
#span_1{
/* display:block; */
visibility: hidden;
}
</style>
</head>
<body>
<div>div1</div>
<div id="div_2">div2</div>
<span id="span_1">span1</span>
<span>span2</span>
</body>
</html>