摘要: <button> <img src="../img.png" >按钮一 </button> <button> <img src="../img.png" >按钮一 </button> 阅读全文
posted @ 2019-06-27 21:21 在学习编程的lsy呀 阅读(1445) 评论(0) 推荐(0) 编辑
摘要: 在需要添加空格的地方写 &nbsp; 即可 阅读全文
posted @ 2019-06-27 21:18 在学习编程的lsy呀 阅读(434) 评论(0) 推荐(0) 编辑
摘要: 因为span是内联函数,你需要先把span设置为块级元素或块级内联函数才可以。 代码如下:span{ display:block;margin-top;} 内联元素可以设置左右外边距和内边距,但如果想要设置上下内边距和外边距就必须设置为块级元素。 因为span是内联函数,你需要先把span设置为块级 阅读全文
posted @ 2019-06-27 21:17 在学习编程的lsy呀 阅读(515) 评论(0) 推荐(0) 编辑
摘要: 1、<button onclick="window.location.href = 'https://www.baidu.com/'">百度</button> 2、在button外面套一层<a></a> <a href="http://www.baidu.com/"> <button>百度</but 阅读全文
posted @ 2019-06-27 21:13 在学习编程的lsy呀 阅读(1705) 评论(0) 推荐(0) 编辑